mac80211: fix scan state machine
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Sat, 24 Dec 2011 13:13:28 +0000 (18:43 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Jan 2012 19:30:46 +0000 (14:30 -0500)
commitde2ee84db6a0201278e35590821cd014cb71830a
tree61dea10ef4c3910a879c4cb09122b824b94876eb
parent841f1d92fb8ca6aa70b56003d1da8874c593e820
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>
net/mac80211/scan.c