P2P: Fix wpas_p2p_add_persistent_group_client() to use P2P mgmt interface
authorIlan Peer <ilan.peer@intel.com>
Tue, 12 May 2015 14:40:00 +0000 (17:40 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 25 May 2015 15:31:09 +0000 (18:31 +0300)
commit1e0a02942b9ea867e20a5cdf161510d51e523c71
treee9e79cb5810d05ce647470aa1f8c151c9c54b870
parent86b91c89afb296d477972dd624a7cdfbe86685cf
P2P: Fix wpas_p2p_add_persistent_group_client() 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 managed the P2P Device operations.

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