Skip to contentSkip to conversation

d80211: Take lowlevel driver's channel change time into account during scanning.

PATCH In review Gertjan van Wingerde 2 participants 2 messages Jul 1, 2006 – Jul 3, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 d80211: Take lowlevel driver's channel change time into account during scanning.

Make the dscape stack take the driver-supplied channel change time into account when actively scanning for networks. This particularly has been a problem in the rt2x00 driver, where configuration changes are done via a work-queue, and the subsequent channel changes failed due to the dscape stack scheduling a channel update while the previous one had not been performed yet, resulting in failed scans.

net/d80211/ieee80211_sta.c +2 -1
index 37d40aa..9f8653d 100644
@@ -2503,7 +2503,8 @@ #endif
                       break;
               }
 
-               local->scan_timer.expires = jiffies + IEEE80211_PROBE_DELAY;
+               local->scan_timer.expires = jiffies + IEEE80211_PROBE_DELAY +
+                             usecs_to_jiffies(local->hw->channel_change_time);
               local->scan_state = SCAN_SEND_PROBE;
               break;
       case SCAN_SEND_PROBE:
#1 lore raw
Quoted 7 lines · Gertjan van Wingerde

Make the dscape stack take the driver-supplied channel change time into account when actively scanning for networks.
This particularly has been a problem in the rt2x00 driver, where configuration changes are done via a work-queue, and
the subsequent channel changes failed due to the dscape stack scheduling a channel update while the previous one had not
been performed yet, resulting in failed scans.

Your mail client converts tabs to spaces. Nevertheless, I applied the patch to my git tree.

Thanks for fixing this,

Jiri

Signature · 2 lines
Jiri Benc
SUSE Labs