Skip to content

Commit

Permalink
wifi: ath9k: use unsigned long for activity check timestamp
Browse files Browse the repository at this point in the history
[ Upstream commit 8fe64b0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Dmitry Antipov authored and Greg Kroah-Hartman committed Apr 20, 2025
1 parent 021d7d5 commit ee2e500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/ath9k.h
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,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;
Expand Down

0 comments on commit ee2e500

Please sign in to comment.