wpa_supplicant: Do not wait for monitor on P2P Device interface

External programs are not aware of the creation of a
dedicated P2P Device interface, so it does not make sense
to wait for a monitor to connect on such an interface.

Fix this by not waiting on a dedicated P2P Device interface
for monitor to attach.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
Ilan Peer 2015-12-27 16:25:07 +02:00 committed by Jouni Malinen
parent 1c94570f1b
commit ede7770180

View File

@ -5227,7 +5227,7 @@ int wpa_supplicant_run(struct wpa_global *global)
if (global->params.wait_for_monitor) { if (global->params.wait_for_monitor) {
for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next) for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next)
if (wpa_s->ctrl_iface) if (wpa_s->ctrl_iface && !wpa_s->p2p_mgmt)
wpa_supplicant_ctrl_iface_wait( wpa_supplicant_ctrl_iface_wait(
wpa_s->ctrl_iface); wpa_s->ctrl_iface);
} }