mac80211: avoid spurious deauth frames/messages
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 19 Nov 2009 11:45:42 +0000 (12:45 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 19 Nov 2009 16:09:02 +0000 (11:09 -0500)
commita58ce43f2fb17b728395ff530f019ca53c80145f
tree1de5d2680d42de12902ccb85e99bc86f63eebf58
parent7351c6bd482712e5e3ec9dffc547de0e0863efb0
mac80211: avoid spurious deauth frames/messages

With WEXT, it happens frequently that the SME
requests an authentication but then deauthenticates
right away because some new parameters came along.
Every time this happens we print a deauth message
and send a deauth frame, but both of that is rather
confusing. Avoid it by aborting the authentication
process silently, and telling cfg80211 about that.

The patch looks larger than it really is:
__cfg80211_auth_remove() is split out from
cfg80211_send_auth_timeout(), there's no new code
except __cfg80211_auth_canceled() (a one-liner) and
the mac80211 bits (7 new lines of code).

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/cfg80211.h
net/mac80211/mlme.c
net/wireless/mlme.c