Skip to content

Commit de2ee84

Browse files
Mohammed Shafi Shajakhanlinvjw
authored andcommitted
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>
1 parent 841f1d9 commit de2ee84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/mac80211/scan.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ static void ieee80211_scan_state_resume(struct ieee80211_local *local,
625625
local->leave_oper_channel_time = jiffies;
626626

627627
/* advance to the next channel to be scanned */
628-
local->next_scan_state = SCAN_DECISION;
628+
local->next_scan_state = SCAN_SET_CHANNEL;
629629
}
630630

631631
void ieee80211_scan_work(struct work_struct *work)

0 commit comments

Comments
 (0)