mt7996_mcu_add_bss_info() adds the UNI_BSS_INFO_HE_BASIC TLV only if vif->bss_conf.he_support is set, while the TLV itself reads the link conf. For an MLD, mac80211 sets he_support in the conf of each link and leaves vif->bss_conf alone. No link of an AP MLD or of a station MLD thus gets the tag. The firmware then never programs the TXOP duration RTS threshold of these BSSs, which only this tag writes. Test he_support of the link conf, the conf the TLV takes its values from. An interface that is no MLD has vif->bss_conf as its link conf and keeps its behaviour. Fixes: 34a41bfbcb71 ("wifi: mt76: mt7996: prepare mt7996_mcu_add_dev/bss_info for MLO support") Fixes: a9eae65d97f3 ("wifi: mt76: mt7996: Export MLO AP capabilities to mac80211") Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c index 1c4bb5706d49..df08c4bba0e7 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.c @@ -1388,7 +1388,7 @@ int mt7996_mcu_add_bss_info(struct mt7996_phy *phy, struct ieee80211_vif *vif, mt7996_mcu_bss_txcmd_tlv(skb, true); mt7996_mcu_bss_ifs_timing_tlv(skb, phy); - if (vif->bss_conf.he_support) + if (link_conf->he_support) mt7996_mcu_bss_he_tlv(skb, vif, link_conf, phy); /* this tag is necessary no matter if the vif is MLD */ -- 2.47.3