aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/scan.c
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>2011-12-24 08:13:28 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-01-04 14:30:46 -0500
commitde2ee84db6a0201278e35590821cd014cb71830a (patch)
tree61dea10ef4c3910a879c4cb09122b824b94876eb /net/mac80211/scan.c
parent841f1d92fb8ca6aa70b56003d1da8874c593e820 (diff)
mac80211: fix scan state machine
when we run high bandwidth UDP traffic and we trigger a scan, the scan state machine seems to be looping in SUSPEND->RESUME->DECISION->SUSPEND and SET_CHANNEL seems to be never called as 'tx_empty' is never true while running UDP traffic. fix this by settting SET_CHANNEL state when we get into RESUME state. Cc: Leela Kella <leela@qca.qualcomm.com> Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r--net/mac80211/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index 2c5041cc71f8..2908e56eaa9d 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -625,7 +625,7 @@ static void ieee80211_scan_state_resume(struct ieee80211_local *local,
625 local->leave_oper_channel_time = jiffies; 625 local->leave_oper_channel_time = jiffies;
626 626
627 /* advance to the next channel to be scanned */ 627 /* advance to the next channel to be scanned */
628 local->next_scan_state = SCAN_DECISION; 628 local->next_scan_state = SCAN_SET_CHANNEL;
629} 629}
630 630
631void ieee80211_scan_work(struct work_struct *work) 631void ieee80211_scan_work(struct work_struct *work)