From: Murad Dadashev MT7603U uses hardware queues 0-3 for BK, BE, VI and VO, sent on the bulk out endpoints following the inband command endpoint, and hardware queue 4 for management frames, sent on the inband command endpoint. Signed-off-by: Murad Dadashev --- drivers/net/wireless/mediatek/mt76/usb.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/usb.c b/drivers/net/wireless/mediatek/mt76/usb.c index f6464315e3741c849f7a5ff13502abaae2150a37..317ef30a597caea21df4e88848f78191e9be4bb6 100644 --- a/drivers/net/wireless/mediatek/mt76/usb.c +++ b/drivers/net/wireless/mediatek/mt76/usb.c @@ -976,6 +976,23 @@ mt76u_ac_to_hwq(struct mt76_dev *dev, struct mt76_queue *q, u8 qid) u8 ac = qid < IEEE80211_NUM_ACS ? qid : IEEE80211_AC_BE; switch (mt76_chip(dev)) { + case 0x7603: { + static const u8 wmm_queue_map[] = { + [IEEE80211_AC_BK] = 0, + [IEEE80211_AC_BE] = 1, + [IEEE80211_AC_VI] = 2, + [IEEE80211_AC_VO] = 3, + }; + + if (qid == MT_TXQ_PSD) { + q->hw_idx = 4; + q->ep = MT_EP_OUT_INBAND_CMD; + } else { + q->hw_idx = wmm_queue_map[ac]; + q->ep = q->hw_idx + 1; + } + break; + } case 0x7663: { static const u8 lmac_queue_map[] = { /* ac to lmac mapping */ -- 2.47.3