From 892543eb7942990a06129c554125402cfb8e358c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 5 Nov 2016 10:42:18 +0100 Subject: [PATCH] Revert "mt76x2: fix queue mapping in mt76x2_conf_tx()" This reverts commit adf1bbd03cc7e1117d44b3da4e584f6dd590c4d0. A report indicates that this causes a tx/rx throughput regression Signed-off-by: Felix Fietkau --- mt76x2_dma.c | 1 - mt76x2_main.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/mt76x2_dma.c b/mt76x2_dma.c index 8e5d9e65..06e027ad 100644 --- a/mt76x2_dma.c +++ b/mt76x2_dma.c @@ -54,7 +54,6 @@ mt76x2_init_tx_queue(struct mt76x2_dev *dev, struct mt76_queue *q, { int ret; - q->hw_idx = idx; q->regs = dev->mt76.regs + MT_TX_RING_BASE + idx * MT_RING_SIZE; q->ndesc = n_desc; diff --git a/mt76x2_main.c b/mt76x2_main.c index 091fe7c4..bb6b3a75 100644 --- a/mt76x2_main.c +++ b/mt76x2_main.c @@ -361,8 +361,6 @@ mt76x2_conf_tx(struct ieee80211_hw *hw, struct ieee80211_vif *vif, u16 queue, u8 cw_min = 5, cw_max = 10; u32 val; - queue = dev->mt76.q_tx[queue].hw_idx; - if (params->cw_min) cw_min = fls(params->cw_min); if (params->cw_max)