From: Mohammed Shafi Shajakhan Date: Sat, 24 Dec 2011 13:13:28 +0000 (+0530) Subject: mac80211: fix scan state machine X-Git-Tag: v3.3-rc1~182^2~21^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de2ee84db6a0201278e35590821cd014cb71830a;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Mohammed Shafi Shajakhan Signed-off-by: John W. Linville --- diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 2c5041c..2908e56 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, local->leave_oper_channel_time = jiffies; /* advance to the next channel to be scanned */ - local->next_scan_state = SCAN_DECISION; + local->next_scan_state = SCAN_SET_CHANNEL; } void ieee80211_scan_work(struct work_struct *work)