[openfirmware] [commit] r1786 - dev

repository service svn at openfirmware.info
Fri Apr 16 05:19:55 CEST 2010


Author: wmb
Date: Fri Apr 16 05:19:55 2010
New Revision: 1786
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/1786

Log:
Libertas WLAN driver - stop adhoc when closing the driver.

Modified:
   dev/libertas.fth

Modified: dev/libertas.fth
==============================================================================
--- dev/libertas.fth	Fri Apr 16 05:17:23 2010	(r1785)
+++ dev/libertas.fth	Fri Apr 16 05:19:55 2010	(r1786)
@@ -1026,6 +1026,7 @@
 \ Adhoc join
 \ =======================================================================
 
+0 value adhoc-started?
 0 value atim
 
 : save-associate-params  ( ch ssid$ target-mac$ -- ch ssid$ target-mac )
@@ -1069,6 +1070,7 @@
    d# 100 +x				\ Padding as present in libertas Linux driver
 
    finish-cmd outbuf-wait  if  ." Failed to start adhoc network" cr false exit  then
+   true to adhoc-started?
    \ We could get the bssid from offsets 3..8 of the response buf if we needed it
    true
    ds-associated set-driver-state
@@ -1660,6 +1662,7 @@
 : close  ( -- )
    opencount @ 1-  0 max  opencount !
    opencount @ 0=  if
+      adhoc-started?  if  adhoc-stop  then
       disable-multicast
       mesh-stop drop
       link-up?  if  target-mac$ deauthenticate  then



More information about the openfirmware mailing list