|
@@ -2884,6 +2884,10 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,
|
|
|
|
|
|
wiphy_ext_feature_set(hw->wiphy, NL80211_EXT_FEATURE_CQM_RSSI_LIST);
|
|
|
|
|
|
+ tasklet_hrtimer_init(&data->beacon_timer,
|
|
|
+ mac80211_hwsim_beacon,
|
|
|
+ CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
|
|
|
+
|
|
|
err = ieee80211_register_hw(hw);
|
|
|
if (err < 0) {
|
|
|
pr_debug("mac80211_hwsim: ieee80211_register_hw failed (%d)\n",
|
|
@@ -2908,10 +2912,6 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,
|
|
|
data->debugfs,
|
|
|
data, &hwsim_simulate_radar);
|
|
|
|
|
|
- tasklet_hrtimer_init(&data->beacon_timer,
|
|
|
- mac80211_hwsim_beacon,
|
|
|
- CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
|
|
|
-
|
|
|
spin_lock_bh(&hwsim_radio_lock);
|
|
|
err = rhashtable_insert_fast(&hwsim_radios_rht, &data->rht,
|
|
|
hwsim_rht_params);
|