git: d16077f48468 - stable/15 - LinuxKPI: 802.11: set extra tx info flag for EAPOL for mt76

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Fri, 27 Feb 2026 02:29:42 UTC
The branch stable/15 has been updated by bz:

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

commit d16077f48468f080902b88d5445f44e5fd8d30f4
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-02-04 22:25:50 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-02-26 23:01:39 +0000

    LinuxKPI: 802.11: set extra tx info flag for EAPOL for mt76
    
    mt76 requires IEEE80211_TX_CTL_USE_MINRATE to be set for EAPOL, so
    add it.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit c529e1a8f8edb575de6b109981c4ca7ffdd3b81c)
---
 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 4ce0a2094adb..2a56d19adbea 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -5697,8 +5697,10 @@ lkpi_80211_txq_tx_one(struct lkpi_sta *lsta, struct mbuf *m)
 		c = ic->ic_curchan;
 	info->band = lkpi_net80211_chan_to_nl80211_band(c);
 	info->hw_queue = vif->hw_queue[ac];
-	if (m->m_flags & M_EAPOL)
+	if ((m->m_flags & M_EAPOL) != 0) {
 		info->control.flags |= IEEE80211_TX_CTRL_PORT_CTRL_PROTO;
+		info->flags |= IEEE80211_TX_CTL_USE_MINRATE;	/* mt76 */
+	}
 	info->control.vif = vif;
 	/* XXX-BZ info->control.rates */
 #ifdef __notyet__