diff options
author | Jouni Malinen <j@w1.fi> | 2008-10-30 10:59:25 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-10 15:17:40 -0500 |
commit | ab1ef980504ca7f17b675b3a53a88956f800fce3 (patch) | |
tree | 2940be7dafe8169da1a4a82713d11d2d6b062a67 /drivers/net/wireless/mac80211_hwsim.c | |
parent | 318884875bdddca663ecc373c813cf8e117d9e43 (diff) |
mac80211_hwsim: Make sure beacon_timer gets deleted
It was possible to trigger a kernel panic because beacon_timer may not
have been deleted in all cases when the kernel module was removed while
hostapd was still running.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 2b07d4b865ae..bc9da9393760 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -290,6 +290,7 @@ static void mac80211_hwsim_stop(struct ieee80211_hw *hw) | |||
290 | { | 290 | { |
291 | struct mac80211_hwsim_data *data = hw->priv; | 291 | struct mac80211_hwsim_data *data = hw->priv; |
292 | data->started = 0; | 292 | data->started = 0; |
293 | del_timer(&data->beacon_timer); | ||
293 | printk(KERN_DEBUG "%s:%s\n", wiphy_name(hw->wiphy), __func__); | 294 | printk(KERN_DEBUG "%s:%s\n", wiphy_name(hw->wiphy), __func__); |
294 | } | 295 | } |
295 | 296 | ||