]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: 8821c: correct 2.4G tx power for type 2/4 NIC
authorGuo-Feng Fan <vincent_fann@realtek.com>
Wed, 22 Sep 2021 02:36:37 +0000 (10:36 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 24 Sep 2021 11:22:33 +0000 (14:22 +0300)
commit0c1d8ee4eca57ba0792ad5ec8a5d685a8edbd6d5
tree5e5cd22636b385c33506f096ba03559fb18c2571
parentd02d8ab7fd5136f7335dffff6c59cc7ebf3d8ece
rtw88: 8821c: correct 2.4G tx power for type 2/4 NIC

NIC card saves calibrated TX power index in the efuse(ROM).
Driver loads TX power idex when interface is up.

The problem is type2/4 NICs loads 2.4G TX power index
from wrong position. This patch corrects the offsets.
So, driver loads real 2.4G TX power index for type 2/4 NICs.

2.4G performance increased when using correct TX power index.

Signed-off-by: Guo-Feng Fan <vincent_fann@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210922023637.9357-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/rtw8821c.c