cfg80211: avoid sending spurious deauth to userspace
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 2 Dec 2009 11:43:42 +0000 (12:43 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Dec 2009 18:31:17 +0000 (13:31 -0500)
commit5fba4af32ceeb935b3926714df9a64a33c2c9cf5
tree0f9fe83dade3dfd394bfecd2b675e4e600ec350b
parentf38fd12fa7b7b98e158a9b31d388da34eef25c22
cfg80211: avoid sending spurious deauth to userspace

Before
  commit ca9034592823e8179511e48a78731f95bfdd766c
  Author: Holger Schurig <hs4233@mail.mn-solutions.de>
  Date:   Tue Oct 13 13:45:28 2009 +0200

      cfg80211: remove warning in deauth case

we assumed that drivers never give us spurious deauth
frames because they filter them out based on the auth
state they keep track of. This turned out to be racy,
because userspace might deauth while the AP is also
sending a deauth frame, so the warning was removed.

However, in that case we should not tell userspace
about the AP's frame if it requested deauth "first",
where "first" means it came to cfg80211 first.

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