aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/main.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-10-20 09:42:27 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-21 14:35:19 (GMT)
commitc3c4b3ed3b714a74d77c59d37784b44871110b05 (patch)
treeb66a75ca1c5a715099d9b28ec57025489808cced /wpa_supplicant/main.c
parent26fc96e89b9f0ecd16e1ecbdc41a375b2cc752a7 (diff)
downloadhostap-c3c4b3ed3b714a74d77c59d37784b44871110b05.zip
hostap-c3c4b3ed3b714a74d77c59d37784b44871110b05.tar.gz
hostap-c3c4b3ed3b714a74d77c59d37784b44871110b05.tar.bz2
P2P: Support dynamic addition of P2P Device triggering interface
This moves the addition of P2P Device interface into wpa_supplicant_add_iface() so that this operation can be done dynamically when adding an interface to an already running wpa_supplicant process. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/main.c')
-rw-r--r--wpa_supplicant/main.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/wpa_supplicant/main.c b/wpa_supplicant/main.c
index e596468..13e9769 100644
--- a/wpa_supplicant/main.c
+++ b/wpa_supplicant/main.c
@@ -327,14 +327,6 @@ int main(int argc, char *argv[])
exitcode = -1;
break;
}
-#ifdef CONFIG_P2P
- if (wpa_s->global->p2p == NULL &&
- (wpa_s->drv_flags &
- WPA_DRIVER_FLAGS_DEDICATED_P2P_DEVICE) &&
- wpas_p2p_add_p2pdev_interface(wpa_s, iface->conf_p2p_dev) <
- 0)
- exitcode = -1;
-#endif /* CONFIG_P2P */
}
if (exitcode == 0)