]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mac80211_hwsim: rename and switch simulation time to boottime
authorBenjamin Berg <benjamin.berg@intel.com>
Mon, 4 May 2026 07:20:51 +0000 (10:20 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 May 2026 10:10:16 +0000 (12:10 +0200)
commit1926f4e06dcebe2d220d1a80a7cc88fd8a82a0c8
tree1be69a51d61c96d43553ee74f2c1e377c6de3998
parent340f2ab83a5c9fc76a045cac737a1533d19188ef
wifi: mac80211_hwsim: rename and switch simulation time to boottime

The mac80211_hwsim base time for the simulation of the TSF was based on
the real time of the system. This clock is subject to unexpected
changes. Switch it to use boottime which is always monotonic and also
continues to run through times where the system is suspended.

Also change the function name from tsf_raw to sim_tsf to better
differentiate between the TSF of the mac and the TSF base of the
simulation.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260504101829.2a64333111ff.I2ef047f3cdd6dc52af4bb7bf747368fb78014f18@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virtual/mac80211_hwsim_main.c