Wi-Fi Network manager API .
More...
Wi-Fi Network manager API .
- Since
- 3.5
- Version
- 0.8.0
◆ 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.
|
◆ wifi_nm_get_instance()
#include <zephyr/net/wifi_nm.h>
Get a Network manager instance for a given name.
- Parameters
-
name | Name of the Network manager instance |
◆ wifi_nm_get_instance_iface()
◆ wifi_nm_get_type_iface()
◆ wifi_nm_iface_is_sap()
bool wifi_nm_iface_is_sap |
( |
struct net_if * | iface | ) |
|
#include <zephyr/net/wifi_nm.h>
Check if the interface is a Wi-Fi Soft AP interface.
- Parameters
-
- Return values
-
true | If the interface is a Wi-Fi Soft AP interface. |
◆ wifi_nm_iface_is_sta()
bool wifi_nm_iface_is_sta |
( |
struct net_if * | iface | ) |
|
#include <zephyr/net/wifi_nm.h>
Check if the interface is a Wi-Fi station interface.
- Parameters
-
- Return values
-
true | If the interface is a Wi-Fi station interface. |
◆ wifi_nm_register_mgd_iface()
#include <zephyr/net/wifi_nm.h>
Register a managed interface.
- Parameters
-
nm | Pointer to Network manager instance |
iface | Managed interface |
- Return values
-
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. |
◆ wifi_nm_register_mgd_type_iface()
#include <zephyr/net/wifi_nm.h>
Register a managed interface.
- Parameters
-
nm | Pointer to Network manager instance |
type | Wi-Fi type |
iface | Managed interface |
- Return values
-
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. |
◆ wifi_nm_unregister_mgd_iface()
#include <zephyr/net/wifi_nm.h>
Unregister managed interface.
- Parameters
-
nm | Pointer to Network manager instance |
iface | Interface |
- Returns
- int 0 for OK; -EINVAL for invalid parameters; -ENOENT if interface is not registered with the Network manager.