Deauthenticate instead of disassociate on disconnect command
This clears up authentication state in the driver and in case of cfg80211, unlocks the BSS entry for the previously used AP.
This commit is contained in:
parent
f3585c8a85
commit
cf4783e35f
1 changed files with 2 additions and 1 deletions
|
@ -1829,7 +1829,8 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
|
||||||
} else if (os_strcmp(buf, "DISCONNECT") == 0) {
|
} else if (os_strcmp(buf, "DISCONNECT") == 0) {
|
||||||
wpa_s->reassociate = 0;
|
wpa_s->reassociate = 0;
|
||||||
wpa_s->disconnected = 1;
|
wpa_s->disconnected = 1;
|
||||||
wpa_supplicant_disassociate(wpa_s, WLAN_REASON_DEAUTH_LEAVING);
|
wpa_supplicant_deauthenticate(wpa_s,
|
||||||
|
WLAN_REASON_DEAUTH_LEAVING);
|
||||||
} else if (os_strcmp(buf, "SCAN") == 0) {
|
} else if (os_strcmp(buf, "SCAN") == 0) {
|
||||||
wpa_s->scan_req = 2;
|
wpa_s->scan_req = 2;
|
||||||
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
||||||
|
|
Loading…
Reference in a new issue