mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 10:54:03 -05:00
WEXT: Show BSSID/SSID set failures on disconnect in debug log
This commit is contained in:
parent
fbe3e7f840
commit
a7efb16052
@ -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
|
* even if it does not understand SIOCSIWMLME commands (or
|
||||||
* tries to associate automatically after deauth/disassoc).
|
* tries to associate automatically after deauth/disassoc).
|
||||||
*/
|
*/
|
||||||
wpa_driver_wext_set_bssid(drv, null_bssid);
|
|
||||||
|
|
||||||
for (i = 0; i < 32; i++)
|
for (i = 0; i < 32; i++)
|
||||||
ssid[i] = rand() & 0xFF;
|
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 New Issue
Block a user