API for configuration and control of Access Point (AP) mode.
- Warning
- BETA NOTICE: This is beta API that is under development; breaking changes may be introduced in future releases.
◆ MMWLAN_AP_ARGS_INIT
| #define MMWLAN_AP_ARGS_INIT |
Value: { \
.ssid = { 0 }, \
.ssid_len = 0, \
.bssid = { 0 }, \
.passphrase = { 0 }, \
.passphrase_len = 0, \
.sae_owe_ec_groups = { 0 }, \
.op_class = 0, \
.s1g_chan_num = 0, \
.beacon_interval_tus = 0, \
.dtim_period = 0, \
.pri_bw_mhz = 0, \
.pri_1mhz_chan_idx = 0, \
.sta_status_cb = NULL, \
.sta_status_cb_arg = NULL, \
.max_stas = 0, \
}
@ MMWLAN_PMF_REQUIRED
Protected management frames must be used.
@ MMWLAN_OPEN
Open (no security)
Initializer for mmwlan_ap_args.
- See also
- mmwlan_ap_args
Definition at line 2409 of file mmwlan.h.
◆ MMWLAN_AP_MAX_STAS_LIMIT
| #define MMWLAN_AP_MAX_STAS_LIMIT (20) |
Maximum limit of connected stations.
Definition at line 2242 of file mmwlan.h.
◆ MMWLAN_DEFAULT_AP_BEACON_INTERVAL_TUS
| #define MMWLAN_DEFAULT_AP_BEACON_INTERVAL_TUS (100) |
Default Beacon Interval in AP mode (in TUs).
Definition at line 2233 of file mmwlan.h.
◆ MMWLAN_DEFAULT_AP_DTIM_PERIOD
| #define MMWLAN_DEFAULT_AP_DTIM_PERIOD (1) |
Default DTIM period in AP mode.
Definition at line 2236 of file mmwlan.h.
◆ MMWLAN_DEFAULT_AP_MAX_STAS
| #define MMWLAN_DEFAULT_AP_MAX_STAS (4) |
Default limit of connected stations.
Definition at line 2239 of file mmwlan.h.
◆ mmwlan_ap_sta_status_cb_t
| typedef void(* mmwlan_ap_sta_status_cb_t) (const struct mmwlan_ap_sta_status *sta_status, void *arg) |
Type definition for callback to be invoked on change in status of a connected STA.
- Parameters
-
| sta_status | The STA status information. |
| arg | Opaque argument that was provided when the callback was registered. |
- Warning
- BETA NOTICE: This is beta API that is under development; breaking changes may be introduced in future releases.
Definition at line 2285 of file mmwlan.h.
◆ mmwlan_ap_sta_state
Enumeration of STA states.
- Warning
- BETA NOTICE: This is beta API that is under development; breaking changes may be introduced in future releases.
| Enumerator |
|---|
| MMWLAN_AP_STA_UNKNOWN | The STA is not known.
|
| MMWLAN_AP_STA_ASSOCIATED | The STA is associated but not yet authorized for data transmission.
|
| MMWLAN_AP_STA_AUTHORIZED | The STA is fully connected and authorized for data transmission.
|
Definition at line 2250 of file mmwlan.h.
◆ mmwlan_ap_disable()
Disable AP mode.
This will disconnect any stations from the AP. It will also shut down the transceiver if nothing else is holding it open. Note that if the transceiver was booted by mmwlan_boot() then this function will not shut down the transceiver.
- Returns
- MMWLAN_SUCCESS if successful and the transceiver was also shut down, MMWLAN_SHUTDOWN_BLOCKED if successful and the transceiver was not shut down, else an appropriate error code.
- Warning
- BETA NOTICE: This is beta API that is under development; breaking changes may be introduced in future releases.
◆ mmwlan_ap_enable()
Enable AP mode.
This will power on the transceiver then start Access Point mode.
- Warning
- Channel list must be set before enabling station mode. mmwlan_set_channel_list().
-
OWE security is not currently supported for AP mode.
- Parameters
-
- Returns
- MMWLAN_SUCCESS on success, else an appropriate error code.
- Warning
- BETA NOTICE: This is beta API that is under development; breaking changes may be introduced in future releases.
◆ mmwlan_ap_get_bssid()
◆ mmwlan_ap_get_sta_status()
Gets the STA status of the STA with the given MAC address.
- Parameters
-
| [in] | sta_addr | Address of the STA to get the status of. |
| [out] | sta_status | STA status structure to be filled out by this function. May be NULL. |
- Returns
- MMWLAN_SUCCESS on success, MMWLAN_NOT_FOUND if no STA record was found matching the given MAC address, or another error code as appropriate.
- Warning
- BETA NOTICE: This is beta API that is under development; breaking changes may be introduced in future releases.