As we merge BSSIDs with matching SSIDs into one, we have to compare
[dhcpcd-ui] / src / dhcpcd-gtk / menu.c
index 23532d2782be6d68ff45c9783b5d606c26560e58..0300b20ef2338c0d5f94b8f8c16afe11427a17e5 100644 (file)
@@ -226,8 +226,8 @@ menu_update_scans(WI_SCAN *wi, DHCPCD_WI_SCAN *scans)
        TAILQ_FOREACH_SAFE(wim, &wi->menus, next, win) {
                found = false;
                for (s = scans; s; s = s->next) {
-                       if (memcmp(wim->scan->bssid, s->bssid,
-                           sizeof(s->bssid)) == 0)
+                       if (memcmp(wim->scan->ssid, s->ssid,
+                           sizeof(s->ssid)) == 0)
                        {
                                found = true;
                                update_item(wi, wim, s);
@@ -244,8 +244,8 @@ menu_update_scans(WI_SCAN *wi, DHCPCD_WI_SCAN *scans)
                found = false;
                position = 0;
                TAILQ_FOREACH(wim, &wi->menus, next) {
-                       if (memcmp(wim->scan->bssid, s->bssid,
-                           sizeof(s->bssid)) == 0)
+                       if (memcmp(wim->scan->ssid, s->ssid,
+                           sizeof(s->ssid)) == 0)
                        {
                                found = true;
                                break;