From: Jouni Malinen Date: Wed, 2 Feb 2022 14:42:50 +0000 (+0200) Subject: DPP: Make dpp_netrole_str() non-static X-Git-Tag: hostap_2_11~2265 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6751fb060421f969a5a2cff99d64f5be149080b4;p=thirdparty%2Fhostap.git DPP: Make dpp_netrole_str() non-static This function is going to be needed outside dpp.c. Signed-off-by: Jouni Malinen --- diff --git a/src/common/dpp.c b/src/common/dpp.c index 77964f264..138a3d3e0 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -26,8 +26,6 @@ #include "dpp_i.h" -static const char * dpp_netrole_str(enum dpp_netrole netrole); - #ifdef CONFIG_TESTING_OPTIONS #ifdef CONFIG_DPP3 int dpp_version_override = 3; @@ -1401,7 +1399,7 @@ static void dpp_build_legacy_cred_params(struct wpabuf *buf, } -static const char * dpp_netrole_str(enum dpp_netrole netrole) +const char * dpp_netrole_str(enum dpp_netrole netrole) { switch (netrole) { case DPP_NETROLE_STA: diff --git a/src/common/dpp.h b/src/common/dpp.h index 83f3d94af..124d695f5 100644 --- a/src/common/dpp.h +++ b/src/common/dpp.h @@ -525,6 +525,7 @@ int dpp_parse_uri_mac(struct dpp_bootstrap_info *bi, const char *mac); int dpp_parse_uri_info(struct dpp_bootstrap_info *bi, const char *info); int dpp_nfc_update_bi(struct dpp_bootstrap_info *own_bi, struct dpp_bootstrap_info *peer_bi); +const char * dpp_netrole_str(enum dpp_netrole netrole); struct dpp_authentication * dpp_alloc_auth(struct dpp_global *dpp, void *msg_ctx); struct hostapd_hw_modes;