mac80211: act upon and report deauth while associating
authorJohannes Berg <johannes.berg@intel.com>
Mon, 1 Jun 2015 12:10:09 +0000 (14:10 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 1 Jun 2015 12:10:27 +0000 (14:10 +0200)
commitc9c99f8938e41b878802d5d8481d6f7a212515b0
treeead781c43f5d93626e2394b6df6555543c5375f4
parentf7959e9c73200f2ae361d0d311aa501f2c6a05c7
mac80211: act upon and report deauth while associating

When trying to associate, the AP could send a deauth frame instead.
Currently mac80211 drops that frame and doesn't report it to the
supplicant, which, in some versions and/or in certain circumstances
will simply keep trying to associate over and over again instead of
trying authentication again.

Fix this by reacting to deauth frames while associating, reporting
them to the supplicant and dropping the association attempt (which
is bound to fail.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c