mac80211: fix deauth before assoc
commit9fff6bc91515aa9027e1ca4d37a4754964a6c875
authorJohannes Berg <johannes.berg@intel.com>
Mon, 7 Jun 2010 19:50:07 +0000 (7 21:50 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:44 +0000 (5 11:22 -0700)
tree68cbcf33d9dbbfe791498a5751331ded77cc6bad
parentcd495841c53fe3ac04578c0711339282bec90ed6
mac80211: fix deauth before assoc

commit b054b747a694927879c94dd11af54d04346aed7d upstream.

When we receive a deauthentication frame before
having successfully associated, we neither print
a message nor abort assocation. The former makes
it hard to debug, while the latter later causes
a warning in cfg80211 when, as will typically be
the case, association timed out.

This warning was reported by many, e.g. in
https://bugzilla.kernel.org/show_bug.cgi?id=15981,
but I couldn't initially pinpoint it. I verified
the fix by hacking hostapd to send a deauth frame
instead of an association response.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Tested-by: Miles Lane <miles.lane@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/mac80211/mlme.c