diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2020-11-11 16:47:30 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-11-12 16:59:29 +0300 |
commit | b0eb7edcc62418f5322e065b85e68892fd531f79 (patch) | |
tree | 3274666d7fbf301fba2ecd0b87d2ba8dcae64544 /mt7603 | |
parent | 8932975be066bf955bb018305964528bdc9e5291 (diff) |
mt76: rely on mt76_queue in tx_queue_skb_raw signature
This is a preliminary patch to move data queues in mt76_phy and properly
support dbdc
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'mt7603')
-rw-r--r-- | mt7603/main.c | 8 | ||||
-rw-r--r-- | mt7603/mcu.c | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/mt7603/main.c b/mt7603/main.c index c9226dce..64b25912 100644 --- a/mt7603/main.c +++ b/mt7603/main.c @@ -380,9 +380,11 @@ mt7603_ps_tx_list(struct mt7603_dev *dev, struct sk_buff_head *list) { struct sk_buff *skb; - while ((skb = __skb_dequeue(list)) != NULL) - mt76_tx_queue_skb_raw(dev, skb_get_queue_mapping(skb), - skb, 0); + while ((skb = __skb_dequeue(list)) != NULL) { + int qid = skb_get_queue_mapping(skb); + + mt76_tx_queue_skb_raw(dev, dev->mt76.q_tx[qid], skb, 0); + } } void diff --git a/mt7603/mcu.c b/mt7603/mcu.c index 9e6c8e1b..d275aa6e 100644 --- a/mt7603/mcu.c +++ b/mt7603/mcu.c @@ -73,7 +73,7 @@ mt7603_mcu_skb_send_msg(struct mt76_dev *mdev, struct sk_buff *skb, if (wait_seq) *wait_seq = seq; - return mt76_tx_queue_skb_raw(dev, MT_TXQ_MCU, skb, 0); + return mt76_tx_queue_skb_raw(dev, mdev->q_tx[MT_TXQ_MCU], skb, 0); } static int |