core: fix copying SSID from the connection to the hidden AP

This commit is contained in:
Jiří Klimeš
2011-05-26 14:06:23 +02:00
parent e75f5bc862
commit ce05bdb62e

View File

@@ -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;