aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorHelmut Schaa <Helmut.Schaa@gmx.de>2010-02-24 08:19:21 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-03-09 15:03:07 -0500
commitdf13cce53a7b28a81460e6bfc4857e9df4956141 (patch)
tree5c7be2b33088f457b0510e7de660a88b8dc9c397 /net/mac80211/ieee80211_i.h
parent74bad5cb497080514c4a945f38589bdb574fdfb7 (diff)
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. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 241533e1bc03..b84126491ab1 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -745,6 +745,7 @@ struct ieee80211_local {
745 int scan_channel_idx; 745 int scan_channel_idx;
746 int scan_ies_len; 746 int scan_ies_len;
747 747
748 unsigned long leave_oper_channel_time;
748 enum mac80211_scan_state next_scan_state; 749 enum mac80211_scan_state next_scan_state;
749 struct delayed_work scan_work; 750 struct delayed_work scan_work;
750 struct ieee80211_sub_if_data *scan_sdata; 751 struct ieee80211_sub_if_data *scan_sdata;