diff mbox

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

Message ID 1481542728-6851-1-git-send-email-avichal.a@samsung.com
State Accepted
Headers show

Commit Message

Avichal Agarwal Dec. 12, 2016, 11:38 a.m. UTC
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@samsung.com>
Signed-off-by: Kyeong-Chae Lim <kcya.lim@samsung.com>
---
 wpa_supplicant/config_file.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jouni Malinen Dec. 12, 2016, 10:59 p.m. UTC | #1
On Mon, Dec 12, 2016 at 05:08:48PM +0530, Avichal Agarwal wrote:
> 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

Thanks, applied.
diff mbox

Patch

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) &&