path: root/wpa_supplicant/main.c
diff options
authorIlan Peer <ilan.peer@intel.com>2015-06-17 13:18:20 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-19 13:22:26 (GMT)
commitf43c1ae7989c38fe15756f12a9196a1cf798b4d7 (patch)
treeae57b5df37afdbb5bee2f77ca6186d80d005e873 /wpa_supplicant/main.c
parent1ac977bdd51f20c2ee50cebfb79344d3a012db88 (diff)
P2P: Handle P2P Device dedicated interface parent removal
In case of a network interface removal, check if the interface was also the parent interface of the P2P Device dedicated interface. If this is the case, then stop the P2P Device functionality, and remove the P2P Device dedicated interface. In case that the interface is added again and P2P Device functionality can be enabled again, add a new P2P Device dedicated interface and allow further P2P Device functionality. In case that the P2P Device dedicated interface is re-created, the original P2P Device configuration file is needed, so store it in the global params (instead in the wpa_interface configuration). Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Diffstat (limited to 'wpa_supplicant/main.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/main.c b/wpa_supplicant/main.c
index 9f5a198..1c93306 100644
--- a/wpa_supplicant/main.c
+++ b/wpa_supplicant/main.c
@@ -237,7 +237,7 @@ int main(int argc, char *argv[])
goto out;
#ifdef CONFIG_P2P
case 'm':
- iface->conf_p2p_dev = optarg;
+ params.conf_p2p_dev = optarg;
#endif /* CONFIG_P2P */
case 'o':