wpa_supplicant/wpa_supplicant-driver-ssid-len.patch

14 lines
407 B
Diff

--- wpa_supplicant.c.ssid-len 2006-01-10 00:13:09.000000000 -0500
+++ wpa_supplicant.c 2006-01-10 00:16:26.000000000 -0500
@@ -1429,6 +1429,10 @@
}
ssid_len = res;
+ /* Some drivers NULL the end and add one to the length */
+ if (ssid[ssid_len - 1] == '\0')
+ ssid_len--;
+
if (wpa_drv_get_bssid(wpa_s, bssid) < 0) {
wpa_printf(MSG_WARNING, "Could not read BSSID from driver.");
return NULL;