aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface_udp.c
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2013-08-25 06:48:27 (GMT)
committerJouni Malinen <j@w1.fi>2013-08-25 06:48:27 (GMT)
commite0591c3cfe3f8937a9f216ddcf49ed3a94238179 (patch)
treefc704f8cdc7a81acb6ee1aac05fcb3838959400e /wpa_supplicant/ctrl_iface_udp.c
parent5046eb4e4d501a3dfe56a620b94d01d43e73096d (diff)
downloadhostap-e0591c3cfe3f8937a9f216ddcf49ed3a94238179.zip
hostap-e0591c3cfe3f8937a9f216ddcf49ed3a94238179.tar.gz
hostap-e0591c3cfe3f8937a9f216ddcf49ed3a94238179.tar.bz2
wpa_supplicant: Reduce wait time for control interfaces
Reduce the wait time for the monitor control interfaces to get messages on wpa_supplicant de-init etc., as this significantly delays the shutdown of the wpa_supplicant. Signed-hostap: Ilan Peer <ilan.peer@intel.com>
Diffstat (limited to 'wpa_supplicant/ctrl_iface_udp.c')
-rw-r--r--wpa_supplicant/ctrl_iface_udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/ctrl_iface_udp.c b/wpa_supplicant/ctrl_iface_udp.c
index 0f53d56..8c09ba1 100644
--- a/wpa_supplicant/ctrl_iface_udp.c
+++ b/wpa_supplicant/ctrl_iface_udp.c
@@ -331,13 +331,13 @@ void wpa_supplicant_ctrl_iface_deinit(struct ctrl_iface_priv *priv)
eloop_unregister_read_sock(priv->sock);
if (priv->ctrl_dst) {
/*
- * Wait a second before closing the control socket if
+ * Wait before closing the control socket if
* there are any attached monitors in order to allow
* them to receive any pending messages.
*/
wpa_printf(MSG_DEBUG, "CTRL_IFACE wait for attached "
"monitors to receive messages");
- os_sleep(1, 0);
+ os_sleep(0, 100000);
}
close(priv->sock);
priv->sock = -1;