]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
wifi: mt76: mt7996: fix pointer calculation in ie countdown event
authorPeter Chiu <chui-hao.chiu@mediatek.com>
Fri, 3 Mar 2023 08:35:55 +0000 (16:35 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 Jul 2023 10:17:01 +0000 (12:17 +0200)
commit16f1338f071934b5e8f4fd06f4414758346f17fe
tree37c3b9bcf4eadf659d0903716a0e5401f102c9c1
parent6c74edd455998d8326d3535d47d6e3ab3348233d
wifi: mt76: mt7996: fix pointer calculation in ie countdown event

BugLink: https://bugs.launchpad.net/bugs/2025067
[ Upstream commit 8b14ce24a0297175bc4ebdf26d45a22b5a33847f ]

Fix the tail and data pointers. The rxd->len in mt7996_mcu_rxd does not
include the length of general rxd. It only includes the length of
firmware event rxd. Use skb->length to get the correct length.

Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices")
Signed-off-by: Peter Chiu <chui-hao.chiu@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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c