[lvc-project] [PATCH 5.10 1/1] rtlwifi: rtl8192de: fix ofdm power compensation

Fedor Pchelkin pchelkin at ispras.ru
Sat Sep 28 17:43:20 MSK 2024


On Fri, 20. Sep 09:16, Nikita Zhandarovich wrote:
> From: Ping-Ke Shih <pkshih at realtek.com>
> 
> commit 3f79e541593fecc2a90687eb7162e15a499caa33 upstream.
> 
> 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 at oracle.com>
> Signed-off-by: Ping-Ke Shih <pkshih at realtek.com>
> Signed-off-by: Kalle Valo <kvalo at codeaurora.org>
> Link: https://lore.kernel.org/r/20201207031903.7599-1-pkshih@realtek.com
> Signed-off-by: Nikita Zhandarovich <n.zhandarovich at fintech.ru>

Патч добавлен в LVC-5.10 ветку. Спасибо!



More information about the lvc-project mailing list