mac80211_hwsim: Replace bogus hrtimer clockid
authorThomas Gleixner <tglx@linutronix.de>
Sat, 25 Feb 2017 10:27:37 +0000 (11:27 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Feb 2017 17:48:16 +0000 (09:48 -0800)
mac80211_hwsim initializes a hrtimer with clockid CLOCK_MONOTONIC_RAW.
That's not supported.

Use CLOCK_MONOTNIC instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/net/wireless/mac80211_hwsim.c

index 1620a5d2757d38ceea4662fe1c885fdccd201948..0889fc81ce9e47e4c63731588e5732123a8aabf6 100644 (file)
@@ -2671,7 +2671,7 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,
 
        tasklet_hrtimer_init(&data->beacon_timer,
                             mac80211_hwsim_beacon,
-                            CLOCK_MONOTONIC_RAW, HRTIMER_MODE_ABS);
+                            CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
 
        spin_lock_bh(&hwsim_radio_lock);
        list_add_tail(&data->list, &hwsim_radios);