]> git.ipfire.org Git - thirdparty/hostap.git/commit
Do not trigger fast reconnection on locally generated deauth/disassoc
authorJouni Malinen <j@w1.fi>
Sun, 1 Jan 2012 16:53:12 +0000 (18:53 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 1 Jan 2012 16:55:58 +0000 (18:55 +0200)
commit3d9975d5b0da66584107e99eb3c418b13b485d60
tree4100e2fb13d0b1706f98a208abf98e2efb7f6f9f
parent0be3542338892e5c1e51682d3d2f509aa7dbda42
Do not trigger fast reconnection on locally generated deauth/disassoc

The deauthentication and disassociation events from nl80211 were being
processed identically regardless of whether the frame was generated by
the local STA or the AP. This resulted in fast reconnection mechanism
getting triggered even in the case where the disconnection was detected
locally (e.g., due to beacon loss) while this was supposed to happen
only in the case where the AP is sending an explicit Deauthentication
or Disassociation frame with a specific reason code.

Fix this by adding a new deauth/disassoc event variable to indicate
whether the event was generated locally.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/drivers/driver.h
src/drivers/driver_nl80211.c
wpa_supplicant/events.c