mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 04:09:18 -04:00
wifi: rtw89: phy: reset value of force TX power for MAC ID
The force TX power function is disabled, but the force TX power value is preserved, causing misunderstand the behavior in debug. Clear all values. Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20250325031021.15619-1-pkshih@realtek.com
This commit is contained in:
@@ -362,7 +362,7 @@ static void rtw89_phy_bb_wrap_force_cr_init(struct rtw89_dev *rtwdev,
|
||||
rtw89_write32_mask(rtwdev, addr, B_BE_PWR_FORCE_RU_ENON, 0);
|
||||
rtw89_write32_mask(rtwdev, addr, B_BE_PWR_FORCE_RU_ON, 0);
|
||||
addr = rtw89_mac_reg_by_idx(rtwdev, R_BE_PWR_FORCE_MACID, mac_idx);
|
||||
rtw89_write32_mask(rtwdev, addr, B_BE_PWR_FORCE_MACID_ON, 0);
|
||||
rtw89_write32_mask(rtwdev, addr, B_BE_PWR_FORCE_MACID_ALL, 0);
|
||||
addr = rtw89_mac_reg_by_idx(rtwdev, R_BE_PWR_COEX_CTRL, mac_idx);
|
||||
rtw89_write32_mask(rtwdev, addr, B_BE_PWR_FORCE_COEX_ON, 0);
|
||||
addr = rtw89_mac_reg_by_idx(rtwdev, R_BE_PWR_RATE_CTRL, mac_idx);
|
||||
|
||||
@@ -7601,7 +7601,15 @@
|
||||
#define B_BE_PWR_FORCE_RU_ON BIT(18)
|
||||
#define B_BE_PWR_FORCE_RU_ENON BIT(28)
|
||||
#define R_BE_PWR_FORCE_MACID 0x11A48
|
||||
#define B_BE_PWR_FORCE_MACID_ON BIT(9)
|
||||
#define B_BE_PWR_FORCE_MACID_DBM_ON BIT(9)
|
||||
#define B_BE_PWR_FORCE_MACID_DBM_VAL GENMASK(17, 10)
|
||||
#define B_BE_PWR_FORCE_MACID_EN_VAL BIT(18)
|
||||
#define B_BE_PWR_FORCE_MACID_EN_ON BIT(19)
|
||||
#define B_BE_PWR_FORCE_MACID_ALL \
|
||||
(B_BE_PWR_FORCE_MACID_DBM_ON | \
|
||||
B_BE_PWR_FORCE_MACID_DBM_VAL | \
|
||||
B_BE_PWR_FORCE_MACID_EN_VAL | \
|
||||
B_BE_PWR_FORCE_MACID_EN_ON)
|
||||
|
||||
#define R_BE_PWR_REG_CTRL 0x11A50
|
||||
#define B_BE_PWR_BT_EN BIT(23)
|
||||
|
||||
Reference in New Issue
Block a user