Do not wait for monitor to attach if no control interface
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>
This commit is contained in:
parent
f98674aa37
commit
1c94570f1b
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue