rtw88: remove all RTW_MAX_POWER_INDEX macro
authorTzu-En Huang <tehuang@realtek.com>
Wed, 29 May 2019 07:54:45 +0000 (15:54 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 27 Jun 2019 17:24:28 +0000 (20:24 +0300)
commit0d350f0a91f225b6b2441d35a1d99592a23d7aca
tree89f09e7ba258d35c40480752cdab6a6fe290d477
parent191c4257ba1948ec2fe730a6b32337e5cf308259
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>
drivers/net/wireless/realtek/rtw88/main.c
drivers/net/wireless/realtek/rtw88/phy.c
drivers/net/wireless/realtek/rtw88/phy.h