Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2031bada authored by Daniel Golle's avatar Daniel Golle Committed by Kalle Valo
Browse files

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: default avatarDaniel Golle <daniel@makrotopia.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 225a644a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3407,6 +3407,8 @@ static void rt2800_config_alc(struct rt2x00_dev *rt2x00dev,
			rt2800_rfcsr_write(rt2x00dev, 42, 0x5b);
	}
	rt2800_register_write(rt2x00dev, MAC_SYS_CTRL, mac_sys_ctrl);

	rt2800_vco_calibration(rt2x00dev);
}

static void rt2800_bbp_write_with_rx_chain(struct rt2x00_dev *rt2x00dev,