rtw88: fix incorrect tx power limit at 5G
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Wed, 29 May 2019 07:54:41 +0000 (15:54 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 27 Jun 2019 17:24:25 +0000 (20:24 +0300)
commit764038160aea385bdab06c24c52c047dc4d13e11
tree49124db842e588875cb85de7b2cefc4d5fdd56d5
parent522801493e7bd9874745c128257308c2016abd62
rtw88: fix incorrect tx power limit at 5G

Tx power limit is stored separately by 2G and 5G.
But driver did not get tx power limit from 5G and causes incorrect tx
power. Check if the channel is beyond 2G and get the corresponding tx
power limit.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/phy.c