logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

revision 1356 committed by mrenzmann: msg#00008

Subject: revision 1356 committed by mrenzmann
Project     : madwifi
Revision    : 1356
Author      : mrenzmann
Date        : 2005-12-14 11:18:23 +0100 (Wed, 14 Dec 2005)

Log Message :
Added a call to ieee80211_cancel_scan() to cancel current scanning
when a mode change occurs. This allows the scan list to be
repopulated when a new scan is initiated after the mode change,
rather than being stuck trying to perform the old scan with an
empty scan list. Fixes #146.

Signed-off-by: Ian M. Rawley <imr1@xxxxxxxxxxxxx>

Affected Files:
* trunk/net80211/ieee80211_wireless.c                 updated             


Modified: trunk/net80211/ieee80211_wireless.c
===================================================================
--- trunk/net80211/ieee80211_wireless.c 2005-12-14 10:04:53 UTC (rev 1355)
+++ trunk/net80211/ieee80211_wireless.c 2005-12-14 10:18:23 UTC (rev 1356)
@@ -1608,8 +1608,10 @@
        if ((!retv || retv == ENETRESET) &&  mode != vap->iv_des_mode) {
                ieee80211_scan_flush(ic);       /* NB: could optimize */
                vap->iv_des_mode = mode;
-               if (IS_UP_AUTO(vap))
+               if (IS_UP_AUTO(vap)) {
+                       ieee80211_cancel_scan(vap);
                        ieee80211_new_state(vap, IEEE80211_S_SCAN, 0);
+               }
                retv = 0;
        }
 #ifdef ATH_SUPERG_XR


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click


<Prev in Thread] Current Thread [Next in Thread>