wifi: ath9k: use unsigned long for activity check timestamp
authorDmitry Antipov <dmantipov@yandex.ru>
Wed, 15 Jan 2025 17:17:50 +0000 (20:17 +0300)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Fri, 17 Jan 2025 23:39:22 +0000 (15:39 -0800)
Since 'rx_active_check_time' of 'struct ath_softc' is in jiffies,
prefer 'unsigned long' over 'u32' to avoid possible truncation in
'ath_hw_rx_inactive_check()'. Found with clang's -Wshorten-64-to-32,
compile tested only.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Link: https://patch.msgid.link/20250115171750.259917-2-dmantipov@yandex.ru
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath9k/ath9k.h

index 3a7164bf537a837926451fb9c885201ce42de246..6e38aa7351e336990f090679de76f3c6354638a4 100644 (file)
@@ -1017,7 +1017,7 @@ struct ath_softc {
 
        u8 gtt_cnt;
        u32 intrstatus;
-       u32 rx_active_check_time;
+       unsigned long rx_active_check_time;
        u32 rx_active_count;
        u16 ps_flags; /* PS_* */
        bool ps_enabled;