diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2020-07-03 10:15:54 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-07-21 19:01:17 +0200 |
commit | 2b8cdfb28d3402b25fab47ffe70b6d858d26a2c1 (patch) | |
tree | b907fb3ea3fe801a6bb082532ef2a0ce323b79fa /drivers/net/wireless/mediatek/mt76/mt7615/init.c | |
parent | 5cf8f7794d32e3ea7af6f04139a77157c536d4b5 (diff) | |
download | linux-stable-2b8cdfb28d3402b25fab47ffe70b6d858d26a2c1.tar.gz linux-stable-2b8cdfb28d3402b25fab47ffe70b6d858d26a2c1.tar.bz2 linux-stable-2b8cdfb28d3402b25fab47ffe70b6d858d26a2c1.zip |
mt76: mt7615: wake device before pushing frames in mt7615_tx
Queue frames pushed by mac80211 running mt7615_tx if the device is
low-power state. Run wake workqueue in order to swicth to full-power
before transmitting pending frames
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7615/init.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7615/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/init.c b/drivers/net/wireless/mediatek/mt76/mt7615/init.c index fdc40a1c84c4..02a82cd848c4 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/init.c @@ -441,6 +441,7 @@ void mt7615_init_device(struct mt7615_dev *dev) INIT_DELAYED_WORK(&dev->pm.ps_work, mt7615_pm_power_save_work); INIT_WORK(&dev->pm.wake_work, mt7615_pm_wake_work); init_completion(&dev->pm.wake_cmpl); + spin_lock_init(&dev->pm.txq_lock); INIT_DELAYED_WORK(&dev->phy.mac_work, mt7615_mac_work); INIT_DELAYED_WORK(&dev->phy.scan_work, mt7615_scan_work); skb_queue_head_init(&dev->phy.scan_event_list); |