]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Add more debug details to duplicate scan entry removal
authorJouni Malinen <j@w1.fi>
Sat, 3 Dec 2016 16:59:32 +0000 (18:59 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 3 Dec 2016 16:59:32 +0000 (18:59 +0200)
This makes it easier to understand which cfg80211 entry got removed as
obsolete duplicate.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211_scan.c

index 610bbb5a87b6f2b93917dc5a534cbcb7b2c31a33..4d16428f70861af31af2cce70871e279788d665b 100644 (file)
@@ -780,8 +780,14 @@ int bss_info_handler(struct nl_msg *msg, void *arg)
                        continue;
 
                /* Same BSSID,SSID was already included in scan results */
-               wpa_printf(MSG_DEBUG, "nl80211: Remove duplicated scan result "
-                          "for " MACSTR, MAC2STR(r->bssid));
+               wpa_printf(MSG_DEBUG,
+                          "nl80211: Remove duplicated scan result for " MACSTR
+                          " (assoc/age/freq prev=%d/%d/%d new=%d/%d/%d)",
+                          MAC2STR(r->bssid),
+                          !!(res->res[i]->flags & WPA_SCAN_ASSOCIATED),
+                          res->res[i]->age, res->res[i]->freq,
+                          !!(r->flags & WPA_SCAN_ASSOCIATED),
+                          r->age, r->freq);
 
                if (((r->flags & WPA_SCAN_ASSOCIATED) &&
                     !(res->res[i]->flags & WPA_SCAN_ASSOCIATED)) ||