summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/realtek/rtw88/phy.h
diff options
context:
space:
mode:
authorZong-Zhe Yang <kevin_yang@realtek.com>2019-05-29 15:54:46 +0800
committerKalle Valo <kvalo@codeaurora.org>2019-06-27 20:24:29 +0300
commitb741422218efeb76389a307b72ed3afe41671cf7 (patch)
treec20e2b39562e9cdda7814fbff3e916d9f4cc8c94 /drivers/net/wireless/realtek/rtw88/phy.h
parent0d350f0a91f225b6b2441d35a1d99592a23d7aca (diff)
rtw88: refine flow to get tx power index
Add a structure for power parameters including base, offset, limit and a function to get tx power parameters. Then, refine flow to get tx power index through the function. Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com> Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/phy.h')
-rw-r--r--drivers/net/wireless/realtek/rtw88/phy.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/phy.h b/drivers/net/wireless/realtek/rtw88/phy.h
index 5bd4b9b6cf1d..7c8eb732b13c 100644
--- a/drivers/net/wireless/realtek/rtw88/phy.h
+++ b/drivers/net/wireless/realtek/rtw88/phy.h
@@ -105,6 +105,17 @@ static inline int rtw_check_supported_rfe(struct rtw_dev *rtwdev)
void rtw_phy_dig_write(struct rtw_dev *rtwdev, u8 igi);
+struct rtw_power_params {
+ u8 pwr_base;
+ s8 pwr_offset;
+ s8 pwr_limit;
+};
+
+void
+rtw_get_tx_power_params(struct rtw_dev *rtwdev, u8 path,
+ u8 rate, u8 bw, u8 ch, u8 regd,
+ struct rtw_power_params *pwr_param);
+
#define MASKBYTE0 0xff
#define MASKBYTE1 0xff00
#define MASKBYTE2 0xff0000