summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/realtek/rtw88/phy.h
diff options
context:
space:
mode:
authorTzu-En Huang <tehuang@realtek.com>2019-05-29 10:54:45 +0300
committerKalle Valo <kvalo@codeaurora.org>2019-06-27 20:24:28 +0300
commit0d350f0a91f225b6b2441d35a1d99592a23d7aca (patch)
tree89f09e7ba258d35c40480752cdab6a6fe290d477 /drivers/net/wireless/realtek/rtw88/phy.h
parent191c4257ba1948ec2fe730a6b32337e5cf308259 (diff)
downloadlinux-0d350f0a91f225b6b2441d35a1d99592a23d7aca.tar.xz
rtw88: remove all RTW_MAX_POWER_INDEX macro
Since this macro definition has different values in different chipset, the current defined macro value is for 8822b. This will cause the settings of 8822c be incorrect. Remove RTW_MAX_POWER_INDEX and use max_power_index in struct rtw_chip_info to make sure the value of different chipset is right. Signed-off-by: Tzu-En Huang <tehuang@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.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/phy.h b/drivers/net/wireless/realtek/rtw88/phy.h
index dfd8d777f5ef..5bd4b9b6cf1d 100644
--- a/drivers/net/wireless/realtek/rtw88/phy.h
+++ b/drivers/net/wireless/realtek/rtw88/phy.h
@@ -7,8 +7,6 @@
#include "debug.h"
-#define RTW_MAX_POWER_INDEX 0x7F
-
extern u8 rtw_cck_rates[];
extern u8 rtw_ofdm_rates[];
extern u8 rtw_ht_1s_rates[];
@@ -41,7 +39,7 @@ void rtw_phy_cfg_bb(struct rtw_dev *rtwdev, const struct rtw_table *tbl,
u32 addr, u32 data);
void rtw_phy_cfg_rf(struct rtw_dev *rtwdev, const struct rtw_table *tbl,
u32 addr, u32 data);
-void rtw_phy_init_tx_power(struct rtw_hal *hal);
+void rtw_phy_init_tx_power(struct rtw_dev *rtwdev);
void rtw_phy_load_tables(struct rtw_dev *rtwdev);
void rtw_phy_set_tx_power_level(struct rtw_dev *rtwdev, u8 channel);
void rtw_phy_tx_power_by_rate_config(struct rtw_hal *hal);