WEXT: Show BSSID/SSID set failures on disconnect in debug log

This commit is contained in:
Jouni Malinen 2010-01-10 22:18:50 +02:00
parent fbe3e7f840
commit a7efb16052

View file

@ -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");
}
} }
} }