From a3a34c0eb1ecf1c26bddbf36a6e421504f2d917e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 22 Dec 2023 16:54:15 +0200 Subject: [PATCH] HS 2.0: Remove useless debug print in non-Hotspot 2.0 cases It is not really helpful to get debug prints about Hotspot 2.0 frame filtering when trying to connect a non-Hotspot 2.0 network. Remove this debug print that was being printed for every connection that did not use Hotspot 2.0. Signed-off-by: Jouni Malinen --- wpa_supplicant/hs20_supplicant.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wpa_supplicant/hs20_supplicant.c b/wpa_supplicant/hs20_supplicant.c index c1c823f2a..272f2be53 100644 --- a/wpa_supplicant/hs20_supplicant.c +++ b/wpa_supplicant/hs20_supplicant.c @@ -67,15 +67,13 @@ struct osu_provider { void hs20_configure_frame_filters(struct wpa_supplicant *wpa_s) { struct wpa_bss *bss = wpa_s->current_bss; - u8 *bssid = wpa_s->bssid; const u8 *ie; const u8 *ext_capa; u32 filter = 0; if (!bss || !is_hs20_network(wpa_s, wpa_s->current_ssid, bss)) { - wpa_printf(MSG_DEBUG, - "Not configuring frame filtering - BSS " MACSTR - " is not a Hotspot 2.0 network", MAC2STR(bssid)); + /* Not configuring frame filtering - BSS is not a Hotspot 2.0 + * network */ return; } -- 2.47.2