]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: tweak settings of TX power and channel for Wi-Fi 7
authorZong-Zhe Yang <kevin_yang@realtek.com>
Tue, 10 Mar 2026 08:01:39 +0000 (16:01 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 16 Mar 2026 06:16:31 +0000 (14:16 +0800)
The support_mlo flag depends on FW features, so it's determined at runtime.
Since Wi-Fi 7 chip now needs to initialize second HW band, if support_mlo
is not allowed, second HW band might act without settings of TX power and
channel. So, set that for Wi-Fi 7 chip.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260310080146.31113-7-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c

index 81004ef18168c3d33ddcd222ff5e947935b83a01..6ab99a3577f32d99fe0b23c42eb1cdf803da0eee 100644 (file)
@@ -463,7 +463,7 @@ void rtw89_core_set_chip_txpwr(struct rtw89_dev *rtwdev)
        chan = rtw89_mgnt_chan_get(rtwdev, 0);
        __rtw89_core_set_chip_txpwr(rtwdev, chan, RTW89_PHY_0);
 
-       if (!rtwdev->support_mlo)
+       if (rtwdev->chip->chip_gen == RTW89_CHIP_AX)
                return;
 
        chan = rtw89_mgnt_chan_get(rtwdev, 1);
@@ -558,7 +558,7 @@ int rtw89_set_channel(struct rtw89_dev *rtwdev)
        chan = rtw89_mgnt_chan_get(rtwdev, 0);
        __rtw89_set_channel(rtwdev, chan, RTW89_MAC_0, RTW89_PHY_0);
 
-       if (!rtwdev->support_mlo)
+       if (rtwdev->chip->chip_gen == RTW89_CHIP_AX)
                return 0;
 
        chan = rtw89_mgnt_chan_get(rtwdev, 1);