P2P: Fix wpas_p2p_set_own_freq_preference() to use P2P mgmt interface
authorIlan Peer <ilan.peer@intel.com>
Tue, 12 May 2015 14:39:59 +0000 (17:39 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 25 May 2015 15:31:09 +0000 (18:31 +0300)
commit86b91c89afb296d477972dd624a7cdfbe86685cf
tree8afe73c52de724806262b7ec28d747d46deb4735
parent43677494fbdcb672ec5e0e6c05f319e2128e665a
P2P: Fix wpas_p2p_set_own_freq_preference() to use P2P mgmt interface

wpas_p2p_set_own_freq_preference() accessed wpa_s->parent->conf to test
if p2p_ignore_shared_freq is set, but 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