Zephyr API Documentation
3.6.0
A Scalable Open Source RTOS
|
|
3.6.0 |
Wi-Fi Network manager API. More...
Data Structures | |
struct | wifi_nm_instance |
WiFi Network manager instance. More... | |
Macros | |
#define | WIFI_NM_NAME(name) wifi_nm_##name |
#define | DEFINE_WIFI_NM_INSTANCE(_name, _ops) |
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.
#define DEFINE_WIFI_NM_INSTANCE | ( | _name, | |
_ops | |||
) |
#include <zephyr/net/wifi_nm.h>
#define WIFI_NM_NAME | ( | name | ) | wifi_nm_##name |
#include <zephyr/net/wifi_nm.h>
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 |