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)
committerFelix Fietkau <nbd@nbd.name>
Mon, 17 Apr 2023 14:08:48 +0000 (16:08 +0200)
commit8b14ce24a0297175bc4ebdf26d45a22b5a33847f
treeae76a9768e7aa3f3fdc72e3d995ad5d8a747e2e7
parentc04ab57dab559c519bb882995beeb6d95a0a21d3
wifi: mt76: mt7996: fix pointer calculation in ie countdown event

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>
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c