projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a56c431
)
mt76: mt7915: fix sta_rec_wtbl tag len
author
Shayne Chen
<shayne.chen@mediatek.com>
Mon, 18 Oct 2021 08:07:02 +0000
(16:07 +0800)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 20 Oct 2021 08:36:53 +0000
(10:36 +0200)
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>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
index
d65d428
..
4e4906d
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
@@
-622,7
+622,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));
}