rtw88: choose the lowest as world-wide power limit
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Wed, 29 May 2019 07:54:42 +0000 (15:54 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 27 Jun 2019 17:24:25 +0000 (20:24 +0300)
commitadf3c676d1d2f7e9b09e0153c7f58b7f87ca1a6f
tree26e4d5748faabfd083628460f45b5e0d650f4196
parent764038160aea385bdab06c24c52c047dc4d13e11
rtw88: choose the lowest as world-wide power limit

When we are loading tx power limit from the power limit table, compare
the world-wide limit with the current limit and choose the lowest power
limit for the world-wide power settings.

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