1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/realtek/rtlwifi
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
..
btcoexist rtlwifi: halbtc8821a2ant: Remove a bunch of unused variables 2020-11-07 18:14:44 +02:00
rtl8188ee rtlwifi: rtl8188ee: avoid accessing the data mapped to streaming DMA 2020-11-24 17:06:34 +02:00
rtl8192c rtlwifi: Use ffs in <foo>_phy_calculate_bit_shift 2020-09-22 10:16:41 +03:00
rtl8192ce rtlwifi: rtl8192ce: avoid accessing the data mapped to streaming DMA 2020-11-24 17:06:35 +02:00
rtl8192cu rtlwifi: rtl8192cu: trx: Demote clear abuse of kernel-doc format 2020-11-07 18:14:35 +02:00
rtl8192de rtlwifi: rtl8192de: fix ofdm power compensation 2020-12-09 09:22:37 +02:00
rtl8192ee rtlwifi: rtl8192ee: use true,false for bool variable large_cfo_hit 2020-09-22 10:17:42 +03:00
rtl8192se rtlwifi: rtl8192se: remove duplicated legacy_httxpowerdiff 2020-10-08 13:47:14 +03:00
rtl8723ae rtlwifi: rtl8723ae: avoid accessing the data mapped to streaming DMA 2020-11-24 17:06:38 +02:00
rtl8723be rtlwifi: rtl8723be: Remove set but unused variable 'cck_highpwr' 2020-11-07 18:14:45 +02:00
rtl8723com rtlwifi: Use ffs in <foo>_phy_calculate_bit_shift 2020-09-22 10:16:41 +03:00
rtl8821ae rtlwifi: fix spelling typo of workaround 2020-11-10 20:56:34 +02:00
base.c net: rtlwifi: Replace in_interrupt() for context detection 2020-09-29 14:02:55 -07:00
base.h net: rtlwifi: Remove void* casts related to delayed work 2020-09-29 14:02:55 -07:00
cam.c rtlwifi: Replace RT_TRACE with rtl_dbg 2020-08-31 18:25:43 +03:00
cam.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
core.c net: rtlwifi: Replace in_interrupt() for context detection 2020-09-29 14:02:55 -07:00
core.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
debug.c net: rtlwifi: Remove in_interrupt() from debug macro 2020-09-29 14:02:55 -07:00
debug.h net: rtlwifi: Remove in_interrupt() from debug macro 2020-09-29 14:02:55 -07:00
efuse.c rtlwifi: Replace RT_TRACE with rtl_dbg 2020-08-31 18:25:43 +03:00
efuse.h rtlwifi: Remove CamelCase variables from base code 2019-02-19 17:02:51 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09: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 net: rtlwifi: Replace in_interrupt() for context detection 2020-09-29 14:02:55 -07:00
pci.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
ps.c net: rtlwifi: Replace in_interrupt() for context detection 2020-09-29 14:02:55 -07:00
ps.h net: rtlwifi: Replace in_interrupt() for context detection 2020-09-29 14:02:55 -07:00
pwrseqcmd.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
rc.c mac80211: populate debugfs only after cfg80211 init 2020-04-24 11:30:13 +02:00
rc.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
regd.c rtlwifi: Replace RT_TRACE with rtl_dbg 2020-08-31 18:25:43 +03: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 non-canonical address access issues 2020-11-07 17:49:57 +02:00
usb.h rtlwifi: Fix blank line errors in main header files 2019-02-28 10:30:01 +02:00
wifi.h rtlwifi: rtl8192se: remove duplicated legacy_httxpowerdiff 2020-10-08 13:47:14 +03:00