From a06461861f4aee7f2f11ece778d37fc62d9033cf Mon Sep 17 00:00:00 2001 From: Howard Hsu Date: Thu, 2 Jan 2025 10:05:39 +0800 Subject: [PATCH] wifi: mt76: mt7996: fill User Priority in skb->priority for rx packets Set UP in skb->priority to allow DSCP Learning at upper layers Signed-off-by: Howard Hsu Signed-off-by: Felix Fietkau --- mac80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mac80211.c b/mac80211.c index a7e21693..a0579e16 100644 --- a/mac80211.c +++ b/mac80211.c @@ -1227,6 +1227,8 @@ mt76_rx_convert(struct mt76_dev *dev, struct sk_buff *skb, mstat = *((struct mt76_rx_status *)skb->cb); memset(status, 0, sizeof(*status)); + skb->priority = mstat.qos_ctl & IEEE80211_QOS_CTL_TID_MASK; + status->flag = mstat.flag; status->freq = mstat.freq; status->enc_flags = mstat.enc_flags;