提交 2019c39a 编写于 作者: S Stanislaw Gruszka 提交者: Kalle Valo

mt7601u: run calibration works after finishing scanning

When finishing scanning we switch to operational channel sill with
SCANNING flag. This mean that we never perform calibration works after
scanning. To fix the problem queue calibration works on
.sw_scan_complete() routine.
Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
Acked-by: NJakub Kicinski <kubakici@wp.pl>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 b305a6ab
...@@ -288,6 +288,12 @@ mt7601u_sw_scan_complete(struct ieee80211_hw *hw, ...@@ -288,6 +288,12 @@ mt7601u_sw_scan_complete(struct ieee80211_hw *hw,
mt7601u_agc_restore(dev); mt7601u_agc_restore(dev);
clear_bit(MT7601U_STATE_SCANNING, &dev->state); clear_bit(MT7601U_STATE_SCANNING, &dev->state);
ieee80211_queue_delayed_work(dev->hw, &dev->cal_work,
MT_CALIBRATE_INTERVAL);
if (dev->freq_cal.enabled)
ieee80211_queue_delayed_work(dev->hw, &dev->freq_cal.work,
MT_FREQ_CAL_INIT_DELAY);
} }
static int static int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册