diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2009-06-30 08:49:18 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:02:27 -0400 |
commit | 96f7e73938da744e718ce4817dd3e7e424624654 (patch) | |
tree | 81c4d2f3dfbef7e0fea45f211d50e998d61c418a /net/mac80211 | |
parent | 9d49e861a5e31fb7f575f348743886189045e102 (diff) |
mac80211: shorten the passive dwell time for sw scans
mac80211's software scan implementation uses a passive dwell time of
(HZ / 5) which means we stay 200ms on each passive channel. Compared
to iwlwifi's hw scan and the old ipw* drivers which use values around
120ms this is quite long.
Reducing the passive dwell time from 200ms to 125ms should save us
something around a second on cards capable of 11a and we should still be
able to catch beacons from most access points (assuming a ~100ms beacon
interval).
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 8b2416c77a6e..569a464f60d8 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | #define IEEE80211_PROBE_DELAY (HZ / 33) | 27 | #define IEEE80211_PROBE_DELAY (HZ / 33) |
28 | #define IEEE80211_CHANNEL_TIME (HZ / 33) | 28 | #define IEEE80211_CHANNEL_TIME (HZ / 33) |
29 | #define IEEE80211_PASSIVE_CHANNEL_TIME (HZ / 5) | 29 | #define IEEE80211_PASSIVE_CHANNEL_TIME (HZ / 8) |
30 | 30 | ||
31 | struct ieee80211_bss * | 31 | struct ieee80211_bss * |
32 | ieee80211_rx_bss_get(struct ieee80211_local *local, u8 *bssid, int freq, | 32 | ieee80211_rx_bss_get(struct ieee80211_local *local, u8 *bssid, int freq, |