diff options
author | Peter Chiu <chui-hao.chiu@mediatek.com> | 2023-12-08 02:35:39 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2024-02-22 11:55:16 +0300 |
commit | 6178554066bc41445997cf0319489b625cefcc5f (patch) | |
tree | 46e2cecb447fa585306fb35be634a43767bf7806 /drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c | |
parent | 775cf70c409b0e54475921c1084792771fae50cb (diff) | |
download | linux-6178554066bc41445997cf0319489b625cefcc5f.tar.xz |
wifi: mt76: 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.
Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c index 630c6402ec25..b841bf628d02 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c @@ -716,6 +716,9 @@ bool mt76_connac2_mac_add_txs_skb(struct mt76_dev *dev, struct mt76_wcid *wcid, struct sk_buff_head list; struct sk_buff *skb; + if (le32_get_bits(txs_data[0], MT_TXS0_TXS_FORMAT) == MT_TXS_PPDU_FMT) + return false; + mt76_tx_status_lock(dev, &list); skb = mt76_tx_status_skb_get(dev, wcid, pid, &list); if (skb) { |