mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
wifi: rt2x00: don't run Rt5592 IQ calibration on MT7620
[ Upstream commit d3aad83d05 ]
The function rt2800_iq_calibrate is intended for Rt5592 only.
Don't call it for MT7620 which has it's own calibration functions.
Reported-by: Serge Vasilugin <vasilugin@yandex.ru>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/31a1c34ddbd296b82f38c18c9ae7339059215fdc.1663445157.git.daniel@makrotopia.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3d67986e72
commit
27ed98e8a9
|
|
@ -4352,7 +4352,8 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev,
|
||||||
reg = (rf->channel <= 14 ? 0x1c : 0x24) + 2*rt2x00dev->lna_gain;
|
reg = (rf->channel <= 14 ? 0x1c : 0x24) + 2*rt2x00dev->lna_gain;
|
||||||
rt2800_bbp_write_with_rx_chain(rt2x00dev, 66, reg);
|
rt2800_bbp_write_with_rx_chain(rt2x00dev, 66, reg);
|
||||||
|
|
||||||
rt2800_iq_calibrate(rt2x00dev, rf->channel);
|
if (rt2x00_rt(rt2x00dev, RT5592))
|
||||||
|
rt2800_iq_calibrate(rt2x00dev, rf->channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
bbp = rt2800_bbp_read(rt2x00dev, 4);
|
bbp = rt2800_bbp_read(rt2x00dev, 4);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user