developer | a37c61f | 2022-04-11 20:10:59 +0800 | [diff] [blame] | 1 | From fcd6f43e0a3de4829397efe19cedf759d091beac Mon Sep 17 00:00:00 2001 |
| 2 | From: Bo Jiao <Bo.Jiao@mediatek.com> |
| 3 | Date: Mon, 11 Apr 2022 20:03:09 +0800 |
| 4 | Subject: [PATCH] mt76: mt7915: report qos_ctl without ACK policy to the up |
| 5 | layer |
| 6 | |
| 7 | There is no need to report the ACK policy to the |
| 8 | mac80211 layer, because hw has already processed it |
| 9 | |
| 10 | Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com> |
| 11 | --- |
| 12 | mt7915/mac.c | 7 ++++++- |
| 13 | 1 file changed, 6 insertions(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/mt7915/mac.c b/mt7915/mac.c |
| 16 | index 8df38a23..64ef061f 100644 |
| 17 | --- a/mt7915/mac.c |
| 18 | +++ b/mt7915/mac.c |
| 19 | @@ -680,9 +680,14 @@ mt7915_mac_fill_rx(struct mt7915_dev *dev, struct sk_buff *skb) |
| 20 | u32 v2 = le32_to_cpu(rxd[2]); |
| 21 | |
| 22 | fc = cpu_to_le16(FIELD_GET(MT_RXD6_FRAME_CONTROL, v0)); |
| 23 | - qos_ctl = FIELD_GET(MT_RXD8_QOS_CTL, v2); |
| 24 | seq_ctrl = FIELD_GET(MT_RXD8_SEQ_CTRL, v2); |
| 25 | |
| 26 | + /* |
| 27 | + * There is no need to report the ACK policy to the |
| 28 | + * mac80211 layer, because hw has already processed it. |
| 29 | + */ |
| 30 | + qos_ctl = FIELD_GET(MT_RXD8_QOS_CTL, v2) & IEEE80211_QOS_CTL_TID_MASK; |
| 31 | + |
| 32 | rxd += 4; |
| 33 | if ((u8 *)rxd - skb->data >= skb->len) |
| 34 | return -EINVAL; |
| 35 | -- |
| 36 | 2.18.0 |
| 37 | |