Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d940aaa authored by Johannes Berg's avatar Johannes Berg
Browse files

mac80211_hwsim: use CLOCK_MONOTONIC_RAW



The beacon timers really shouldn't use any clock that is
subject to adjustments from userspace, particularly not
CLOCK_REALTIME. Use CLOCK_MONOTONIC_RAW instead.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 01e0daa4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2580,7 +2580,7 @@ static int __init init_mac80211_hwsim(void)

		tasklet_hrtimer_init(&data->beacon_timer,
				     mac80211_hwsim_beacon,
				     CLOCK_REALTIME, HRTIMER_MODE_ABS);
				     CLOCK_MONOTONIC_RAW, HRTIMER_MODE_ABS);

		list_add_tail(&data->list, &hwsim_radios);
	}