mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
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>
This commit is contained in:
parent
5046eb4e4d
commit
e0591c3cfe
@ -331,13 +331,13 @@ void wpa_supplicant_ctrl_iface_deinit(struct ctrl_iface_priv *priv)
|
|||||||
eloop_unregister_read_sock(priv->sock);
|
eloop_unregister_read_sock(priv->sock);
|
||||||
if (priv->ctrl_dst) {
|
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
|
* there are any attached monitors in order to allow
|
||||||
* them to receive any pending messages.
|
* them to receive any pending messages.
|
||||||
*/
|
*/
|
||||||
wpa_printf(MSG_DEBUG, "CTRL_IFACE wait for attached "
|
wpa_printf(MSG_DEBUG, "CTRL_IFACE wait for attached "
|
||||||
"monitors to receive messages");
|
"monitors to receive messages");
|
||||||
os_sleep(1, 0);
|
os_sleep(0, 100000);
|
||||||
}
|
}
|
||||||
close(priv->sock);
|
close(priv->sock);
|
||||||
priv->sock = -1;
|
priv->sock = -1;
|
||||||
|
@ -495,13 +495,13 @@ void wpa_supplicant_ctrl_iface_deinit(struct ctrl_iface_priv *priv)
|
|||||||
eloop_unregister_read_sock(priv->sock);
|
eloop_unregister_read_sock(priv->sock);
|
||||||
if (!dl_list_empty(&priv->ctrl_dst)) {
|
if (!dl_list_empty(&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
|
* there are any attached monitors in order to allow
|
||||||
* them to receive any pending messages.
|
* them to receive any pending messages.
|
||||||
*/
|
*/
|
||||||
wpa_printf(MSG_DEBUG, "CTRL_IFACE wait for attached "
|
wpa_printf(MSG_DEBUG, "CTRL_IFACE wait for attached "
|
||||||
"monitors to receive messages");
|
"monitors to receive messages");
|
||||||
os_sleep(1, 0);
|
os_sleep(0, 100000);
|
||||||
}
|
}
|
||||||
close(priv->sock);
|
close(priv->sock);
|
||||||
priv->sock = -1;
|
priv->sock = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user