diff options
author | Felix Fietkau <nbd@nbd.name> | 2020-12-16 16:05:51 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-04-11 18:50:37 +0200 |
commit | e195dad1411594809cb955c96a7a514bcc4ad638 (patch) | |
tree | 3cec3baf74b4a27d9b473d997a73ffe707dd0468 /drivers/net/wireless/mediatek/mt76/mt7615 | |
parent | fa9f5d0e0b45a06802f7cb3afed237be6066821e (diff) |
mt76: add support for 802.3 rx frames
Do not try to access the header when receiving them
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7615')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c index 59fdd0fc2ad4..6a835568f4a3 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c @@ -458,7 +458,7 @@ static int mt7615_mac_fill_rx(struct mt7615_dev *dev, struct sk_buff *skb) status->aggr = unicast && !ieee80211_is_qos_nullfunc(hdr->frame_control); - status->tid = *ieee80211_get_qos_ctl(hdr) & IEEE80211_QOS_CTL_TID_MASK; + status->qos_ctl = *ieee80211_get_qos_ctl(hdr); status->seqno = IEEE80211_SEQ_TO_SN(le16_to_cpu(hdr->seq_ctrl)); return 0; |