From: Jouni Malinen Date: Sat, 3 Dec 2016 16:59:32 +0000 (+0200) Subject: nl80211: Add more debug details to duplicate scan entry removal X-Git-Tag: hostap_2_7~2075 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a1cf26ecf08060572c4023a55d9c6f9d91de539;p=thirdparty%2Fhostap.git nl80211: Add more debug details to duplicate scan entry removal This makes it easier to understand which cfg80211 entry got removed as obsolete duplicate. Signed-off-by: Jouni Malinen --- diff --git a/src/drivers/driver_nl80211_scan.c b/src/drivers/driver_nl80211_scan.c index 610bbb5a8..4d16428f7 100644 --- a/src/drivers/driver_nl80211_scan.c +++ b/src/drivers/driver_nl80211_scan.c @@ -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)) ||