P2P: Handle P2P Device dedicated interface parent removal
authorIlan Peer <ilan.peer@intel.com>
Wed, 17 Jun 2015 13:18:20 +0000 (16:18 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 19 Jun 2015 13:22:26 +0000 (16:22 +0300)
commitf43c1ae7989c38fe15756f12a9196a1cf798b4d7
treeae57b5df37afdbb5bee2f77ca6186d80d005e873
parent1ac977bdd51f20c2ee50cebfb79344d3a012db88
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>
wpa_supplicant/events.c
wpa_supplicant/main.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant_i.h