Skip to contentSkip to conversation

mac80211: Improve software scan timing

PATCH New Helmut Schaa 1 participant 1 message Feb 24, 2010 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: Improve software scan timing

The current software scan implemenation in mac80211 returns to the operating channel after each scanned channel. However, in some situations (e.g. no traffic) it would be nicer to scan a few channels in a row to speed up the scan itself.

Hence, after scanning a channel, check if we have queued up any tx frames and return to the operating channel in that case.

Unfortunately we don't know if the AP has buffered any frames for us. Hence, scan only as many channels in a row as the pm_qos latency and the negotiated listen interval allows us to.

---
 net/mac80211/ieee80211_i.h |    1 +
 net/mac80211/scan.c        |   71 ++++++++++++++++++++++++++++++++++++++++----
 2 files changed, 66 insertions(+), 6 deletions(-)
net/mac80211/ieee80211_i.h +1 -0
index 241533e..b841264 100644
@@ -745,6 +745,7 @@ struct ieee80211_local {
 	int scan_channel_idx;
 	int scan_ies_len;
 
+	unsigned long leave_oper_channel_time;
 	enum mac80211_scan_state next_scan_state;
 	struct delayed_work scan_work;
 	struct ieee80211_sub_if_data *scan_sdata;
net/mac80211/scan.c +65 -6

119 lines not on this page · raw message

Signature · 1 line
1.6.0.2