kernel_samsung_a53x/drivers/net/wireless/realtek/rtlwifi
Su Hui 5733811493 wifi: rtlwifi: add calculate_bit_shift()
[ Upstream commit 52221dfddbbfb5b4e029bb2efe9bb7da33ec1e46 ]

There are many same functions like _rtl88e_phy_calculate_bit_shift(),
_rtl92c_phy_calculate_bit_shift() and so on. And these functions can
cause undefined bitwise shift behavior. Add calculate_bit_shift() to
replace them and fix undefined behavior in subsequent patches.

Signed-off-by: Su Hui <suhui@nfschina.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20231219065739.1895666-2-suhui@nfschina.com
Stable-dep-of: 969bc926f04b ("wifi: rtlwifi: rtl8188ee: phy: using calculate_bit_shift()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:12:37 +01:00
..
btcoexist Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtl8188ee wifi: rtlwifi: fix EDCA limit set by BT coexistence 2024-11-18 11:42:49 +01:00
rtl8192c wifi: rtlwifi: fix EDCA limit set by BT coexistence 2024-11-18 11:42:49 +01:00
rtl8192ce Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtl8192cu Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtl8192de Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtl8192ee Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtl8192se Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtl8723ae wifi: rtlwifi: fix EDCA limit set by BT coexistence 2024-11-18 11:42:49 +01:00
rtl8723be Import A536BXXU9EXDC 2024-06-15 16:02:09 -03: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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03: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 wifi: rtlwifi: add calculate_bit_shift() 2024-11-18 12:12:37 +01:00