mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 03:11:46 +00:00
mt76: mt7603: fix watchdog rescheduling in mt7603_set_channel
Convert MT7603_WATCHDOG_TIME in jiffies rescheduling watchdog delayed
work
Fixes: c8846e1015
("mt76: add driver for MT7603E and MT7628/7688")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
457d19c71a
commit
5e814e71a2
@ -173,7 +173,7 @@ mt7603_set_channel(struct mt7603_dev *dev, struct cfg80211_chan_def *def)
|
|||||||
mt76_txq_schedule_all(&dev->mt76);
|
mt76_txq_schedule_all(&dev->mt76);
|
||||||
|
|
||||||
ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mt76.mac_work,
|
ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mt76.mac_work,
|
||||||
MT7603_WATCHDOG_TIME);
|
msecs_to_jiffies(MT7603_WATCHDOG_TIME));
|
||||||
|
|
||||||
/* reset channel stats */
|
/* reset channel stats */
|
||||||
mt76_clear(dev, MT_MIB_CTL, MT_MIB_CTL_READ_CLR_DIS);
|
mt76_clear(dev, MT_MIB_CTL, MT_MIB_CTL_READ_CLR_DIS);
|
||||||
|
Loading…
Reference in New Issue
Block a user