mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 21:45:45 +02:00
mt76: mt7915: fix sta_rec_wtbl tag len
[ Upstream commitafa0370f3a] Fix tag len error for sta_rec_wtbl, which causes fw parsing error for the tags placed behind it. Fixes:e57b790146("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>
This commit is contained in:
parent
116652a3d5
commit
1a270dada0
|
|
@ -667,7 +667,7 @@ mt7915_mcu_alloc_wtbl_req(struct mt7915_dev *dev, struct mt7915_sta *msta,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sta_hdr)
|
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));
|
return skb_put_data(nskb, &hdr, sizeof(hdr));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user