From 95acf972750c325ed81b78aa1375366d7b7cd553 Mon Sep 17 00:00:00 2001 From: Deren Wu Date: Thu, 2 Dec 2021 15:40:54 +0800 Subject: [PATCH] mt76: fix 802.3 RX fail by hdr_trans Should not run hdr_trans process for 802.3 packets, this would cause all data frame RX fail. Fixes: d9930ec65b9f ("mt76: only set rx radiotap flag from within decoder functions") Reviewed-by: Ryder Lee Signed-off-by: Deren Wu --- mt7915/mac.c | 2 +- mt7921/mac.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mt7915/mac.c b/mt7915/mac.c index 1041d88f..c15beb42 100644 --- a/mt7915/mac.c +++ b/mt7915/mac.c @@ -794,7 +794,7 @@ mt7915_mac_fill_rx(struct mt7915_dev *dev, struct sk_buff *skb) status->flag |= RX_FLAG_8023; } - if (rxv && mode >= MT_PHY_TYPE_HE_SU) + if (rxv && mode >= MT_PHY_TYPE_HE_SU && !(status->flag & RX_FLAG_8023)) mt7915_mac_decode_he_radiotap(skb, rxv, mode); if (!status->wcid || !ieee80211_is_data_qos(fc)) diff --git a/mt7921/mac.c b/mt7921/mac.c index e17c8f4c..30cce574 100644 --- a/mt7921/mac.c +++ b/mt7921/mac.c @@ -792,7 +792,7 @@ mt7921_mac_fill_rx(struct mt7921_dev *dev, struct sk_buff *skb) mt7921_mac_assoc_rssi(dev, skb); - if (rxv && mode >= MT_PHY_TYPE_HE_SU) + if (rxv && mode >= MT_PHY_TYPE_HE_SU && !(status->flag & RX_FLAG_8023)) mt7921_mac_decode_he_radiotap(skb, rxv, mode); if (!status->wcid || !ieee80211_is_data_qos(fc))