]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: rtw89: 8922a: fix TX fail with wrong VCO setting
authorKuan-Chung Chen <damon.chen@realtek.com>
Wed, 16 Apr 2025 08:12:39 +0000 (16:12 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Sat, 26 Apr 2025 07:25:42 +0000 (15:25 +0800)
An incorrect Voltage Controlled Oscillator (VCO) setting
may cause Synthesizer (SYN) unlock, which may lead to a
failure in the TX authentication request.

Signed-off-by: Kuan-Chung Chen <damon.chen@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250416081241.36138-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/rtw8922a_rfk.c

index c4c93f836a2f5ae95c79f5e9a37a12574f361d6a..1659ea64ade1194e935f9cc0c63daa72338bd84d 100644 (file)
@@ -77,11 +77,6 @@ void rtw8922a_ctl_band_ch_bw(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy,
                                             RR_CFGCH_BAND0 | RR_CFGCH_CH);
                        rf_reg[path][i] |= u32_encode_bits(central_ch, RR_CFGCH_CH);
 
-                       if (band == RTW89_BAND_2G)
-                               rtw89_write_rf(rtwdev, path, RR_SMD, RR_VCO2, 0x0);
-                       else
-                               rtw89_write_rf(rtwdev, path, RR_SMD, RR_VCO2, 0x1);
-
                        switch (band) {
                        case RTW89_BAND_2G:
                        default: