summaryrefslogtreecommitdiffstats
path: root/net/mac80211/sta_info.h
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2023-12-06 09:09:27 +0300
committerJohannes Berg <johannes.berg@intel.com>2023-12-12 10:36:59 +0100
commitea855f0b38b0fce2124841d15777bbf1c7e1ded2 (patch)
tree9b73b328d3c8270c7c6623bb49335bbbd0dfb6aa /net/mac80211/sta_info.h
parentd34be4310cbe3a01a7bef10c5adcb0a7faafa1d2 (diff)
downloadlinux-ea855f0b38b0fce2124841d15777bbf1c7e1ded2.tar.gz
linux-ea855f0b38b0fce2124841d15777bbf1c7e1ded2.tar.bz2
linux-ea855f0b38b0fce2124841d15777bbf1c7e1ded2.zip
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>
Diffstat (limited to 'net/mac80211/sta_info.h')
-rw-r--r--net/mac80211/sta_info.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h
index 7acf2223e47a..5ef1554f991f 100644
--- a/net/mac80211/sta_info.h
+++ b/net/mac80211/sta_info.h
@@ -138,7 +138,7 @@ enum ieee80211_agg_stop_reason {
struct airtime_info {
u64 rx_airtime;
u64 tx_airtime;
- u32 last_active;
+ unsigned long last_active;
s32 deficit;
atomic_t aql_tx_pending; /* Estimated airtime for frames pending */
u32 aql_limit_low;