mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: fix tx packet loss when scanning on DBDC
When queueing packets, only the MT76_RESET flag of the primary PHY is checked. If the primary PHY is scanning or changing channels, this can lead to packet loss for tx on the second PHY. Fix this by passing the phy to the .tx_queue_skb op and using it to check the correct flag. Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -514,13 +514,14 @@ static void mt76s_tx_status_data(struct mt76_worker *worker)
|
||||
}
|
||||
|
||||
static int
|
||||
mt76s_tx_queue_skb(struct mt76_dev *dev, struct mt76_queue *q,
|
||||
mt76s_tx_queue_skb(struct mt76_phy *phy, struct mt76_queue *q,
|
||||
enum mt76_txq_id qid, struct sk_buff *skb,
|
||||
struct mt76_wcid *wcid, struct ieee80211_sta *sta)
|
||||
{
|
||||
struct mt76_tx_info tx_info = {
|
||||
.skb = skb,
|
||||
};
|
||||
struct mt76_dev *dev = phy->dev;
|
||||
int err, len = skb->len;
|
||||
u16 idx = q->head;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user