From c592d54a24b984f2e23b337a6abeac09b9c357b5 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Tue, 20 Jan 2026 17:16:50 +0000 Subject: [PATCH] LinuxKPI: 802.11: fix build for non-debug kernels lkpi_nl80211_band_name() is only available under LINUXKPI_DEBUG_80211. IMPROVE in theory should be as well or defined to nothing but we cannot do that in cfg80211.h mac80211.h where we possibly (re-)define this. Put an #ifdef around the IMPROVE call for now (untested). Sponsored by: The FreeBSD Foundation MFC after: 3 days Fixes: 768332d61948 Reported by: CI --- sys/compat/linuxkpi/common/src/linux_80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index 7972d9d0f66..d25b32f1dae 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -8039,9 +8039,11 @@ lkpi_wiphy_band_annotate(struct wiphy *wiphy) case NL80211_BAND_5GHZ: break; default: +#ifdef LINUXKPI_DEBUG_80211 IMPROVE("band %d(%s) not yet supported", band, lkpi_nl80211_band_name(band)); /* For bands added here, also check lkpi_lsta_alloc(). */ +#endif continue; }