2006-12-04 Dan Williams <dcbw@redhat.com>

* src/nm-device-802-11-wireless.c
		- (supplicant_iface_scanned_ap_cb): fix parsing of hidden APs due to
			odd length of ESSID returned from ieee80211 stack-based drivers


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2165 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2006-12-04 20:44:30 +00:00
parent a4ea27d2ca
commit 8eb78d652d
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2006-12-04 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
- (supplicant_iface_scanned_ap_cb): fix parsing of hidden APs due to
odd length of ESSID returned from ieee80211 stack-based drivers
2006-12-04 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c

View file

@ -2209,8 +2209,9 @@ supplicant_iface_scanned_ap_cb (NMSupplicantInterface * iface,
if (ssid_len <= 0)
goto next;
/* Stupid ieee80211 layer uses <hidden> */
if ((ssid_len == 8) && (memcmp (entry.bytearray_value, "<hidden>", 8) == 0))
goto out;
if (((ssid_len == 8) || (ssid_len == 9))
&& (memcmp (entry.bytearray_value, "<hidden>", 8) == 0))
goto next;
memset (&ssid, 0, sizeof (ssid));
memcpy (&ssid, entry.bytearray_value, ssid_len);
ssid[32] = '\0';