mac80211_hwsim: Make sure beacon_timer gets deleted
[linux-2.6.git] / drivers / net / wireless / mac80211_hwsim.c
index 2b07d4b..bc9da93 100644 (file)
@@ -290,6 +290,7 @@ static void mac80211_hwsim_stop(struct ieee80211_hw *hw)
 {
        struct mac80211_hwsim_data *data = hw->priv;
        data->started = 0;
+       del_timer(&data->beacon_timer);
        printk(KERN_DEBUG "%s:%s\n", wiphy_name(hw->wiphy), __func__);
 }