forked from Minki/linux
73fb270592
Smatch reports the following warning:
CHECK drivers/net/wireless/realtek/rtlwifi/rc.c
drivers/net/wireless/realtek/rtlwifi/rc.c:144 _rtl_rc_rate_set_series() warn: impossible condition '(wireless_mode == 256) => (0-255 == 256)'
This warning arises because commit acc6907b87a9 ("rtlwifi: Fix warning
from ieee80211_get_tx_rates() when using 5G") now checks the wireless
mode for WIRELESS_MODE_AC_ONLY (BIT(8)) in _rtl_rc_rate_set_series().
As a result, all quantities used to store the wireless mode must be u16.
This patch also reorders struct rtl_sta_info to save a little space.
Fixes:
|
||
---|---|---|
.. | ||
btcoexist | ||
rtl8188ee | ||
rtl8192c | ||
rtl8192ce | ||
rtl8192cu | ||
rtl8192de | ||
rtl8192ee | ||
rtl8192se | ||
rtl8723ae | ||
rtl8723be | ||
rtl8723com | ||
rtl8821ae | ||
base.c | ||
base.h | ||
cam.c | ||
cam.h | ||
core.c | ||
core.h | ||
debug.c | ||
debug.h | ||
efuse.c | ||
efuse.h | ||
Kconfig | ||
Makefile | ||
pci.c | ||
pci.h | ||
ps.c | ||
ps.h | ||
pwrseqcmd.h | ||
rc.c | ||
rc.h | ||
regd.c | ||
regd.h | ||
stats.c | ||
stats.h | ||
usb.c | ||
usb.h | ||
wifi.h |