aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-04-21 18:18:24 (GMT)
committerJouni Malinen <j@w1.fi>2019-04-21 18:35:32 (GMT)
commit2ed2b52ff580513ea407966073a9581aec90a1c5 (patch)
tree5e3964eb5384acc8805857061b91b40de377869c /hostapd
parent516ccede8fd4b9702c0e684cfd73f856a17dc7e2 (diff)
downloadhostap-2ed2b52ff580513ea407966073a9581aec90a1c5.zip
hostap-2ed2b52ff580513ea407966073a9581aec90a1c5.tar.gz
hostap-2ed2b52ff580513ea407966073a9581aec90a1c5.tar.bz2
DPP: Add configuration structure to dpp_global_init()
This can be used to provide configurable parameter to the global DPP context. This initial commit introduces the msg_ctx context pointer for wpa_msg(). Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index 93d2dd3..08896ff 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -653,6 +653,9 @@ int main(int argc, char *argv[])
int start_ifaces_in_sync = 0;
char **if_names = NULL;
size_t if_names_size = 0;
+#ifdef CONFIG_DPP
+ struct dpp_global_config dpp_conf;
+#endif /* CONFIG_DPP */
if (os_program_init())
return -1;
@@ -672,7 +675,9 @@ int main(int argc, char *argv[])
dl_list_init(&interfaces.eth_p_oui);
#endif /* CONFIG_ETH_P_OUI */
#ifdef CONFIG_DPP
- interfaces.dpp = dpp_global_init();
+ os_memset(&dpp_conf, 0, sizeof(dpp_conf));
+ /* TODO: dpp_conf.msg_ctx? */
+ interfaces.dpp = dpp_global_init(&dpp_conf);
if (!interfaces.dpp)
return -1;
#endif /* CONFIG_DPP */