P2P: Fix wpas_remove_persistent_peer() to use P2P mgmt interface
authorIlan Peer <ilan.peer@intel.com>
Tue, 12 May 2015 14:40:01 +0000 (17:40 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 25 May 2015 15:31:09 +0000 (18:31 +0300)
commitb740401f180b416c6d62c8cc899ed47a5df9e644
tree57a024b56f7017ead32aafb7b40dd5ac5467e5e9
parent1e0a02942b9ea867e20a5cdf161510d51e523c71
P2P: Fix wpas_remove_persistent_peer() to use P2P mgmt interface

The function used wpa_s->parent->conf to iterate the P2P networks and
update the configuration file. However, wpa_s->parent is not
necessarily the interface used to manage the P2P Device operations.

Fix this by accessing the configuration file of the interface
initialized to manage the P2P Device operations.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/p2p_supplicant.c