summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2023-09-29 18:45:20 +0300
committerKalle Valo <kvalo@kernel.org>2023-10-03 14:43:51 +0300
commitf0fb62e090bdf38eb3c7e127f21858708b55b71b (patch)
treebbdf667f8869a06cacc56b49a7acc95e9118e6c0 /drivers/net
parent3391ee7f9ea508c375d443cd712c2e699be235b4 (diff)
downloadlinux-stable-f0fb62e090bdf38eb3c7e127f21858708b55b71b.tar.gz
linux-stable-f0fb62e090bdf38eb3c7e127f21858708b55b71b.tar.bz2
linux-stable-f0fb62e090bdf38eb3c7e127f21858708b55b71b.zip
wifi: rtlwifi: use unsigned long for rtl_bssid_entry timestamp
Since 'age' of 'struct rtl_bssid_entry' is in jiffies, prefer 'unsigned long' over 'u32' to avoid possible truncation in 'rtl_collect_scan_list()' and thus weird result in 'rtl_scan_list_expire()'. Compile tested only. Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru> Acked-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230929154524.222498-1-dmantipov@yandex.ru
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/realtek/rtlwifi/wifi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h
index 2e7e04f91279..0f99e3446796 100644
--- a/drivers/net/wireless/realtek/rtlwifi/wifi.h
+++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h
@@ -2708,7 +2708,7 @@ struct rtl_c2hcmd {
struct rtl_bssid_entry {
struct list_head list;
u8 bssid[ETH_ALEN];
- u32 age;
+ unsigned long age;
};
struct rtl_scan_list {