aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_file.c
diff options
context:
space:
mode:
authorAvichal Agarwal <avichal.a@samsung.com>2016-12-12 11:38:48 (GMT)
committerJouni Malinen <j@w1.fi>2016-12-12 18:30:31 (GMT)
commit5149a0f04cb687035f3c74ac90efba345c1ebed7 (patch)
tree67ab1c62949df890943834ffea122479ced3cf48 /wpa_supplicant/config_file.c
parentb49871ecc1df02fd235e9ba4fc95c33e25f8903b (diff)
downloadhostap-5149a0f04cb687035f3c74ac90efba345c1ebed7.zip
hostap-5149a0f04cb687035f3c74ac90efba345c1ebed7.tar.gz
hostap-5149a0f04cb687035f3c74ac90efba345c1ebed7.tar.bz2
P2P: Set p2p_persistent_group=1 at the time of reading disabled=2
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>
Diffstat (limited to 'wpa_supplicant/config_file.c')
-rw-r--r--wpa_supplicant/config_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index 2e3d57e..b9b1d4d 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -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)) {