![]() |
Morse Micro IoT SDK
2.11.2
|
Arguments data structure for mmwlan_ap_enable().
This structure should be initialized using MMWLAN_AP_ARGS_INIT for sensible default values, particularly for forward compatibility with new releases that may add new fields to the struct. For example:
#include <mmwlan.h>
Data Fields | |
| uint8_t | ssid [MMWLAN_SSID_MAXLEN] |
| SSID of the AP. More... | |
| uint16_t | ssid_len |
| Length of the SSID. More... | |
| uint8_t | bssid [MMWLAN_MAC_ADDR_LEN] |
| Optional BSSID of the AP. More... | |
| enum mmwlan_security_type | security_type |
| Type of security to use. More... | |
| char | passphrase [MMWLAN_PASSPHRASE_MAXLEN+1] |
Passphrase (only used if security_type is MMWLAN_SAE, otherwise ignored. More... | |
| uint16_t | passphrase_len |
Length of passphrase. More... | |
| enum mmwlan_pmf_mode | pmf_mode |
| Protected Management Frame mode to use (802.11w) More... | |
| int | sae_owe_ec_groups [MMWLAN_MAX_EC_GROUPS] |
| Preference list of enabled elliptic curve groups for SAE and OWE. More... | |
| uint16_t | op_class |
| Operating Class to use (S1G or Global). More... | |
| uint16_t | s1g_chan_num |
| S1G channel number of the channel to use. More... | |
| uint16_t | beacon_interval_tus |
| The Beacon period in units of TUs. More... | |
| uint16_t | dtim_period |
| The Delivery Traffic Indication Map (DTIM) interval in beacons. More... | |
| uint8_t | pri_bw_mhz |
| Bandwidth to use for the primary channel. More... | |
| uint8_t | pri_1mhz_chan_idx |
| Index of the primary 1 Mhz channel within the operating channel. More... | |
| mmwlan_ap_sta_status_cb_t | sta_status_cb |
| Optional callback to be invoked when the status of a connected STA changes. More... | |
| void * | sta_status_cb_arg |
Optional opaque argument to be passed to sta_status_cb. More... | |
| uint8_t | max_stas |
| Maximum number of stations that can connect to the AP simultaneously. More... | |
| bool | async_start |
| Whether the function should return immediately instead of waiting for the AP interface to be fully started before returning. More... | |
| bool mmwlan_ap_args::async_start |
Whether the function should return immediately instead of waiting for the AP interface to be fully started before returning.
When returning immediately, the AP interface will not be immediately active and functions such as mmwlan_ap_get_bssid will return MMWLAN_UNAVAILABLE until active.
| uint16_t mmwlan_ap_args::beacon_interval_tus |
The Beacon period in units of TUs.
A TU is equal to 1.024 ms.
If zero then the default value, MMWLAN_DEFAULT_AP_BEACON_INTERVAL_TUS, will be used.
| uint8_t mmwlan_ap_args::bssid[MMWLAN_MAC_ADDR_LEN] |
| uint16_t mmwlan_ap_args::dtim_period |
The Delivery Traffic Indication Map (DTIM) interval in beacons.
If zero then the default value, MMWLAN_DEFAULT_AP_DTIM_PERIOD, will be used.
| uint8_t mmwlan_ap_args::max_stas |
Maximum number of stations that can connect to the AP simultaneously.
The maximum value limit is MMWLAN_AP_MAX_STAS_LIMIT.
If zero, the default value of MMWLAN_DEFAULT_AP_MAX_STAS will be used.
| uint16_t mmwlan_ap_args::op_class |
Operating Class to use (S1G or Global).
The combination of this field and s1g_chan_num will be used to look up the appropriate entry in the channel list, which must have been previously provided using mmwlan_set_channel_list().
| char mmwlan_ap_args::passphrase[MMWLAN_PASSPHRASE_MAXLEN+1] |
| uint16_t mmwlan_ap_args::passphrase_len |
| enum mmwlan_pmf_mode mmwlan_ap_args::pmf_mode |
| uint8_t mmwlan_ap_args::pri_1mhz_chan_idx |
| uint8_t mmwlan_ap_args::pri_bw_mhz |
| uint16_t mmwlan_ap_args::s1g_chan_num |
S1G channel number of the channel to use.
The combination of this field and op_class will be used to look up the appropriate entry in the channel list, which must have been previously provided using mmwlan_set_channel_list().
| int mmwlan_ap_args::sae_owe_ec_groups[MMWLAN_MAX_EC_GROUPS] |
| enum mmwlan_security_type mmwlan_ap_args::security_type |
| uint8_t mmwlan_ap_args::ssid[MMWLAN_SSID_MAXLEN] |
| mmwlan_ap_sta_status_cb_t mmwlan_ap_args::sta_status_cb |
| void* mmwlan_ap_args::sta_status_cb_arg |