Commit 9e577ba8 authored by Chris Aillon's avatar Chris Aillon Committed by Chris Aillon
Browse files

2005-10-17 Christopher Aillon <caillon@redhat.com>

	* src/NetworkManagerDevice.c: (process_scan_results)
	Fix logic that checks to see whether we have an ESSID.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1026 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent cdb34bd3
2005-10-17 Christopher Aillon <caillon@redhat.com>
* src/NetworkManagerDevice.c: (process_scan_results)
Fix logic that checks to see whether we have an ESSID.
2005-10-15 Dan Williams <dcbw@redhat.com>
Move scanning code into NetworkManager rather than use iwlib's
......
......@@ -4602,7 +4602,9 @@ static gboolean process_scan_results (NMDevice *dev, const guint8 *res_buf, guin
char *essid = g_malloc (IW_ESSID_MAX_SIZE + 1);
memcpy (essid, custom, ssid_len);
essid[ssid_len] = '\0';
if ((strlen (essid) >= 8) && (strcmp (essid, "<hidden>") != 0)) /* Stupid ipw drivers use <hidden> */
if (!strlen(essid))
set = FALSE;
else if ((strlen (essid) == 8) && (strcmp (essid, "<hidden>") == 0)) /* Stupid ipw drivers use <hidden> */
set = FALSE;
if (set)
nm_ap_set_essid (ap, essid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment