diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2019-04-30 15:12:03 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-05-01 13:04:00 +0200 |
commit | ae66068f7872872740906cf7699624bfd90516ae (patch) | |
tree | 4bb7827ddb2fc471dd36e69e1f6edae3e71381eb /drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c | |
parent | bd115805e86a6d18b18e2cf97e9cc7af361cb72a (diff) | |
download | linux-stable-ae66068f7872872740906cf7699624bfd90516ae.tar.gz linux-stable-ae66068f7872872740906cf7699624bfd90516ae.tar.bz2 linux-stable-ae66068f7872872740906cf7699624bfd90516ae.zip |
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 <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c b/drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c index 5b6ac1b364e1..6b89f7eab26c 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c @@ -178,6 +178,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), |