git: 912251ac6b18 - stable/15 - LinuxKPI: 802.11: stop ieee80211_start_tx_ba_session() if no HT supported

Bjoern A. Zeeb <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a66a202.26fa2.71560175__48386.2861454085$1785111297$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by bz:

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

commit 912251ac6b186aa2716ddd51bde9a0e1f6b3c2e3
Author:     Bjoern A. Zeeb <[email protected]>
AuthorDate: 2026-07-17 20:59:08 +0000
Commit:     Bjoern A. Zeeb <[email protected]>
CommitDate: 2026-07-26 16:48:33 +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
    
    (cherry picked from commit 8a1600428e937a41b65869c78ce847f7cabbad24)
---
 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 e550e85a5ab9..df6d7c3158b3 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -6844,7 +6844,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__
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.