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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2016-12-03 18:59:32 +02:00
parent 27b698338f
commit 2a1cf26ecf

View file

@ -780,8 +780,14 @@ int bss_info_handler(struct nl_msg *msg, void *arg)
continue; continue;
/* Same BSSID,SSID was already included in scan results */ /* Same BSSID,SSID was already included in scan results */
wpa_printf(MSG_DEBUG, "nl80211: Remove duplicated scan result " wpa_printf(MSG_DEBUG,
"for " MACSTR, MAC2STR(r->bssid)); "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) && if (((r->flags & WPA_SCAN_ASSOCIATED) &&
!(res->res[i]->flags & WPA_SCAN_ASSOCIATED)) || !(res->res[i]->flags & WPA_SCAN_ASSOCIATED)) ||