summaryrefslogtreecommitdiff
path: root/arch/sh/kernel/head_64.S
diff options
context:
space:
mode:
authorPing-Ke Shih <pkshih@realtek.com>2019-05-10 16:03:32 +0800
committerKalle Valo <kvalo@codeaurora.org>2019-05-28 15:34:01 +0300
commit0e7d38132bf8fbf6651add139ef506106d91ab29 (patch)
treef7249c44c07c654298a7a0b84c813dd3584e3cad /arch/sh/kernel/head_64.S
parent8a7db8b66b40eac8bdeffb35c73fe252462d04a0 (diff)
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>
Diffstat (limited to 'arch/sh/kernel/head_64.S')
0 files changed, 0 insertions, 0 deletions