git: 5cfe09e3a442 - main - LinuxKPI: 802.11: only announce netdev_features if any are set

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Thu, 29 Jan 2026 18:07:57 UTC
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=5cfe09e3a442347fe408fa95126dfbc051d064c3

commit 5cfe09e3a442347fe408fa95126dfbc051d064c3
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-01-29 11:17:25 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-01-29 18:07:43 +0000

    LinuxKPI: 802.11: only announce netdev_features if any are set
    
    Printing an empty netdev_features= line makes little sense even under
    bootverbose.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
---
 sys/compat/linuxkpi/common/src/linux_80211.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c
index d25b32f1dae8..4ce0a2094adb 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -6972,7 +6972,9 @@ linuxkpi_ieee80211_ifattach(struct ieee80211_hw *hw)
 	}
 
 	if (bootverbose) {
-		ic_printf(ic, "netdev_features %b\n", hw->netdev_features, NETIF_F_BITS);
+		if (hw->netdev_features != 0)
+			ic_printf(ic, "netdev_features %b\n",
+			    hw->netdev_features, NETIF_F_BITS);
 		ieee80211_announce(ic);
 	}