]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: rtw89: set 2TX for 1SS rate by default
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 21 Mar 2025 03:47:36 +0000 (11:47 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 31 Mar 2025 06:00:27 +0000 (14:00 +0800)
To improve performance in range, for 1SS rate, transmit the same signal
on 2 antenna, which is called 2TX.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250321034736.6269-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c

index 8643b17866f89773c15729bcf427a6bd2602622a..c7172334f895d41261f9a40a0944c4623da17b28 100644 (file)
@@ -3065,8 +3065,8 @@ static void __rtw89_fw_h2c_set_tx_path(struct rtw89_dev *rtwdev,
                ntx_path = RF_A;
                map_b = 0;
        } else {
-               ntx_path = hal->antenna_tx ? hal->antenna_tx : RF_B;
-               map_b = hal->antenna_tx == RF_AB ? 1 : 0;
+               ntx_path = hal->antenna_tx ? hal->antenna_tx : RF_AB;
+               map_b = ntx_path == RF_AB ? 1 : 0;
        }
 
        SET_CMC_TBL_NTX_PATH_EN(skb->data, ntx_path);