diff options
author | Felix Fietkau <nbd@nbd.name> | 2023-09-20 13:43:14 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2023-09-20 14:11:53 +0200 |
commit | 6019945e960d2e09ba71eaeb3e03686d871b53e4 (patch) | |
tree | 6018dd6ff3ebc20e66289d90c7037d7452fcf0d5 /package/network/services/hostapd/patches/183-hostapd-cancel-channel_list_update_timeout-in-hostap.patch | |
parent | 83bf45ea5cacabc2ec7060be6ab5115b871a7c21 (diff) | |
download | upstream-6019945e960d2e09ba71eaeb3e03686d871b53e4.tar.gz upstream-6019945e960d2e09ba71eaeb3e03686d871b53e4.tar.bz2 upstream-6019945e960d2e09ba71eaeb3e03686d871b53e4.zip |
hostapd: fix a crash when disabling an interface during channel list update
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit e9722aef9e84110331706f74f7de0942c8d657ed)
Diffstat (limited to 'package/network/services/hostapd/patches/183-hostapd-cancel-channel_list_update_timeout-in-hostap.patch')
-rw-r--r-- | package/network/services/hostapd/patches/183-hostapd-cancel-channel_list_update_timeout-in-hostap.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/183-hostapd-cancel-channel_list_update_timeout-in-hostap.patch b/package/network/services/hostapd/patches/183-hostapd-cancel-channel_list_update_timeout-in-hostap.patch new file mode 100644 index 0000000000..fe81318385 --- /dev/null +++ b/package/network/services/hostapd/patches/183-hostapd-cancel-channel_list_update_timeout-in-hostap.patch @@ -0,0 +1,28 @@ +From: Felix Fietkau <nbd@nbd.name> +Date: Wed, 20 Sep 2023 13:41:10 +0200 +Subject: [PATCH] hostapd: cancel channel_list_update_timeout in + hostapd_cleanup_iface_partial + +Fixes a crash when disabling an interface during channel list update + +Signed-off-by: Felix Fietkau <nbd@nbd.name> +--- + +--- a/src/ap/hostapd.c ++++ b/src/ap/hostapd.c +@@ -569,6 +569,7 @@ static void sta_track_deinit(struct host + void hostapd_cleanup_iface_partial(struct hostapd_iface *iface) + { + wpa_printf(MSG_DEBUG, "%s(%p)", __func__, iface); ++ eloop_cancel_timeout(channel_list_update_timeout, iface, NULL); + #ifdef NEED_AP_MLME + hostapd_stop_setup_timers(iface); + #endif /* NEED_AP_MLME */ +@@ -598,7 +599,6 @@ void hostapd_cleanup_iface_partial(struc + static void hostapd_cleanup_iface(struct hostapd_iface *iface) + { + wpa_printf(MSG_DEBUG, "%s(%p)", __func__, iface); +- eloop_cancel_timeout(channel_list_update_timeout, iface, NULL); + eloop_cancel_timeout(hostapd_interface_setup_failure_handler, iface, + NULL); + |