From ce05bdb62eb55a53fe5ca599f7f35ba4e3da516c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Thu, 26 May 2011 14:06:23 +0200 Subject: [PATCH] core: fix copying SSID from the connection to the hidden AP --- src/nm-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-manager.c b/src/nm-manager.c index 6fd2bfd3c..961c9d8c6 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -1080,7 +1080,7 @@ manager_hidden_ap_found (NMDeviceInterface *device, struct ether_addr seen_addr; if (ether_aton_r (seen_bssid, &seen_addr)) { - if (memcmp (ap_addr, &seen_addr, sizeof (struct ether_addr))) { + if (memcmp (ap_addr, &seen_addr, sizeof (struct ether_addr)) == 0) { /* Copy the SSID from the connection to the AP */ nm_ap_set_ssid (ap, ssid); done = TRUE;