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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
Signed-off-by: Kyeong-Chae Lim <kcya.lim@xxxxxxxxxxx>
---
 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


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux