12#ifndef ZEPHYR_INCLUDE_NET_WIFI_MGMT_H_
13#define ZEPHYR_INCLUDE_NET_WIFI_MGMT_H_
24#define _NET_WIFI_LAYER NET_MGMT_LAYER_L2
25#define _NET_WIFI_CODE 0x156
26#define _NET_WIFI_BASE (NET_MGMT_IFACE_BIT | \
27 NET_MGMT_LAYER(_NET_WIFI_LAYER) | \
28 NET_MGMT_LAYER_CODE(_NET_WIFI_CODE))
29#define _NET_WIFI_EVENT (_NET_WIFI_BASE | NET_MGMT_EVENT_BIT)
39#define NET_REQUEST_WIFI_SCAN \
40 (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_SCAN)
44#define NET_REQUEST_WIFI_CONNECT \
45 (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_CONNECT)
49#define NET_REQUEST_WIFI_DISCONNECT \
50 (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_DISCONNECT)
54#define NET_REQUEST_WIFI_AP_ENABLE \
55 (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_ENABLE)
59#define NET_REQUEST_WIFI_AP_DISABLE \
60 (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_DISABLE)
71#define NET_EVENT_WIFI_SCAN_RESULT \
72 (_NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_SCAN_RESULT)
74#define NET_EVENT_WIFI_SCAN_DONE \
75 (_NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_SCAN_DONE)
77#define NET_EVENT_WIFI_CONNECT_RESULT \
78 (_NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_CONNECT_RESULT)
80#define NET_EVENT_WIFI_DISCONNECT_RESULT \
81 (_NET_WIFI_EVENT | NET_EVENT_WIFI_CMD_DISCONNECT_RESULT)
143#ifdef CONFIG_WIFI_OFFLOAD
145void wifi_mgmt_raise_connect_result_event(
struct net_if *iface,
int status);
146void wifi_mgmt_raise_disconnect_result_event(
struct net_if *iface,
int status);
void
Definition: eswifi_shell.c:15
#define NET_MGMT_DEFINE_REQUEST_HANDLER(_mgmt_request)
Definition: net_mgmt.h:95
Public API for network interface.
Network Management API public header.
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__INT8_TYPE__ int8_t
Definition: stdint.h:42
Runtime device structure (in ROM) per driver instance.
Definition: device.h:367
Network Interface structure.
Definition: net_if.h:468
Definition: wifi_mgmt.h:116
struct net_if_api iface_api
Definition: wifi_mgmt.h:123
int(* scan)(const struct device *dev, scan_result_cb_t cb)
Definition: wifi_mgmt.h:129
int(* disconnect)(const struct device *dev)
Definition: wifi_mgmt.h:132
int(* ap_disable)(const struct device *dev)
Definition: wifi_mgmt.h:135
int(* ap_enable)(const struct device *dev, struct wifi_connect_req_params *params)
Definition: wifi_mgmt.h:133
int(* connect)(const struct device *dev, struct wifi_connect_req_params *params)
Definition: wifi_mgmt.h:130
Definition: wifi_mgmt.h:96
enum wifi_security_type security
Definition: wifi_mgmt.h:104
uint8_t * psk
Definition: wifi_mgmt.h:100
uint8_t channel
Definition: wifi_mgmt.h:103
uint8_t ssid_length
Definition: wifi_mgmt.h:98
uint8_t psk_length
Definition: wifi_mgmt.h:101
uint8_t * ssid
Definition: wifi_mgmt.h:97
Definition: wifi_mgmt.h:87
uint8_t ssid_length
Definition: wifi_mgmt.h:89
int8_t rssi
Definition: wifi_mgmt.h:93
uint8_t channel
Definition: wifi_mgmt.h:91
uint8_t ssid[WIFI_SSID_MAX_LEN]
Definition: wifi_mgmt.h:88
enum wifi_security_type security
Definition: wifi_mgmt.h:92
Definition: wifi_mgmt.h:107
int status
Definition: wifi_mgmt.h:108
General WiFi Definitions.
#define WIFI_SSID_MAX_LEN
Definition: wifi.h:20
wifi_security_type
Definition: wifi.h:15
#define NET_REQUEST_WIFI_SCAN
Definition: wifi_mgmt.h:39
#define NET_REQUEST_WIFI_AP_ENABLE
Definition: wifi_mgmt.h:54
#define NET_REQUEST_WIFI_DISCONNECT
Definition: wifi_mgmt.h:49
net_request_wifi_cmd
Definition: wifi_mgmt.h:31
@ NET_REQUEST_WIFI_CMD_AP_ENABLE
Definition: wifi_mgmt.h:35
@ NET_REQUEST_WIFI_CMD_SCAN
Definition: wifi_mgmt.h:32
@ NET_REQUEST_WIFI_CMD_AP_DISABLE
Definition: wifi_mgmt.h:36
@ NET_REQUEST_WIFI_CMD_CONNECT
Definition: wifi_mgmt.h:33
@ NET_REQUEST_WIFI_CMD_DISCONNECT
Definition: wifi_mgmt.h:34
#define NET_REQUEST_WIFI_CONNECT
Definition: wifi_mgmt.h:44
net_event_wifi_cmd
Definition: wifi_mgmt.h:64
@ NET_EVENT_WIFI_CMD_SCAN_RESULT
Definition: wifi_mgmt.h:65
@ NET_EVENT_WIFI_CMD_DISCONNECT_RESULT
Definition: wifi_mgmt.h:68
@ NET_EVENT_WIFI_CMD_SCAN_DONE
Definition: wifi_mgmt.h:66
@ NET_EVENT_WIFI_CMD_CONNECT_RESULT
Definition: wifi_mgmt.h:67
void(* scan_result_cb_t)(struct net_if *iface, int status, struct wifi_scan_result *entry)
Definition: wifi_mgmt.h:113
#define NET_REQUEST_WIFI_AP_DISABLE
Definition: wifi_mgmt.h:59