]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: disable HTC field in AP mode
authorDian-Syuan Yang <dian_syuan0116@realtek.com>
Fri, 24 Apr 2026 07:25:51 +0000 (15:25 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 29 Apr 2026 05:44:48 +0000 (13:44 +0800)
Disable HE QoS HTC field when operating in AP mode to resolve
interoperability issues with some stations.

Signed-off-by: Dian-Syuan Yang <dian_syuan0116@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260424072552.59220-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c

index aeeba52b8c5ee3c80e65f72dbecd4d49c81334e9..7e058c071cc430277994714910358a2936b9f836 100644 (file)
@@ -947,6 +947,7 @@ __rtw89_core_tx_check_he_qos_htc(struct rtw89_dev *rtwdev,
                                 enum btc_pkt_type pkt_type)
 {
        struct rtw89_sta_link *rtwsta_link = tx_req->rtwsta_link;
+       struct ieee80211_vif *vif = tx_req->vif;
        struct sk_buff *skb = tx_req->skb;
        struct ieee80211_hdr *hdr = (void *)skb->data;
        struct ieee80211_link_sta *link_sta;
@@ -978,6 +979,9 @@ __rtw89_core_tx_check_he_qos_htc(struct rtw89_dev *rtwdev,
        if (rtwsta_link && rtwsta_link->ra_report.might_fallback_legacy)
                return false;
 
+       if (vif->type == NL80211_IFTYPE_AP)
+               return false;
+
        return true;
 }