mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: do not enable/disable pre_tbtt_tasklet in scan_start/scan_complete
Do not enable/disable pre_tbtt_tasklet tasklet in mt76x02_sw_scan/mt76x02_sw_scan_complete since it is already done setting the operating channel. Do run tbtt_tasklet while the device is offchannel Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
7606c08414
commit
ff22eee585
@@ -180,6 +180,9 @@ static void mt76x02u_pre_tbtt_work(struct work_struct *work)
|
||||
if (!dev->mt76.beacon_mask)
|
||||
return;
|
||||
|
||||
if (mt76_hw(dev)->conf.flags & IEEE80211_CONF_OFFCHANNEL)
|
||||
return;
|
||||
|
||||
mt76x02_resync_beacon_timer(dev);
|
||||
|
||||
ieee80211_iterate_active_interfaces(mt76_hw(dev),
|
||||
|
||||
Reference in New Issue
Block a user