mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: only enable tx worker after setting the channel
Avoids sending packets too early
Fixes: 0b3be9d1d34e ("wifi: mt76: add separate tx scheduling queue for off-channel tx")
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -995,11 +995,11 @@ int __mt76_set_channel(struct mt76_phy *phy, struct cfg80211_chan_def *chandef,
|
||||
|
||||
if (chandef->chan != phy->main_chandef.chan)
|
||||
memset(phy->chan_state, 0, sizeof(*phy->chan_state));
|
||||
mt76_worker_enable(&dev->tx_worker);
|
||||
|
||||
ret = dev->drv->set_channel(phy);
|
||||
|
||||
clear_bit(MT76_RESET, &phy->state);
|
||||
mt76_worker_enable(&dev->tx_worker);
|
||||
mt76_worker_schedule(&dev->tx_worker);
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user