Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jul 2026 21:06:48 +0000
From:      Bjoern A. Zeeb <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8a1600428e93 - main - LinuxKPI: 802.11: stop ieee80211_start_tx_ba_session() if no HT supported
Message-ID:  <6a5a9968.219f0.6514022d@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by bz:

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

commit 8a1600428e937a41b65869c78ce847f7cabbad24
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-07-17 20:59:08 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-07-17 21:05:28 +0000

    LinuxKPI: 802.11: stop ieee80211_start_tx_ba_session() if no HT supported
    
    rtw89(4) would constantly try to start a TX BlockACK session even if no
    HT or higher was available.  The only way to stop this (currently) is
    to return -EINVAL instead of any other error.
    
    Note: we should investigate if/when to call (*set_tid_config)() as that
    will also offer the ability to forbid BA.
    
    Sponsored by:   The FreeBSD Foundation
    Reported by:    arved, bnovkov
    Tested by:      bnovkov
    MFC after:      3 days
---
 sys/compat/linuxkpi/common/src/linux_80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c
index ffce2fe48e10..355d0c160472 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -6850,7 +6850,7 @@ linuxkpi_ieee80211_start_tx_ba_session(struct ieee80211_sta *sta, uint8_t tid,
 	    !sta->deflink.eht_cap.has_eht) {
 		net80211_vap_printf(lsta->ni->ni_vap, "%s: HT or later not "
 		    "supported\n", __func__);
-		return (-ENOTSUPP);
+		return (-EINVAL);
 	}
 
 #ifdef __notyet__


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a5a9968.219f0.6514022d>