mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 22:14:41 +08:00
rtl8xxxu: For devices with external PA (8188RU), limit CCK TX power
Per the vendor driver, devices with an external PA needs limiting it's TX power to 0x20. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
4062b8ffec
commit
b591e982bc
@ -2421,6 +2421,13 @@ rtl8723a_set_tx_power(struct rtl8xxxu_priv *priv, int channel, bool ht40)
|
||||
cck[0] = priv->cck_tx_power_index_A[group];
|
||||
cck[1] = priv->cck_tx_power_index_B[group];
|
||||
|
||||
if (priv->hi_pa) {
|
||||
if (cck[0] > 0x20)
|
||||
cck[0] = 0x20;
|
||||
if (cck[1] > 0x20)
|
||||
cck[1] = 0x20;
|
||||
}
|
||||
|
||||
ofdm[0] = priv->ht40_1s_tx_power_index_A[group];
|
||||
ofdm[1] = priv->ht40_1s_tx_power_index_B[group];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user