linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de
Ping-Ke Shih 3f79e54159 rtlwifi: rtl8192de: fix ofdm power compensation
ofdm_index[] is used to indicate how many power compensation is needed to
current thermal value. For internal PA module or 2.4G band, the min_index
is different from other cases.

This issue originally is reported by Dan. He found the size of ofdm_index[]
is 2, but access index 'i' may be equal to 2 if 'rf' is 2 in case of
'is2t'.

In fact, the chunk of code is added to wrong place, so move it back to
proper place, and then power compensation and buffer overflow are fixed.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201207031903.7599-1-pkshih@realtek.com
2020-12-09 09:22:37 +02:00
..
def.h rtlwifi: rtl8188ee: rtl8192ce: rtl8192de: rtl8723ae: rtl8821ae: Remove some unused bit manipulation macros 2019-09-13 17:55:40 +03:00
dm.c rtlwifi: rtl8192de: fix ofdm power compensation 2020-12-09 09:22:37 +02:00
dm.h rtlwifi: rtl8188de: Remove CamelCase variables 2019-02-19 17:03:00 +02:00
fw.c rtlwifi: rtl8192de: Rename RT_TRACE to rtl_dbg 2020-08-31 18:25:56 +03:00
fw.h rtlwifi: rtl8192de: Remove usage of private bit manipulation macros 2019-12-18 20:22:26 +02:00
hw.c rtlwifi: rtl8192de: fix comparison to bool warning in hw.c 2020-09-21 16:02:49 +03:00
hw.h rtlwifi: rtl8192de: Replace old-style license information 2019-02-19 17:00:08 +02:00
led.c rtlwifi: rtl8192de: Rename RT_TRACE to rtl_dbg 2020-08-31 18:25:56 +03:00
led.h rtlwifi: rtl8192de: Replace old-style license information 2019-02-19 17:00:08 +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
phy.c rtlwifi: rtl8192de: remove the useless value assignment 2020-11-24 17:02:22 +02:00
phy.h rtlwifi: rtl8192de: Replace old-style license information 2019-02-19 17:00:08 +02:00
reg.h rtlwifi: rtl8188de: Remove CamelCase variables 2019-02-19 17:03:00 +02:00
rf.c rtlwifi: rtl8192de: Rename RT_TRACE to rtl_dbg 2020-08-31 18:25:56 +03:00
rf.h rtlwifi: rtl8192de: Replace old-style license information 2019-02-19 17:00:08 +02:00
sw.c rtlwifi: rtl8192de: Fix missing callback that tests for hw release of buffer 2019-11-14 17:10:15 +02:00
sw.h rtlwifi: rtl8192de: Replace old-style license information 2019-02-19 17:00:08 +02:00
table.c rtlwifi: rtl8192de: Replace old-style license information 2019-02-19 17:00:08 +02:00
table.h rtlwifi: rtl8192de: Replace old-style license information 2019-02-19 17:00:08 +02:00
trx.c rtlwifi: rtl8192de: avoid accessing the data mapped to streaming DMA 2020-11-24 17:06:37 +02:00
trx.h rtlwifi: rtl8192de: Convert inline routines to little-endian words 2019-12-18 20:21:39 +02:00