mwifiex: don't try to associate when bss_mode is not STA
authorBing Zhao <bzhao@marvell.com>
Sat, 20 Apr 2013 04:00:44 +0000 (21:00 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Apr 2013 19:20:28 +0000 (15:20 -0400)
commit8bc77a4d2c8ca3c07d74465a3738bf60a4e5de41
treedfa8a6c6386663cb98cee395efa5a1a302d40ad6
parent4587eea5b787b8373c72791a92084010f79443d0
mwifiex: don't try to associate when bss_mode is not STA

We have blocked association attempts on interfaces configured in
AP and AD-HOC modes. P2P mode should be blocked too.

Furthermore, an error code must be returned if we are unable to
associate.

Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cfg80211.c