WEXT: Show BSSID/SSID set failures on disconnect in debug log
This commit is contained in:
parent
fbe3e7f840
commit
a7efb16052
1 changed files with 5 additions and 3 deletions
|
@ -1710,11 +1710,13 @@ static void wpa_driver_wext_disconnect(struct wpa_driver_wext_data *drv)
|
|||
* even if it does not understand SIOCSIWMLME commands (or
|
||||
* tries to associate automatically after deauth/disassoc).
|
||||
*/
|
||||
wpa_driver_wext_set_bssid(drv, null_bssid);
|
||||
|
||||
for (i = 0; i < 32; i++)
|
||||
ssid[i] = rand() & 0xFF;
|
||||
wpa_driver_wext_set_ssid(drv, ssid, 32);
|
||||
if (wpa_driver_wext_set_bssid(drv, null_bssid) < 0 ||
|
||||
wpa_driver_wext_set_ssid(drv, ssid, 32) < 0) {
|
||||
wpa_printf(MSG_DEBUG, "WEXT: Failed to set bogus "
|
||||
"BSSID/SSID to disconnect");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue