wifi: mt76: mt7996: check txs format before getting skb by pid
authorPeter Chiu <chui-hao.chiu@mediatek.com>
Fri, 26 Jan 2024 09:09:12 +0000 (17:09 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 22 Feb 2024 08:55:17 +0000 (09:55 +0100)
commit9c9c25f1dcdd98fffda564d2073f26219c84a2c3
treee481741584f5723c3f3f626c2d31abaf0c570ee6
parent396e41a74a88654f23e36c46d2995752c91654a5
wifi: mt76: mt7996: check txs format before getting skb by pid

The PPDU TXS does not include the error bit so it cannot use to report
status to mac80211. This patch fixes issue that STA wrongly detects if AP
is still alive.

Fixes: 2569ea5326e2 ("wifi: mt76: mt7996: enable PPDU-TxS to host")
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/mac.c