git: a993d281111b - main - LinuxKPI: 802.11: add note about rate control support under boot -v

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Fri, 05 Jun 2026 12:10:07 UTC
The branch main has been updated by bz:

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

commit a993d281111bef7c760340321e372a7cb6a759a0
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-05 12:09:22 +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
    MFC after:      3 days
---
 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 7e55e0912bb1..b6ad148fb587 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -7074,6 +7074,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;