]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: phy: consider type 15 in BB gain table
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 14 Nov 2025 06:01:21 +0000 (14:01 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 18 Nov 2025 01:23:26 +0000 (09:23 +0800)
BB gain table is a table to configure gain for certain channels. Newly
added type 15 is considered to write registers accordingly.

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

index 3316a38a62d073ae66e50b95235daa4bacf2d337..bd17714f13d14f13ed2a854804461506c2f93d08 100644 (file)
@@ -266,6 +266,10 @@ static void rtw89_phy_config_bb_gain_be(struct rtw89_dev *rtwdev,
        case 3:
                rtw89_phy_cfg_bb_gain_op1db_be(rtwdev, arg, reg->data);
                break;
+       case 15:
+               rtw89_phy_write32_idx(rtwdev, reg->addr & 0xFFFFF, MASKHWORD,
+                                     reg->data, RTW89_PHY_0);
+               break;
        case 4:
                /* This cfg_type is only used by rfe_type >= 50 with eFEM */
                if (efuse->rfe_type < 50)