mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
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:
parent
1c94570f1b
commit
ede7770180
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user