wlcore: don't switch channels on disconnected STA vifs
authorArik Nemtsov <arik@wizery.com>
Fri, 11 Jul 2014 00:01:36 +0000 (03:01 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 Jul 2014 20:00:00 +0000 (16:00 -0400)
commite65628691f04f1a9ce57d8036c9b119c43031187
tree9a59d65558e3e85c08500bafd9bb31564ee888a2
parentd8c5a48d2751086de9ed0ae9ff97ab094e2d534d
wlcore: don't switch channels on disconnected STA vifs

Sending the FW a channel switch command on a disconnected
vif may result in a beacon loss event. Avoid this corner case.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ti/wlcore/main.c