]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mac80211_hwsim: use CLOCK_MONOTONIC_RAW
authorJohannes Berg <johannes.berg@intel.com>
Mon, 18 Nov 2013 16:23:26 +0000 (17:23 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 2 Dec 2013 10:51:49 +0000 (11:51 +0100)
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: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c

index bcc7d8208f23cc1c2ed925cdeffe170c7a3a4540..ab875566c744ea9132e25417b0b136e4b641da34 100644 (file)
@@ -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);
        }