]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitde173051cdcab55db85348f8a470d84ab53ac3f2
tree0f9fe83dade3dfd394bfecd2b675e4e600ec350b
parent115e78feae7ceff0c67f6c8417a2484d09c8335a
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