mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76x02: assure we update gain after scan
Assure that after we initialize dev->cal.low_gain to -1 this will cause update gain calibration. Otherwise this might or might not happen depending on value of second bit of low_gain and values read from registers in mt76x02_phy_adjust_vga_gain(). Signed-off-by: Stanislaw Gruszka <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
9b97e0f2a5
commit
663b197401
+4
-1
@@ -555,8 +555,11 @@ void mt76x02_sw_scan_complete(struct ieee80211_hw *hw,
|
||||
if (mt76_is_mmio(dev))
|
||||
tasklet_enable(&dev->pre_tbtt_tasklet);
|
||||
|
||||
if (dev->cal.gain_init_done)
|
||||
if (dev->cal.gain_init_done) {
|
||||
/* Restore AGC gain and resume calibration after scanning. */
|
||||
dev->cal.low_gain = -1;
|
||||
ieee80211_queue_delayed_work(hw, &dev->cal_work, 0);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mt76x02_sw_scan_complete);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user