net: wifi: Added missing extern "C"

This change allows to include this header directly from cpp file.

Signed-off-by: Wojciech Slenska <wsl@trackunit.com>
This commit is contained in:
Wojciech Slenska 2023-09-25 11:53:37 +02:00 committed by Carles Cufí
commit f1bf05e63a

View file

@ -27,6 +27,10 @@
#define WIFI_LISTEN_INTERVAL_MIN 0
#define WIFI_LISTEN_INTERVAL_MAX 65535
#ifdef __cplusplus
extern "C" {
#endif
/** IEEE 802.11 security types. */
enum wifi_security_type {
/** No security. */
@ -444,6 +448,10 @@ static inline const char *wifi_ps_get_config_err_code_str(int16_t err_no)
return "<unknown>";
}
#ifdef __cplusplus
}
#endif
/**
* @}
*/