Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Wi-Fi Network manager API . More...
Data Structures | |
struct | wifi_nm_mgd_iface |
WiFi Network Managed interfaces. More... | |
struct | wifi_nm_instance |
WiFi Network manager instance. More... | |
Enumerations | |
enum | wifi_nm_iface_type { WIFI_TYPE_STA = 0 , WIFI_TYPE_SAP } |
Types of Wi-Fi interface. 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. | |
unsigned char | wifi_nm_get_type_iface (struct net_if *iface) |
Get a Wi-Fi type for a given interface. | |
bool | wifi_nm_iface_is_sta (struct net_if *iface) |
Check if the interface is a Wi-Fi station interface. | |
bool | wifi_nm_iface_is_sap (struct net_if *iface) |
Check if the interface is a Wi-Fi Soft AP interface. | |
int | wifi_nm_register_mgd_iface (struct wifi_nm_instance *nm, struct net_if *iface) |
Register a managed interface. | |
int | wifi_nm_register_mgd_type_iface (struct wifi_nm_instance *nm, enum wifi_nm_iface_type type, 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 .
enum wifi_nm_iface_type |
#include <zephyr/net/wifi_nm.h>
Types of Wi-Fi interface.
Enumerator | |
---|---|
WIFI_TYPE_STA | IEEE 802.11 Wi-Fi Station. |
WIFI_TYPE_SAP | IEEE 802.11 Wi-Fi Soft AP. |
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 |
#include <zephyr/net/wifi_nm.h>
Check if the interface is a Wi-Fi Soft AP interface.
iface | Interface |
true | If the interface is a Wi-Fi Soft AP interface. |
#include <zephyr/net/wifi_nm.h>
Check if the interface is a Wi-Fi station interface.
iface | Interface |
true | If the interface is a Wi-Fi station 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_register_mgd_type_iface | ( | struct wifi_nm_instance * | nm, |
enum wifi_nm_iface_type | type, | ||
struct net_if * | iface ) |
#include <zephyr/net/wifi_nm.h>
Register a managed interface.
nm | Pointer to Network manager instance |
type | Wi-Fi type |
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 |