As we merge BSSIDs with matching SSIDs into one, we have to compare
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-wi.cpp
index 680091575832422389530df291cbebb9a922e179..69988d3ec87464998d64cd19693e07abd2b1521a 100644 (file)
@@ -99,8 +99,8 @@ bool DhcpcdWi::setScans(DHCPCD_WI_SCAN *scans)
                        lst = menu->findChildren<DhcpcdSsidMenu*>();
                        foreach(DhcpcdSsidMenu *sm, lst) {
                                DHCPCD_WI_SCAN *s = sm->getScan();
-                               if (memcmp(scan->bssid, s->bssid,
-                                   sizeof(scan->bssid)) == 0)
+                               if (memcmp(scan->ssid, s->ssid,
+                                   sizeof(scan->ssid)) == 0)
                                {
                                        sm->setScan(scan);
                                        found = true;
@@ -120,8 +120,8 @@ bool DhcpcdWi::setScans(DHCPCD_WI_SCAN *scans)
                foreach(DhcpcdSsidMenu *sm, lst) {
                        DHCPCD_WI_SCAN *s = sm->getScan();
                        for (scan = scans; scan; scan = scan->next) {
-                               if (memcmp(scan->bssid, s->bssid,
-                                   sizeof(scan->bssid)) == 0)
+                               if (memcmp(scan->ssid, s->ssid,
+                                   sizeof(scan->ssid)) == 0)
                                        break;
                        }
                        if (scan == NULL) {