[15/20] wpa_s: p2p: use configuration file for P2P-Device interface

Submitted by Arend van Spriel on May 16, 2013, 1:28 p.m.

Details

Message ID 1368710915-32176-16-git-send-email-arend@broadcom.com
State Changes Requested
Headers show

Commit Message

Arend van Spriel May 16, 2013, 1:28 p.m.
When creating the P2P-Device use the same configuration as the
main interface.

Signed-hostap: Arend van Spriel <arend@broadcom.com>
---
 wpa_supplicant/p2p_supplicant.c |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index d87f824..1a07706 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -2946,6 +2946,7 @@  int wpas_p2p_add_p2pdev_interface(struct wpa_supplicant *wpa_s)
 	iface.driver = wpa_s->driver->name;
 	iface.ctrl_interface = wpa_s->conf->ctrl_interface;
 	iface.driver_param = wpa_s->conf->driver_param;
+	iface.confname = wpa_s->confname;
 	p2pdev_wpa_s = wpa_supplicant_add_iface(wpa_s->global, &iface);
 	if (!p2pdev_wpa_s) {
 		wpa_printf(MSG_DEBUG, "P2P: failed to add P2P Device interface");