git: 7f3d78b819a9 - stable/15 - LinuxKPI: 802.11: add note about rate control support under boot -v

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Mon, 29 Jun 2026 06:34:14 UTC
The branch stable/15 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=7f3d78b819a929c9d514e71ae128e7295b8a4279

commit 7f3d78b819a929c9d514e71ae128e7295b8a4279
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-04-26 20:04:46 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-06-29 03:52:00 +0000

    LinuxKPI: 802.11: add note about rate control support under boot -v
    
    We currently do not support rate control in LinuxKPI.  As more drivers
    and chipsets gain suppport for higher throughput add a note under
    bootverbose if we hit one of these cases (currently only older iwlwifi
    chipsets).
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit a993d281111bef7c760340321e372a7cb6a759a0)
---
 sys/compat/linuxkpi/common/src/linux_80211.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c
index ad842ea7a7d2..745b3872abe4 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -7068,6 +7068,12 @@ linuxkpi_ieee80211_ifattach(struct ieee80211_hw *hw)
 
 	lkpi_enable_hw_scan(lhw);
 
+	/* Does the driver/firmware handle rate countrol? */
+	/* Currently only older iwlwifi mvm devices are in this category. */
+	if (bootverbose && !ieee80211_hw_check(hw, HAS_RATE_CONTROL))
+		ic_printf(ic, "NOTE: rate control not supported by LinuxKPI; "
+		    "expect low rates only\n");
+
 	/* Does HW support Fragmentation offload? */
 	if (ieee80211_hw_check(hw, SUPPORTS_TX_FRAG))
 		ic->ic_flags_ext |= IEEE80211_FEXT_FRAG_OFFLOAD;