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:
|
||
---|---|---|
.. | ||
def.h | ||
dm.c | ||
dm.h | ||
fw.c | ||
fw.h | ||
hw.c | ||
hw.h | ||
led.c | ||
led.h | ||
Makefile | ||
phy.c | ||
phy.h | ||
pwrseq.c | ||
pwrseq.h | ||
reg.h | ||
rf.c | ||
rf.h | ||
sw.c | ||
sw.h | ||
table.c | ||
table.h | ||
trx.c | ||
trx.h |