Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
Wi-Fi Network manager API. More...
Data Structures | |
struct | wifi_nm_instance |
WiFi Network manager instance. More... | |
Functions | |
struct wifi_nm_instance * | wifi_nm_get_instance (const char *name) |
Get a Network manager instance for a given name. | |
struct wifi_nm_instance * | wifi_nm_get_instance_iface (struct net_if *iface) |
Get a Network manager instance for a given interface. | |
int | wifi_nm_register_mgd_iface (struct wifi_nm_instance *nm, struct net_if *iface) |
Register a managed interface. | |
int | wifi_nm_unregister_mgd_iface (struct wifi_nm_instance *nm, struct net_if *iface) |
Unregister managed interface. | |
Wi-Fi Network manager API.
struct wifi_nm_instance * wifi_nm_get_instance | ( | const char * | name | ) |
#include <zephyr/net/wifi_nm.h>
Get a Network manager instance for a given name.
name | Name of the Network manager instance |
struct wifi_nm_instance * wifi_nm_get_instance_iface | ( | struct net_if * | iface | ) |
#include <zephyr/net/wifi_nm.h>
Get a Network manager instance for a given interface.
iface | Interface |
int wifi_nm_register_mgd_iface | ( | struct wifi_nm_instance * | nm, |
struct net_if * | iface | ||
) |
#include <zephyr/net/wifi_nm.h>
Register a managed interface.
nm | Pointer to Network manager instance |
iface | Managed interface |
0 | If successful. |
-EINVAL | If invalid parameters were passed. |
-ENOTSUP | If the interface is not a Wi-Fi interface. |
-ENOMEM | If the maximum number of managed interfaces has been reached. |
int wifi_nm_unregister_mgd_iface | ( | struct wifi_nm_instance * | nm, |
struct net_if * | iface | ||
) |
#include <zephyr/net/wifi_nm.h>
Unregister managed interface.
nm | Pointer to Network manager instance |
iface | Interface |