[RFC 2/2] wpa_supp: unset p2p_disabled configuration for p2p management interface

Arend van Spriel arend at broadcom.com
Mon Dec 1 06:57:04 EST 2014


When initializing the p2p management interface with a configuration
it may have p2p_disabled=1 set. This is unwanted for the p2p management
interface for obvious reasons. By effectively ignoring this setting
the p2p management interface can share the same configuration file as
the regular interface.

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

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 1804c03..ba7f568 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -3722,6 +3722,8 @@ static int wpa_supplicant_init_iface(struct wpa_supplicant *wpa_s,
 			os_free(wpa_s->conf->ctrl_interface);
 			wpa_s->conf->ctrl_interface = NULL;
 		}
+		if (iface->p2p_mgmt && wpa_s->conf->p2p_disabled)
+			wpa_s->conf->p2p_disabled = 0;
 	} else
 		wpa_s->conf = wpa_config_alloc_empty(iface->ctrl_interface,
 						     iface->driver_param);
-- 
1.9.1



More information about the HostAP mailing list