cfg80211/mac80211: avoid state mishmash on deauth
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 15 Oct 2012 12:52:41 +0000 (14:52 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 15 Oct 2012 15:21:34 +0000 (17:21 +0200)
commit6863255bd0e48bc41ae5a066d5c771801e92735a
tree9bb64e599fb14c424480f7b4cda6abc5c7754c04
parentdf9b42963f2d010ae3163a894ce22cf6b27cd344
cfg80211/mac80211: avoid state mishmash on deauth

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>
include/net/cfg80211.h
net/mac80211/mlme.c
net/wireless/mlme.c