wifi: mac80211: cleanup airtime arithmetic with ieee80211_sta_keep_active()
authorDmitry Antipov <dmantipov@yandex.ru>
Wed, 6 Dec 2023 06:09:27 +0000 (09:09 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 12 Dec 2023 09:36:59 +0000 (10:36 +0100)
commitea855f0b38b0fce2124841d15777bbf1c7e1ded2
tree9b73b328d3c8270c7c6623bb49335bbbd0dfb6aa
parentd34be4310cbe3a01a7bef10c5adcb0a7faafa1d2
wifi: mac80211: cleanup airtime arithmetic with ieee80211_sta_keep_active()

Prefer native jiffies-wide 'unsigned long' for the 'last_active' field of
'struct airtime_info' and introduce 'ieee80211_sta_keep_active()' for airtime
check in 'ieee80211_txq_keep_active()' and 'ieee80211_sta_register_airtime()'.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Reviewed-by: Toke Høiland-Jørgensen <toke@toke.dk>
Link: https://msgid.link/20231206060935.612241-1-dmantipov@yandex.ru
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/sta_info.c
net/mac80211/sta_info.h
net/mac80211/tx.c