[PATCH]: (re)allow selection of zero length non-WPA ssid by wpa_supplicant_select_bss
Kel Modderman
kel
Fri Aug 24 06:18:59 PDT 2007
Hi,
There is a regression since git commit 7d5d46c756afbb8ceb89107530dde43cc0f61a2d
Fri, 11 May 2007 03:52:46 +0000 (-0700), that prevents the simplest network
configuration from working:
network={
key_mgmt=NONE
}
Attached patch to reinstate previous behaviour.
---
diff -Nrup wpa_supplicant-0.6.0.orig/wpa_supplicant/events.c wpa_supplicant-0.6.0/wpa_supplicant/events.c
--- wpa_supplicant-0.6.0.orig/wpa_supplicant/events.c 2007-05-29 03:26:55.000000000 +1000
+++ wpa_supplicant-0.6.0/wpa_supplicant/events.c 2007-08-24 23:00:03.000000000 +1000
@@ -444,9 +444,10 @@ wpa_supplicant_select_bss(struct wpa_sup
wpa_printf(MSG_DEBUG, " skip - disabled");
continue;
}
- if (bss->ssid_len != ssid->ssid_len ||
+ if (ssid->ssid_len != 0 &&
+ (bss->ssid_len != ssid->ssid_len ||
os_memcmp(bss->ssid, ssid->ssid,
- bss->ssid_len) != 0) {
+ bss->ssid_len) != 0)) {
wpa_printf(MSG_DEBUG, " skip - "
"SSID mismatch");
continue;
More information about the Hostap
mailing list