mac80211: fix crash in mac80211_hwsim
authorFelix Fietkau <nbd@nbd.name>
Mon, 26 Sep 2016 14:10:39 +0000 (16:10 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 26 Sep 2016 14:19:58 +0000 (16:19 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/mac80211/patches/130-mac80211-hwsim-hrtimer-clock.patch [new file with mode: 0644]

diff --git a/package/kernel/mac80211/patches/130-mac80211-hwsim-hrtimer-clock.patch b/package/kernel/mac80211/patches/130-mac80211-hwsim-hrtimer-clock.patch
new file mode 100644 (file)
index 0000000..cdcd5c8
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/drivers/net/wireless/mac80211_hwsim.c
++++ b/drivers/net/wireless/mac80211_hwsim.c
+@@ -2631,7 +2631,7 @@ static int mac80211_hwsim_new_radio(stru
+       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);