[PATCH] writing and reading p2p_persistent_group bit in p2p.conf file
Avichal Agarwal
avichal.a at samsung.com
Wed Dec 7 05:39:29 PST 2016
At the time of starting the wpa_supplicant it reads the persistent network
Entries from p2p.conf file. Now p2p_persistent_group bit will register the
the persistent network in dbus on the persistent object path.
Signed-off-by: Avichal Agarwal <avichal.a at samsung.com>
---
wpa_supplicant/config.c | 1 +
wpa_supplicant/config_file.c | 1 +
wpa_supplicant/config_winreg.c | 1 +
wpa_supplicant/wpa_cli.c | 2 +-
4 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index 2120a6e..7d7ce31 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -2061,6 +2061,7 @@ static const struct parse_data ssid_fields[] = {
#endif /* CONFIG_MESH */
{ INT_RANGE(proactive_key_caching, 0, 1) },
{ INT_RANGE(disabled, 0, 2) },
+ { INT_RANGE(p2p_persistent_group, 0, 1) },
{ STR(id_str) },
#ifdef CONFIG_IEEE80211W
{ INT_RANGE(ieee80211w, 0, 2) },
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index 2e3d57e..02e8788 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -778,6 +778,7 @@ static void wpa_config_write_network(FILE *f, struct wpa_ssid *ssid)
INT_DEFe(sim_num, DEFAULT_USER_SELECTED_SIM);
#endif /* IEEE8021X_EAPOL */
INT(mode);
+ INT(p2p_persistent_group);
INT(no_auto_peer);
INT(frequency);
INT(fixed_freq);
diff --git a/wpa_supplicant/config_winreg.c b/wpa_supplicant/config_winreg.c
index 82ba3b0..92feae4 100644
--- a/wpa_supplicant/config_winreg.c
+++ b/wpa_supplicant/config_winreg.c
@@ -925,6 +925,7 @@ static int wpa_config_write_network(HKEY hk, struct wpa_ssid *ssid, int id)
-1);
INT(disabled);
INT(peerkey);
+ INT(p2p_persistent_group);
#ifdef CONFIG_IEEE80211W
write_int(netw, "ieee80211w", ssid->ieee80211w,
MGMT_FRAME_PROTECTION_DEFAULT);
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index f11028a..0b9aa02 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -1372,7 +1372,7 @@ static const char *network_fields[] = {
#endif /* CONFIG_MESH */
"wpa_ptk_rekey", "bgscan", "ignore_broadcast_ssid",
#ifdef CONFIG_P2P
- "go_p2p_dev_addr", "p2p_client_list", "psk_list",
+ "go_p2p_dev_addr", "p2p_client_list", "psk_list","p2p_persistent_group",
#endif /* CONFIG_P2P */
#ifdef CONFIG_HT_OVERRIDES
"disable_ht", "disable_ht40", "disable_sgi", "disable_ldpc",
--
2.7.4
More information about the Hostap
mailing list