]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: mt76: mt7996: fix implicit beamforming support for mt7992
authorHoward Hsu <howard-yh.hsu@mediatek.com>
Thu, 6 Nov 2025 06:41:54 +0000 (14:41 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 24 Nov 2025 13:59:11 +0000 (14:59 +0100)
Fix the ibf_timeout field for mt7996, mt7992 and mt7990 chipsets. For
the mt7992, this value shall be set as 0xff, while the others shall be
set as 0x18.

Fixes: ad4c9a8a9803 ("wifi: mt76: mt7996: add implicit beamforming support for mt7992")
Signed-off-by: Howard Hsu <howard-yh.hsu@mediatek.com>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Link: https://patch.msgid.link/20251106064203.1000505-3-shayne.chen@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c

index e97984693290a2fadc1365594814ae3af68adca0..82dd34a8780f146b6304217b09eb25d23dd8d87a 100644 (file)
@@ -1825,8 +1825,8 @@ mt7996_mcu_sta_bfer_tlv(struct mt7996_dev *dev, struct sk_buff *skb,
        bf->ibf_nrow = tx_ant;
 
        if (link_sta->eht_cap.has_eht || link_sta->he_cap.has_he)
-               bf->ibf_timeout = is_mt7996(&dev->mt76) ? MT7996_IBF_TIMEOUT :
-                                                         MT7992_IBF_TIMEOUT;
+               bf->ibf_timeout = is_mt7992(&dev->mt76) ? MT7992_IBF_TIMEOUT :
+                                                         MT7996_IBF_TIMEOUT;
        else if (!ebf && link_sta->bandwidth <= IEEE80211_STA_RX_BW_40 && !bf->ncol)
                bf->ibf_timeout = MT7996_IBF_TIMEOUT_LEGACY;
        else