mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
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
This commit is contained in:
parent
3391ee7f9e
commit
f0fb62e090
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user