Complete sme-connect radio work when clearing connection state
It was possible for local deauthentication request to leave sme-connect radio work running even when there was no ongoing effort to complete the connection anymore. Clean this up by marking sme-connect radio work item, if any, done when clearing connection state after such disconnection during connection. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
debb2dacac
commit
c155305fd3
1 changed files with 1 additions and 0 deletions
|
@ -2042,6 +2042,7 @@ static void wpa_supplicant_clear_connection(struct wpa_supplicant *wpa_s,
|
||||||
{
|
{
|
||||||
struct wpa_ssid *old_ssid;
|
struct wpa_ssid *old_ssid;
|
||||||
|
|
||||||
|
wpas_connect_work_done(wpa_s);
|
||||||
wpa_clear_keys(wpa_s, addr);
|
wpa_clear_keys(wpa_s, addr);
|
||||||
old_ssid = wpa_s->current_ssid;
|
old_ssid = wpa_s->current_ssid;
|
||||||
wpa_supplicant_mark_disassoc(wpa_s);
|
wpa_supplicant_mark_disassoc(wpa_s);
|
||||||
|
|
Loading…
Reference in a new issue