mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
wifi: mt76: mt7996: fix efuse reading issue
[ Upstream commitd3ad99be7c
] The efuse data starts from the 48th bytes instead of 64th bytes in the returned event skb. Fixes:98686cd216
("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices") Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com> 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
7de96f7206
commit
2765cdacde
1 changed files with 1 additions and 1 deletions
|
@ -3426,7 +3426,7 @@ int mt7996_mcu_get_eeprom(struct mt7996_dev *dev, u32 offset)
|
|||
u32 addr = le32_to_cpu(*(__le32 *)(skb->data + 12));
|
||||
u8 *buf = (u8 *)dev->mt76.eeprom.data + addr;
|
||||
|
||||
skb_pull(skb, 64);
|
||||
skb_pull(skb, 48);
|
||||
memcpy(buf, skb->data, MT7996_EEPROM_BLOCK_SIZE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue