On Tue, 2006-03-21 at 23:44 +0000, David Woodhouse wrote:
> After a scan, bcm43xx doesn't seem to switch back to the correct
> frequency. I have to set the ESSID again to prevent it from falling off
> the network.

Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>

--- linux-2.6.16.ppc/net/ieee80211/softmac/ieee80211softmac_scan.c~     
2006-03-21 23:50:00.000000000 +0000
+++ linux-2.6.16.ppc/net/ieee80211/softmac/ieee80211softmac_scan.c      
2006-03-22 00:31:31.000000000 +0000
@@ -232,6 +232,13 @@ void ieee80211softmac_scan_finished(stru
        sm->scanning = 0;
        spin_unlock_irqrestore(&sm->lock, flags);
        
+       if (sm->associnfo.bssvalid) {
+               struct ieee80211softmac_network *net;
+
+               net = ieee80211softmac_get_network_by_bssid(sm, 
sm->associnfo.bssid);
+               if (net)
+                       sm->set_channel(sm->dev, net->channel);
+       }
        ieee80211softmac_call_events(sm, IEEE80211SOFTMAC_EVENT_SCAN_FINISHED, 
NULL);
 }
 EXPORT_SYMBOL_GPL(ieee80211softmac_scan_finished);

-- 
dwmw2

_______________________________________________
Bcm43xx-dev mailing list
[email protected]
http://lists.berlios.de/mailman/listinfo/bcm43xx-dev

Reply via email to