aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-11-18 11:23:26 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-12-02 05:51:49 -0500
commit1d940aaab881b0ee62557ffbaad877ac5a1b51db (patch)
tree5031936c6541972205b990e2fa3f2118f3ba94e6
parent01e0daa43f129fc1a6bc6f1197343c0293af866d (diff)
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: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index bcc7d8208f23..ab875566c744 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -2580,7 +2580,7 @@ static int __init init_mac80211_hwsim(void)
2580 2580
2581 tasklet_hrtimer_init(&data->beacon_timer, 2581 tasklet_hrtimer_init(&data->beacon_timer,
2582 mac80211_hwsim_beacon, 2582 mac80211_hwsim_beacon,
2583 CLOCK_REALTIME, HRTIMER_MODE_ABS); 2583 CLOCK_MONOTONIC_RAW, HRTIMER_MODE_ABS);
2584 2584
2585 list_add_tail(&data->list, &hwsim_radios); 2585 list_add_tail(&data->list, &hwsim_radios);
2586 } 2586 }