mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
wifi: mt76: mt7996: fix non-main BSS no beacon issue for MBSS scenario
Do not add UNI_BSS_INFO_11V_MBSSID tag when bssid_indicator is not set to avoid abnormal beaconing behavior in non-11v MBSS scenario. Signed-off-by: Henry Yen <henry.yen@mediatek.com> Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -819,11 +819,14 @@ mt7996_mcu_bss_mbssid_tlv(struct sk_buff *skb, struct ieee80211_vif *vif,
|
|||||||
struct bss_info_uni_mbssid *mbssid;
|
struct bss_info_uni_mbssid *mbssid;
|
||||||
struct tlv *tlv;
|
struct tlv *tlv;
|
||||||
|
|
||||||
|
if (!vif->bss_conf.bssid_indicator)
|
||||||
|
return;
|
||||||
|
|
||||||
tlv = mt7996_mcu_add_uni_tlv(skb, UNI_BSS_INFO_11V_MBSSID, sizeof(*mbssid));
|
tlv = mt7996_mcu_add_uni_tlv(skb, UNI_BSS_INFO_11V_MBSSID, sizeof(*mbssid));
|
||||||
|
|
||||||
mbssid = (struct bss_info_uni_mbssid *)tlv;
|
mbssid = (struct bss_info_uni_mbssid *)tlv;
|
||||||
|
|
||||||
if (enable && vif->bss_conf.bssid_indicator) {
|
if (enable) {
|
||||||
mbssid->max_indicator = vif->bss_conf.bssid_indicator;
|
mbssid->max_indicator = vif->bss_conf.bssid_indicator;
|
||||||
mbssid->mbss_idx = vif->bss_conf.bssid_index;
|
mbssid->mbss_idx = vif->bss_conf.bssid_index;
|
||||||
mbssid->tx_bss_omac_idx = 0;
|
mbssid->tx_bss_omac_idx = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user