lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.10 336/575] mt76: mt7915: fix muar_idx in mt7915_mcu_alloc_sta_req()
    Date
    From: Shayne Chen <shayne.chen@mediatek.com>

    [ Upstream commit 161cc13912d3c3e8857001988dfba39be842454a ]

    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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
    index 63bc4577c5c57..7b6e9a5352b35 100644
    --- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
    +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
    @@ -631,7 +631,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;
    --
    2.33.0


    \
     
     \ /
      Last update: 2021-11-16 03:06    [W:8.381 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site