Skip to content

Commit 2031bad

Browse files
dangowrtKalle Valo
authored andcommitted
rt2800: do VCO calibration after programming ALC
Somehow AP doesn't come up and the first scan fails if we don't do VCO calibration every time. The vendor driver duplicates the VCO calibration function into the channel switching logic, we can do the same with less duplication. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
1 parent 225a644 commit 2031bad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/wireless/ralink/rt2x00/rt2800lib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3407,6 +3407,8 @@ static void rt2800_config_alc(struct rt2x00_dev *rt2x00dev,
34073407
rt2800_rfcsr_write(rt2x00dev, 42, 0x5b);
34083408
}
34093409
rt2800_register_write(rt2x00dev, MAC_SYS_CTRL, mac_sys_ctrl);
3410+
3411+
rt2800_vco_calibration(rt2x00dev);
34103412
}
34113413

34123414
static void rt2800_bbp_write_with_rx_chain(struct rt2x00_dev *rt2x00dev,

0 commit comments

Comments
 (0)