]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
wifi: rtw88: Set efuse->ext_lna_5g - fix typo
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Fri, 5 Jul 2024 22:40:58 +0000 (01:40 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 17 Jul 2024 03:34:31 +0000 (11:34 +0800)
efuse->ext_lna_2g is set twice and efuse->ext_lna_5g is not set at all.
Set each one once.

Nothing uses these members right now. They will be used by the RTL8821AU
and RTL8812AU drivers.

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/8ccc9e13-0d45-417d-8f88-93a0ad294f77@gmail.com
drivers/net/wireless/realtek/rtw88/main.c

index 7ab7a988b123f1caa3206e5cfe45b0f399fa7b33..9d9d33a4a5030dfbf0747c05056f150f9935473b 100644 (file)
@@ -2005,7 +2005,7 @@ static int rtw_chip_efuse_info_setup(struct rtw_dev *rtwdev)
        efuse->ext_pa_2g = efuse->pa_type_2g & BIT(4) ? 1 : 0;
        efuse->ext_lna_2g = efuse->lna_type_2g & BIT(3) ? 1 : 0;
        efuse->ext_pa_5g = efuse->pa_type_5g & BIT(0) ? 1 : 0;
-       efuse->ext_lna_2g = efuse->lna_type_5g & BIT(3) ? 1 : 0;
+       efuse->ext_lna_5g = efuse->lna_type_5g & BIT(3) ? 1 : 0;
 
        if (!is_valid_ether_addr(efuse->addr)) {
                eth_random_addr(efuse->addr);