aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-01-07 16:44:46 (GMT)
committerJouni Malinen <j@w1.fi>2013-01-07 16:44:46 (GMT)
commit190e39d9cbca6d47a7c75adc690f7331dde0d4a1 (patch)
tree9c3fda6dea7dcea075be10e15ac7e5a7054f36a7 /wpa_supplicant/interworking.c
parent569d43c7aea49827d6fd45618f09517ed4f3459f (diff)
downloadhostap-190e39d9cbca6d47a7c75adc690f7331dde0d4a1.zip
hostap-190e39d9cbca6d47a7c75adc690f7331dde0d4a1.tar.gz
hostap-190e39d9cbca6d47a7c75adc690f7331dde0d4a1.tar.bz2
Interworking: Do not schedule new scan if process is terminating
The GAS query compilation callback may happen after the wpa_supplicant process has been requested to terminate. Avoid scheduling a new eloop timeout for a scan in such a case. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 400b738..b8a8bb2 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -1710,7 +1710,7 @@ static void interworking_next_anqp_fetch(struct wpa_supplicant *wpa_s)
int found = 0;
const u8 *ie;
- if (!wpa_s->fetch_anqp_in_progress)
+ if (eloop_terminated() || !wpa_s->fetch_anqp_in_progress)
return;
dl_list_for_each(bss, &wpa_s->bss, struct wpa_bss, list) {