aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorEduardo Abinader <eduardo.abinader@openbossa.org>2014-04-26 00:46:03 (GMT)
committerJouni Malinen <j@w1.fi>2014-04-29 14:55:27 (GMT)
commite390df055302ad701d783e4327295e837d5a6c03 (patch)
treeb1c356322d976f01148354a032e939ab382598e2 /src/drivers
parentfa653bf4adcd36c99b8ae648515b3038e10a31e9 (diff)
downloadhostap-e390df055302ad701d783e4327295e837d5a6c03.zip
hostap-e390df055302ad701d783e4327295e837d5a6c03.tar.gz
hostap-e390df055302ad701d783e4327295e837d5a6c03.tar.bz2
nl80211: Cancel rfkill timeout on deinit
Got segfault, when freeing drv and there exists registered timeout for blocked rfkill. This patch adds cancel timeout to avoid this. Signed-off-by: Eduardo Abinader <eduardo.abinader@openbossa.org>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/driver_nl80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index b0c8a35..9c73369 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -4824,6 +4824,7 @@ static void wpa_driver_nl80211_deinit(struct i802_bss *bss)
netlink_send_oper_ifla(drv->global->netlink, drv->ifindex, 0,
IF_OPER_UP);
+ eloop_cancel_timeout(wpa_driver_nl80211_send_rfkill, drv, drv->ctx);
rfkill_deinit(drv->rfkill);
eloop_cancel_timeout(wpa_driver_nl80211_scan_timeout, drv, drv->ctx);