git: c592d54a24b9 - main - LinuxKPI: 802.11: fix build for non-debug kernels
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Jan 2026 17:19:44 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=c592d54a24b984f2e23b337a6abeac09b9c357b5
commit c592d54a24b984f2e23b337a6abeac09b9c357b5
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-01-20 17:16:50 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-01-20 17:19:29 +0000
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 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;
}