From f1bf05e63a5447c7a935c371d22182a80319c08a Mon Sep 17 00:00:00 2001 From: Wojciech Slenska Date: Mon, 25 Sep 2023 11:53:37 +0200 Subject: [PATCH] net: wifi: Added missing extern "C" This change allows to include this header directly from cpp file. Signed-off-by: Wojciech Slenska --- include/zephyr/net/wifi.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/zephyr/net/wifi.h b/include/zephyr/net/wifi.h index 294fdc53c5d..75cf4cf5f92 100644 --- a/include/zephyr/net/wifi.h +++ b/include/zephyr/net/wifi.h @@ -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 ""; } +#ifdef __cplusplus +} +#endif + /** * @} */