cfg80211/mac80211: avoid state mishmash on deauth
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 15 Oct 2012 12:52:41 +0000 (14:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 17:10:31 +0000 (10:10 -0700)
commit116f83b82e7272fec7f9f0f71376bdc67b159ae2
tree688ca3c31e4e4d314fe4af4adb3dbc3ffc0a14a6
parent7c34784313937286fe71089203d62d6b3e534c93
cfg80211/mac80211: avoid state mishmash on deauth

commit 6863255bd0e48bc41ae5a066d5c771801e92735a upstream.

Avoid situation when we are on associate state in mac80211 and
on disassociate state in cfg80211. This can results on crash
during modules unload (like showed on this thread:
http://marc.info/?t=134373976300001&r=1&w=2) and possibly other
problems.

Reported-by: Pedro Francisco <pedrogfrancisco@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/cfg80211.h
net/mac80211/mlme.c
net/wireless/mlme.c