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.15 482/917] mt76: mt7915: fix sta_rec_wtbl tag len
    Date
    From: Shayne Chen <shayne.chen@mediatek.com>

    [ Upstream commit afa0370f3a3a64af6d368da0bedd72ab2a026cd0 ]

    Fix tag len error for sta_rec_wtbl, which causes fw parsing error for
    the tags placed behind it.

    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 85c9c08ee2a82..6dfe3716a63a5 100644
    --- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
    +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
    @@ -757,7 +757,7 @@ mt7915_mcu_alloc_wtbl_req(struct mt7915_dev *dev, struct mt7915_sta *msta,
    }

    if (sta_hdr)
    - sta_hdr->len = cpu_to_le16(sizeof(hdr));
    + le16_add_cpu(&sta_hdr->len, sizeof(hdr));

    return skb_put_data(nskb, &hdr, sizeof(hdr));
    }
    --
    2.33.0


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