]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Set p2p_persistent_group=1 at the time of reading disabled=2
authorAvichal Agarwal <avichal.a@samsung.com>
Mon, 12 Dec 2016 11:38:48 +0000 (17:08 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 12 Dec 2016 18:30:31 +0000 (20:30 +0200)
Configuration file network block with disabled=2 is used for storing
information about a persistent group, so p2p_persitent_group should be
updated according to this when creating a struct wpa_ssid instance. This
will end up using D-Bus persistent network object path for the network.

Signed-off-by: Avichal Agarwal <avichal.a@samsung.com>
Signed-off-by: Kyeong-Chae Lim <kcya.lim@samsung.com>
wpa_supplicant/config_file.c

index 2e3d57ee0d6dcb4f9ed2137ce9d8e17a651c6777..b9b1d4d26425fab5d467b8aa2f80beb3ddd7f682 100644 (file)
@@ -136,6 +136,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) &&
            !(ssid->pairwise_cipher & WPA_CIPHER_NONE)) {