aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2026-01-20 17:16:50 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2026-01-20 17:19:29 +0000
commitc592d54a24b984f2e23b337a6abeac09b9c357b5 (patch)
treeda54ec521528cbe921f69d214fde11690902f8af
parent8d82dafa568baf7be46e5e443dd7310986a28aa9 (diff)
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
-rw-r--r--sys/compat/linuxkpi/common/src/linux_80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c
index 7972d9d0f667..d25b32f1dae8 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;
}