Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
Wi-Fi management API. More...
#include <wifi_mgmt.h>
Data Fields | |
int(* | scan )(const struct device *dev, struct wifi_scan_params *params, scan_result_cb_t cb) |
Scan for Wi-Fi networks. | |
int(* | connect )(const struct device *dev, struct wifi_connect_req_params *params) |
Connect to a Wi-Fi network. | |
int(* | disconnect )(const struct device *dev) |
Disconnect from a Wi-Fi network. | |
int(* | ap_enable )(const struct device *dev, struct wifi_connect_req_params *params) |
Enable AP mode. | |
int(* | ap_disable )(const struct device *dev) |
Disable AP mode. | |
int(* | ap_sta_disconnect )(const struct device *dev, const uint8_t *mac) |
Disconnect a STA from AP. | |
int(* | iface_status )(const struct device *dev, struct wifi_iface_status *status) |
Get interface status. | |
int(* | get_stats )(const struct device *dev, struct net_stats_wifi *stats) |
Get Wi-Fi statistics. | |
int(* | reset_stats )(const struct device *dev) |
Reset Wi-Fi statistics. | |
int(* | cfg_11k )(const struct device *dev, struct wifi_11k_params *params) |
Set or get 11K status. | |
int(* | send_11k_neighbor_request )(const struct device *dev, struct wifi_11k_params *params) |
Send 11k neighbor request. | |
int(* | set_power_save )(const struct device *dev, struct wifi_ps_params *params) |
Set power save status. | |
int(* | set_twt )(const struct device *dev, struct wifi_twt_params *params) |
Setup or teardown TWT flow. | |
int(* | get_power_save_config )(const struct device *dev, struct wifi_ps_config *config) |
Get power save config. | |
int(* | reg_domain )(const struct device *dev, struct wifi_reg_domain *reg_domain) |
Set or get regulatory domain. | |
int(* | filter )(const struct device *dev, struct wifi_filter_info *filter) |
Set or get packet filter settings for monitor and promiscuous modes. | |
int(* | mode )(const struct device *dev, struct wifi_mode_info *mode) |
Set or get mode of operation. | |
int(* | channel )(const struct device *dev, struct wifi_channel_info *channel) |
Set or get current channel of operation. | |
int(* | get_version )(const struct device *dev, struct wifi_version *params) |
Get Version of WiFi driver and Firmware. | |
int(* | get_conn_params )(const struct device *dev, struct wifi_connect_req_params *params) |
Get Wi-Fi connection parameters recently used. | |
int(* | set_rts_threshold )(const struct device *dev, unsigned int rts_threshold) |
Set RTS threshold value. | |
int(* | ap_config_params )(const struct device *dev, struct wifi_ap_config_params *params) |
Configure AP parameter. | |
int(* | pmksa_flush )(const struct device *dev) |
Flush PMKSA cache entries. | |
int(* | get_rts_threshold )(const struct device *dev, unsigned int *rts_threshold) |
Set Wi-Fi enterprise mode CA/client Cert and key. | |
int(* | wps_config )(const struct device *dev, struct wifi_wps_config_params *params) |
Start a WPS PBC/PIN connection. | |
int(* | candidate_scan )(const struct device *dev, struct wifi_scan_params *params) |
Trigger candidate scan. | |
int(* | start_11r_roaming )(const struct device *dev) |
Start 11r roaming. | |
Wi-Fi management API.
int(* wifi_mgmt_ops::ap_config_params) (const struct device *dev, struct wifi_ap_config_params *params) |
Configure AP parameter.
dev | Pointer to the device structure for the driver instance. |
params | AP mode parameter configuration parameter info |
int(* wifi_mgmt_ops::ap_disable) (const struct device *dev) |
Disable AP mode.
dev | Pointer to the device structure for the driver instance. |
int(* wifi_mgmt_ops::ap_enable) (const struct device *dev, struct wifi_connect_req_params *params) |
Enable AP mode.
dev | Pointer to the device structure for the driver instance. |
params | AP mode parameters |
Disconnect a STA from AP.
dev | Pointer to the device structure for the driver instance. |
mac | MAC address of the STA to disconnect |
int(* wifi_mgmt_ops::candidate_scan) (const struct device *dev, struct wifi_scan_params *params) |
Trigger candidate scan.
dev | Pointer to the device structure for the driver instance |
params | Scan parameters |
int(* wifi_mgmt_ops::cfg_11k) (const struct device *dev, struct wifi_11k_params *params) |
Set or get 11K status.
dev | Pointer to the device structure for the driver instance. |
params | 11k parameters |
int(* wifi_mgmt_ops::channel) (const struct device *dev, struct wifi_channel_info *channel) |
Set or get current channel of operation.
dev | Pointer to the device structure for the driver instance. |
channel | settings |
int(* wifi_mgmt_ops::connect) (const struct device *dev, struct wifi_connect_req_params *params) |
Connect to a Wi-Fi network.
dev | Pointer to the device structure for the driver instance. |
params | Connect parameters |
int(* wifi_mgmt_ops::disconnect) (const struct device *dev) |
Disconnect from a Wi-Fi network.
dev | Pointer to the device structure for the driver instance. |
int(* wifi_mgmt_ops::filter) (const struct device *dev, struct wifi_filter_info *filter) |
Set or get packet filter settings for monitor and promiscuous modes.
dev | Pointer to the device structure for the driver instance. |
packet | filter settings |
int(* wifi_mgmt_ops::get_conn_params) (const struct device *dev, struct wifi_connect_req_params *params) |
Get Wi-Fi connection parameters recently used.
dev | Pointer to the device structure for the driver instance |
params | the Wi-Fi connection parameters recently used |
int(* wifi_mgmt_ops::get_power_save_config) (const struct device *dev, struct wifi_ps_config *config) |
Get power save config.
dev | Pointer to the device structure for the driver instance. |
config | Power save config |
Set Wi-Fi enterprise mode CA/client Cert and key.
dev | Pointer to the device structure for the driver instance. |
creds | Pointer to the CA/client Cert and key. |
dev | Pointer to the device structure for the driver instance. |
rts_threshold | Pointer to the RTS threshold value. |
int(* wifi_mgmt_ops::get_stats) (const struct device *dev, struct net_stats_wifi *stats) |
Get Wi-Fi statistics.
dev | Pointer to the device structure for the driver instance. |
stats | Wi-Fi statistics |
int(* wifi_mgmt_ops::get_version) (const struct device *dev, struct wifi_version *params) |
Get Version of WiFi driver and Firmware.
The driver that implements the get_version function must not use stack to allocate the version information pointers that are returned as params struct members. The version pointer parameters should point to a static memory either in ROM (preferred) or in RAM.
dev | Pointer to the device structure for the driver instance |
params | Version parameters |
int(* wifi_mgmt_ops::iface_status) (const struct device *dev, struct wifi_iface_status *status) |
Get interface status.
dev | Pointer to the device structure for the driver instance. |
status | Interface status |
int(* wifi_mgmt_ops::mode) (const struct device *dev, struct wifi_mode_info *mode) |
Set or get mode of operation.
dev | Pointer to the device structure for the driver instance. |
mode | settings |
int(* wifi_mgmt_ops::pmksa_flush) (const struct device *dev) |
Flush PMKSA cache entries.
dev | Pointer to the device structure for the driver instance. |
int(* wifi_mgmt_ops::reg_domain) (const struct device *dev, struct wifi_reg_domain *reg_domain) |
Set or get regulatory domain.
dev | Pointer to the device structure for the driver instance. |
reg_domain | Regulatory domain |
int(* wifi_mgmt_ops::reset_stats) (const struct device *dev) |
Reset Wi-Fi statistics.
dev | Pointer to the device structure for the driver instance. |
int(* wifi_mgmt_ops::scan) (const struct device *dev, struct wifi_scan_params *params, scan_result_cb_t cb) |
Scan for Wi-Fi networks.
dev | Pointer to the device structure for the driver instance. |
params | Scan parameters |
cb | Callback to be called for each result cb parameter is the cb that should be called for each result by the driver. The wifi mgmt part will take care of raising the necessary event etc. |
int(* wifi_mgmt_ops::send_11k_neighbor_request) (const struct device *dev, struct wifi_11k_params *params) |
Send 11k neighbor request.
dev | Pointer to the device structure for the driver instance. |
params | 11k parameters |
int(* wifi_mgmt_ops::set_power_save) (const struct device *dev, struct wifi_ps_params *params) |
Set power save status.
dev | Pointer to the device structure for the driver instance. |
params | Power save parameters |
Set RTS threshold value.
dev | Pointer to the device structure for the driver instance. |
RTS | threshold value |
int(* wifi_mgmt_ops::set_twt) (const struct device *dev, struct wifi_twt_params *params) |
Setup or teardown TWT flow.
dev | Pointer to the device structure for the driver instance. |
params | TWT parameters |
int(* wifi_mgmt_ops::start_11r_roaming) (const struct device *dev) |
Start 11r roaming.
dev | Pointer to the device structure for the driver instance |
int(* wifi_mgmt_ops::wps_config) (const struct device *dev, struct wifi_wps_config_params *params) |
Start a WPS PBC/PIN connection.
dev | Pointer to the device structure for the driver instance |
params | wps operarion parameters |