From 988f14448ab5fe1f99495f8cd3c65fc331dc7e66 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 1 Jan 2020 17:55:00 +0200 Subject: [PATCH] Indicated if the selected BSS is the current BSS This makes scan result processing a bit more readable in debug log. Signed-off-by: Jouni Malinen --- wpa_supplicant/events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 4daab3f2f..603d4dabb 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -1446,8 +1446,9 @@ wpa_supplicant_select_bss(struct wpa_supplicant *wpa_s, wpa_s->owe_transition_select = 0; if (!*selected_ssid) continue; - wpa_dbg(wpa_s, MSG_DEBUG, " selected BSS " MACSTR + wpa_dbg(wpa_s, MSG_DEBUG, " selected %sBSS " MACSTR " ssid='%s'", + bss == wpa_s->current_bss ? "current ": "", MAC2STR(bss->bssid), wpa_ssid_txt(bss->ssid, bss->ssid_len)); return bss;