kernel_samsung_a53x/drivers/net/wireless/realtek/rtlwifi
Bitterblue Smith bdeaf0c34b wifi: rtlwifi: rtl8192de: Fix 5 GHz TX power
[ Upstream commit de4d4be4fa64ed7b4aa1c613061015bd8fa98b24 ]

Different channels have different TX power settings. rtl8192de is using
the TX power setting from the wrong channel in the 5 GHz band because
_rtl92c_phy_get_rightchnlplace expects an array which includes all the
channel numbers, but it's using an array which includes only the 5 GHz
channel numbers.

Use the array channel_all (defined in rtl8192de/phy.c) instead of
the incorrect channel5g (defined in core.c).

Tested only with rtl8192du, which will use the same TX power code.

Cc: stable@vger.kernel.org
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/c7653517-cf88-4f57-b79a-8edb0a8b32f0@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 14:19:10 +01:00
..
btcoexist Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtl8188ee wifi: rtlwifi: rtl8188ee: phy: using calculate_bit_shift() 2024-11-18 12:12:37 +01:00
rtl8192c wifi: rtlwifi: rtl8192c: using calculate_bit_shift() 2024-11-18 12:12:37 +01:00
rtl8192ce wifi: rtlwifi: rtl8192ce: using calculate_bit_shift() 2024-11-18 12:12:38 +01:00
rtl8192cu wifi: rtlwifi: rtl8192cu: using calculate_bit_shift() 2024-11-18 12:12:37 +01:00
rtl8192de wifi: rtlwifi: rtl8192de: Fix 5 GHz TX power 2024-11-19 14:19:10 +01:00
rtl8192ee wifi: rtlwifi: rtl8192ee: using calculate_bit_shift() 2024-11-18 12:12:38 +01:00
rtl8192se wifi: rtlwifi: rtl8192se: using calculate_bit_shift() 2024-11-18 12:12:38 +01:00
rtl8723ae wifi: rtlwifi: rtl8723{be,ae}: using calculate_bit_shift() 2024-11-18 12:13:16 +01:00
rtl8723be wifi: rtlwifi: rtl8723{be,ae}: using calculate_bit_shift() 2024-11-18 12:13:16 +01:00
rtl8723com Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtl8821ae wifi: rtlwifi: rtl8821ae: phy: fix an undefined bitwise shift behavior 2024-11-18 12:12:28 +01:00
base.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
base.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cam.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
efuse.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
efuse.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci.c wireless: Remove redundant 'flush_workqueue()' calls 2024-11-19 08:44:44 +01:00
pci.h wifi: rtlwifi: Remove bogus and dangerous ASPM disable/enable code 2024-11-18 12:12:47 +01:00
ps.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ps.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pwrseqcmd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stats.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wifi.h rtlwifi: rtl8192de: Style clean-ups 2024-11-19 14:19:10 +01:00