Wi-Fi management API.
More...
#include <wifi_mgmt.h>
|
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(* | 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(* | 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.
|
|
◆ ap_disable
int(* wifi_mgmt_ops::ap_disable) (const struct device *dev) |
Disable AP mode.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
- Returns
- 0 if ok, < 0 if error
◆ ap_enable
Enable AP mode.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
params | AP mode parameters |
- Returns
- 0 if ok, < 0 if error
◆ channel
Set or get current channel of operation.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
channel | settings |
- Returns
- 0 if ok, < 0 if error
◆ connect
Connect to a Wi-Fi network.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
params | Connect parameters |
- Returns
- 0 if ok, < 0 if error
◆ disconnect
int(* wifi_mgmt_ops::disconnect) (const struct device *dev) |
Disconnect from a Wi-Fi network.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
- Returns
- 0 if ok, < 0 if error
◆ filter
Set or get packet filter settings for monitor and promiscuous modes.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
packet | filter settings |
- Returns
- 0 if ok, < 0 if error
◆ get_power_save_config
int(* wifi_mgmt_ops::get_power_save_config) (const struct device *dev, struct wifi_ps_config *config) |
Get power save config.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
config | Power save config |
- Returns
- 0 if ok, < 0 if error
◆ get_stats
Get Wi-Fi statistics.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
stats | Wi-Fi statistics |
- Returns
- 0 if ok, < 0 if error
◆ iface_status
Get interface status.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
status | Interface status |
- Returns
- 0 if ok, < 0 if error
◆ mode
Set or get mode of operation.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
mode | settings |
- Returns
- 0 if ok, < 0 if error
◆ reg_domain
Set or get regulatory domain.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
reg_domain | Regulatory domain |
- Returns
- 0 if ok, < 0 if error
◆ scan
Scan for Wi-Fi networks.
- Parameters
-
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. |
- Returns
- 0 if ok, < 0 if error
◆ set_power_save
Set power save status.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
params | Power save parameters |
- Returns
- 0 if ok, < 0 if error
◆ set_twt
Setup or teardown TWT flow.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
params | TWT parameters |
- Returns
- 0 if ok, < 0 if error
The documentation for this struct was generated from the following file: