[PATCH] Updating p2p_persistent_group bit at the time of reading p2p.conf(ssid->disabled)

Avichal Agarwal avichal.a at samsung.com
Mon Dec 12 03:38:48 PST 2016


p2p.conf file identifier disabled=2 shows the network is persistent .
So p2p_persitent_group should be updated according to persistent network identifier,
This will persistent network  on dbus  persistent network object path

Signed-off-by: Avichal Agarwal <avichal.a at samsung.com>
Signed-off-by: Kyeong-Chae Lim <kcya.lim at samsung.com>
---
 wpa_supplicant/config_file.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index 2e3d57e..2b8c2ee 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -135,6 +135,9 @@ static int wpa_config_validate_network(struct wpa_ssid *ssid, int line)
 		}
 		wpa_config_update_psk(ssid);
 	}
+	if(ssid->disabled==2)	{
+		ssid->p2p_persistent_group = 1;
+	}
 
 	if ((ssid->group_cipher & WPA_CIPHER_CCMP) &&
 	    !(ssid->pairwise_cipher & WPA_CIPHER_CCMP) &&
-- 
2.7.4




More information about the Hostap mailing list