]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
ACS: Remove invalid debug print
authorJouni Malinen <quic_jouni@quicinc.com>
Tue, 18 Jul 2023 13:08:44 +0000 (16:08 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 18 Jul 2023 13:08:44 +0000 (16:08 +0300)
ideal_chan is NULL here, so it is not really valid to try to debug print
something from it due to the implied NULL pointer dereferencing.

Fixes: af0f60e7dd00 ("EHT: Calculate puncturing bitmap for ACS")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/ap/acs.c

index 877d7d40ad65d8b9ed3b0ce5079e8065a1148dae..8b5760918db58e9e9fee02dd8e0d3940f7868b5d 100644 (file)
@@ -1076,12 +1076,6 @@ bw_selected:
                return ideal_chan;
        }
 
-#ifdef CONFIG_IEEE80211BE
-       if (iface->conf->punct_acs_threshold)
-               wpa_printf(MSG_DEBUG, "ACS: RU puncturing bitmap 0x%x",
-                          ideal_chan->punct_bitmap);
-#endif /* CONFIG_IEEE80211BE */
-
        return rand_chan;
 }