mt76: mt7915: fix muar_idx in mt7915_mcu_alloc_sta_req()
authorShayne Chen <shayne.chen@mediatek.com>
Mon, 18 Oct 2021 08:07:04 +0000 (16:07 +0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 08:36:53 +0000 (10:36 +0200)
For broadcast/multicast wcid, the muar_idx should be 0xe.

Fixes: e57b7901469f ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets")
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c

index 4e48c06bd467f20c277347f007caaf5e6132e18d..f32e124b1a0f26cd1b530fb375bfd360acc875d9 100644 (file)
@@ -586,7 +586,7 @@ mt7915_mcu_alloc_sta_req(struct mt7915_dev *dev, struct mt7915_vif *mvif,
                .bss_idx = mvif->idx,
                .wlan_idx_lo = msta ? to_wcid_lo(msta->wcid.idx) : 0,
                .wlan_idx_hi = msta ? to_wcid_hi(msta->wcid.idx) : 0,
-               .muar_idx = msta ? mvif->omac_idx : 0,
+               .muar_idx = msta && msta->wcid.sta ? mvif->omac_idx : 0xe,
                .is_tlv_append = 1,
        };
        struct sk_buff *skb;