linux_dsm_epyc7002/drivers/net/wireless/realtek/rtlwifi
Ping-Ke Shih 0e7d38132b rtlwifi: 8192de: Fix used uninitialized variables in power tracking
ofdm_index_old[] is the index of ofdmswing_table[], and used to indicate
initial value of ROFDM0_X{A,B}TXIQIMBALANCE in rtl8192de_phy_reg_2tarray[]
table, and the initial value is corresponding to calibration thermal value
written in efuse, namely rtlefuse->eeprom_thermalmeter. Then, local
variable ofdm_index_old[] save to rtlpriv->dm.ofdm_index[] for operational
use.

If thermal value (temperature) is increasing, output TX power is lower.
So, we calculate the delta between current and calibration thermal value,
then add power to yield expected and the same output TX power.

Thus, ofdm_index[] should be initialized as rtlpriv->dm.ofdm_index[], and
shift to proper index depends on delta of thermal value. Then, new power
value ofdmswing_table[ofdm_index[]] is written to register.

Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-05-28 15:34:01 +03:00
..
btcoexist rtlwifi: btcoexist: Remove CamelCase variable 2019-02-19 17:02:52 +02:00
rtl8188ee rtlwifi: rtl8188ee: Remove extraneous file 2019-04-18 16:08:23 +03:00
rtl8192c rtlwifi: fix potential NULL pointer dereference 2019-04-04 13:25:27 +03:00
rtl8192ce rtlwifi: rtl8192ce: Fix missing blank lines 2019-02-28 10:30:03 +02:00
rtl8192cu rtlwifi: rtl8192cu: remove set but not used variable 'turbo_scanoff' 2019-04-26 14:58:53 +03:00
rtl8192de rtlwifi: 8192de: Fix used uninitialized variables in power tracking 2019-05-28 15:34:01 +03:00
rtl8192ee rtlwifi: Convert the wake_match variable to local 2019-04-13 14:15:45 +03:00
rtl8192se rtlwifi: rtl8192se: Remove set but not used variable 'seg_ptr' 2019-02-28 10:40:39 +02:00
rtl8723ae rtlwifi: rtl8723ae: Fix missing break in switch statement 2019-04-25 19:55:48 +03:00
rtl8723be rtlwifi: Convert the wake_match variable to local 2019-04-13 14:15:45 +03:00
rtl8723com rtlwifi: rtl8723_common: Replace old-style license information 2019-02-19 17:00:39 +02:00
rtl8821ae rtlwifi: Convert the wake_match variable to local 2019-04-13 14:15:45 +03:00
base.c rtlwifi: fix a potential NULL pointer dereference 2019-04-04 13:24:53 +03:00
base.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
cam.c rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
cam.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
core.c rtlwifi: Fix all blank line irregularities in main code files 2019-02-28 10:30:02 +02:00
core.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
debug.c rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
debug.h rtlwifi: Remove CamelCase variables from base code 2019-02-19 17:02:51 +02:00
efuse.c rtlwifi: Fix all blank line irregularities in main code files 2019-02-28 10:30:02 +02:00
efuse.h rtlwifi: Remove CamelCase variables from base code 2019-02-19 17:02:51 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci.c rtlwifi: move spin_lock_bh to spin_lock in tasklet 2019-04-04 13:26:40 +03:00
pci.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
ps.c rtlwifi: Fix all blank line irregularities in main code files 2019-02-28 10:30:02 +02:00
ps.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
pwrseqcmd.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
rc.c rtlwifi: Fix all blank line irregularities in main code files 2019-02-28 10:30:02 +02:00
rc.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
regd.c rtlwifi: Fix all blank line irregularities in main code files 2019-02-28 10:30:02 +02:00
regd.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
stats.c rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
stats.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
usb.c rtlwifi: Fix all blank line irregularities in main code files 2019-02-28 10:30:02 +02:00
usb.h rtlwifi: Fix blank line errors in main header files 2019-02-28 10:30:01 +02:00
wifi.h rtlwifi: Convert the wake_match variable to local 2019-04-13 14:15:45 +03:00