]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
cfg80211: use sme_state in ibss start/join path
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 29 May 2012 22:39:06 +0000 (15:39 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 Jun 2012 19:21:28 +0000 (15:21 -0400)
commit28f333666ea766fdfb25de3783ff56cd2d1c51f0
tree053c9e3a0e57e8bff889da153271d1e42186dc69
parent7a1c99343c5305c47b5e078d1af2144f9026df40
cfg80211: use sme_state in ibss start/join path

CFG80211_DEV_WARN_ON() at "net/wireless/ibss.c line 63"
is unnecessarily triggered even after successful connection,
when cfg80211_ibss_joined() is called by driver inside
.join_ibss handler.

This patch fixes the problem by changing 'sme_state' in ibss path
and having WARN_ON() check for 'sme_state' similar to infra
association.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/ibss.c