aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_wext.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-10 20:18:50 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-10 20:18:50 (GMT)
commita7efb16052f1ec0b4637447d8f80289d085d606b (patch)
tree13168a4323241f1a3955968fc5b69505b926309c /src/drivers/driver_wext.c
parentfbe3e7f84095ac7e44bc866ba4205aaa3e5cfcdf (diff)
downloadhostap-a7efb16052f1ec0b4637447d8f80289d085d606b.zip
hostap-a7efb16052f1ec0b4637447d8f80289d085d606b.tar.gz
hostap-a7efb16052f1ec0b4637447d8f80289d085d606b.tar.bz2
WEXT: Show BSSID/SSID set failures on disconnect in debug log
Diffstat (limited to 'src/drivers/driver_wext.c')
-rw-r--r--src/drivers/driver_wext.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/drivers/driver_wext.c b/src/drivers/driver_wext.c
index e3ec388..cb89a9e 100644
--- a/src/drivers/driver_wext.c
+++ b/src/drivers/driver_wext.c
@@ -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");
+ }
}
}