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: 768332d619
Reported by: CI
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user