]> www.infradead.org Git - users/hch/misc.git/commit
wifi: rtlwifi: use unsigned long for rtl_bssid_entry timestamp
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 29 Sep 2023 15:45:20 +0000 (18:45 +0300)
committerKalle Valo <kvalo@kernel.org>
Tue, 3 Oct 2023 11:43:51 +0000 (14:43 +0300)
commitf0fb62e090bdf38eb3c7e127f21858708b55b71b
treebbdf667f8869a06cacc56b49a7acc95e9118e6c0
parent3391ee7f9ea508c375d443cd712c2e699be235b4
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
drivers/net/wireless/realtek/rtlwifi/wifi.h