1 /*
2  * Copyright (c) 2024 CSIRO
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 /**
8  * @file
9  * @brief Connectivity implementation for drivers exposing the wifi_mgmt API
10  */
11 
12 #ifndef ZEPHYR_INCLUDE_CONN_MGR_CONNECTIVITY_WIFI_MGMT_H_
13 #define ZEPHYR_INCLUDE_CONN_MGR_CONNECTIVITY_WIFI_MGMT_H_
14 
15 #include <zephyr/net/conn_mgr_connectivity_impl.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 /**
22  * Context type for generic WIFI_MGMT connectivity backend.
23  */
24 #define CONNECTIVITY_WIFI_MGMT_CTX_TYPE void *
25 
26 /**
27  * @brief Associate the generic WIFI_MGMT implementation with a network device
28  *
29  * @param dev_id Network device id.
30  */
31 #define CONNECTIVITY_WIFI_MGMT_BIND(dev_id)				  \
32 	IF_ENABLED(CONFIG_NET_CONNECTION_MANAGER_CONNECTIVITY_WIFI_MGMT,  \
33 		   (CONN_MGR_CONN_DECLARE_PUBLIC(CONNECTIVITY_WIFI_MGMT); \
34 		    CONN_MGR_BIND_CONN(dev_id, CONNECTIVITY_WIFI_MGMT)))
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif /* ZEPHYR_INCLUDE_CONN_MGR_CONNECTIVITY_WIFI_MGMT_H_ */
41