wifi: mt76: mt7996: fix handling mbss enable/disable
authorRex Lu <rex.lu@mediatek.com>
Fri, 16 Aug 2024 09:46:33 +0000 (17:46 +0800)
committerFelix Fietkau <nbd@nbd.name>
Fri, 6 Sep 2024 09:13:37 +0000 (11:13 +0200)
When mbss was previously enabled, the TLV needs to be included when
disabling it again, in order to clear the firmware state.

Fixes: a7908d5b61e5 ("wifi: mt76: mt7996: fix non-main BSS no beacon issue for MBSS scenario")
Signed-off-by: Rex Lu <rex.lu@mediatek.com>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Link: https://patch.msgid.link/20240816094635.2391-9-shayne.chen@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c

index 238b1f78ff7ccc3728df7d6afd002c86ca8b6496..e8d34bfbb41ae0a69798b34a5c0adf7ffbcb2603 100644 (file)
@@ -822,7 +822,7 @@ mt7996_mcu_bss_mbssid_tlv(struct sk_buff *skb, struct ieee80211_vif *vif,
        struct bss_info_uni_mbssid *mbssid;
        struct tlv *tlv;
 
-       if (!vif->bss_conf.bssid_indicator)
+       if (!vif->bss_conf.bssid_indicator && enable)
                return;
 
        tlv = mt7996_mcu_add_uni_tlv(skb, UNI_BSS_INFO_11V_MBSSID, sizeof(*mbssid));