Commit de2ee84d authored by Mohammed Shafi Shajakhan's avatar Mohammed Shafi Shajakhan Committed by John W. Linville

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: default avatarMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 841f1d92
...@@ -625,7 +625,7 @@ static void ieee80211_scan_state_resume(struct ieee80211_local *local, ...@@ -625,7 +625,7 @@ static void ieee80211_scan_state_resume(struct ieee80211_local *local,
local->leave_oper_channel_time = jiffies; local->leave_oper_channel_time = jiffies;
/* advance to the next channel to be scanned */ /* 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) void ieee80211_scan_work(struct work_struct *work)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment