mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-21 03:23:04 -05:00
If NL80211_CMD_AUTHENTICATE fails due to exiting authentication, forced deauthentication is used to clear cfg80211 start and a new authentication command is retried. This resulted in an extra disconnection event getting delivered to the core wpa_supplicant code and that could end up confusing state there, e.g., by clearing connection parameters like wpa_s->key_mgmt and preventing the following association from reaching proper COMPLETED state with open networks. Fix this by hiding the unnecessary disconnection event when using the deauth-for-auth workaround. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>