]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath9k: simplify internal time management
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 9 Dec 2024 15:50:27 +0000 (18:50 +0300)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Thu, 19 Dec 2024 17:41:03 +0000 (09:41 -0800)
commit0cc6510ca4639a20c8921f223f05faa485795204
treeb34a0a89c6ec4f3cfd25f8b38443911a22aba465
parentd19ac7ef6ee997298a42335d0dd09b67c6cb19bf
wifi: ath9k: simplify internal time management

Prefer 'ktime_t' over 'struct timespec64' for 'struct ath_chanctx' and
'struct ath_softc' timestamps, choose standard kernel time API over an
ad-hoc math in 'chanctx_event_delta()' and 'ath9k_hw_get_tsf_offset()',
adjust related users. 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/20241209155027.636400-3-dmantipov@yandex.ru
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/beacon.c
drivers/net/wireless/ath/ath9k/channel.c
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/main.c