From: Jouni Malinen Date: Tue, 18 Jul 2023 13:08:44 +0000 (+0300) Subject: ACS: Remove invalid debug print X-Git-Tag: hostap_2_11~1085 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f80d8336881844230143f21bbfd07dba6a309d25;p=thirdparty%2Fhostap.git ACS: Remove invalid debug print 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 --- diff --git a/src/ap/acs.c b/src/ap/acs.c index 877d7d40a..8b5760918 100644 --- a/src/ap/acs.c +++ b/src/ap/acs.c @@ -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; }