]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix deauth before assoc
authorJohannes Berg <johannes.berg@intel.com>
Mon, 7 Jun 2010 19:50:07 +0000 (21:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Jun 2010 18:41:54 +0000 (14:41 -0400)
commit3c3656c06addb973be60d195b0de73713a6b2714
tree91651e415fde622e53551286dd57279a4661e7cf
parentef14abbb0245b3be37ab81845846e42f04a7910c
mac80211: fix deauth before assoc

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.

Cc: stable@kernel.org
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>
net/mac80211/mlme.c