rtw88: 8723d: implement set_tx_power_index ops
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 22 Apr 2020 03:46:05 +0000 (11:46 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 23 Apr 2020 04:47:25 +0000 (07:47 +0300)
commitba9f0d1b8d9debf2e2d83db01d3b8f63fb75d9d5
tree33c81e059efc5a1f0f361aefdb3e5d680915eeaf
parent7907b52de08aeb27cea05bd3a2c825658f91f051
rtw88: 8723d: implement set_tx_power_index ops

The txagc table is used to map rate_id and txagc register address and
mask, and ops set_tx_power_index uses this table to write TX power to
corresponding registers. Since 8723D is a 1x1 2.4G 11n chip, only CCK, OFDM
and HT_MCS 0-7 are listed in the table.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200422034607.28747-7-yhchuang@realtek.com
drivers/net/wireless/realtek/rtw88/rtw8723d.c