DPP: Make dpp_netrole_str() non-static

This function is going to be needed outside dpp.c.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2022-02-02 16:42:50 +02:00 committed by Jouni Malinen
parent 34575ad72e
commit 6751fb0604
2 changed files with 2 additions and 3 deletions

View file

@ -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:

View file

@ -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;