Skip to contentSkip to conversation

mac80211: fix scan state machine

PATCH New Mohammed Shafi Shajakhan 1 participant 1 message Dec 24, 2011 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mac80211: fix scan state machine

From: Mohammed Shafi Shajakhan <[email protected]>

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.

---
 net/mac80211/scan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/mac80211/scan.c +1 -1
index 2c5041c..2908e56 100644
@@ -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)
Signature · 1 line
1.7.0.4