projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f98674a
)
Do not wait for monitor to attach if no control interface
author
Ilan Peer
<ilan.peer@intel.com>
Sun, 27 Dec 2015 14:25:06 +0000
(16:25 +0200)
committer
Jouni Malinen
<j@w1.fi>
Mon, 28 Dec 2015 15:21:08 +0000
(17:21 +0200)
In case an interface has started without a control interface
initialized, skip waiting for monitor to attach at the start of
wpa_supplicant (-W).
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/ctrl_iface_unix.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/ctrl_iface_unix.c
b/wpa_supplicant/ctrl_iface_unix.c
index
2c71b2d
..
7b36751
100644
(file)
--- a/
wpa_supplicant/ctrl_iface_unix.c
+++ b/
wpa_supplicant/ctrl_iface_unix.c
@@
-1058,6
+1058,9
@@
void wpa_supplicant_ctrl_iface_wait(struct ctrl_iface_priv *priv)
struct sockaddr_un from;
socklen_t fromlen = sizeof(from);
+ if (priv->sock == -1)
+ return;
+
for (;;) {
wpa_printf(MSG_DEBUG, "CTRL_IFACE - %s - wait for monitor to "
"attach", priv->wpa_s->ifname);