Morse Micro IoT SDK  2.9.7
mmwlan_softap_args Struct Reference

Detailed Description

Arguments data structure for mmwlan_softap_enable().

This structure should be initialized using MMWLAN_SOFTAP_ARGS_INIT for sensible default values, particularly for forward compatibility with new releases that may add new fields to the struct. For example:

enum mmwlan_status status;
// HERE: initialize arguments
status = mmwlan_softap_enable(&softap_args);
#define MMWLAN_SOFTAP_ARGS_INIT
Initializer for mmwlan_softap_args.
Definition: mmwlan.h:1405
enum mmwlan_status mmwlan_softap_enable(const struct mmwlan_softap_args *args)
Enable Soft AP mode.
mmwlan_status
Enumeration of status return codes.
Definition: mmwlan.h:50
Arguments data structure for mmwlan_softap_enable().
Definition: mmwlan.h:1324
Warning
BETA NOTICE: This is beta API that is under development; breaking changes may be introduced in future releases.

Definition at line 1323 of file mmwlan.h.

#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_softap_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...
 

Field Documentation

◆ beacon_interval_tus

uint16_t mmwlan_softap_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_SOFTAP_BEACON_INTERVAL_TUS, will be used.

Definition at line 1369 of file mmwlan.h.

◆ bssid

uint8_t mmwlan_softap_args::bssid[MMWLAN_MAC_ADDR_LEN]

Optional BSSID of the AP.

If zero then the devices MAC address will be used.

Warning
The MAC address selection behavior may change in future.

Definition at line 1334 of file mmwlan.h.

◆ dtim_period

uint16_t mmwlan_softap_args::dtim_period

The Delivery Traffic Indication Map (DTIM) interval in beacons.

If zero then the default value, MMWLAN_DEFAULT_SOFTAP_DTIM_PERIOD, will be used.

Definition at line 1375 of file mmwlan.h.

◆ op_class

uint16_t mmwlan_softap_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().

Definition at line 1355 of file mmwlan.h.

◆ passphrase

char mmwlan_softap_args::passphrase[MMWLAN_PASSPHRASE_MAXLEN+1]

Passphrase (only used if security_type is MMWLAN_SAE, otherwise ignored.

Definition at line 1338 of file mmwlan.h.

◆ passphrase_len

uint16_t mmwlan_softap_args::passphrase_len

Length of passphrase.

May be zero if passphrase is null-terminated.

Definition at line 1340 of file mmwlan.h.

◆ pmf_mode

enum mmwlan_pmf_mode mmwlan_softap_args::pmf_mode

Protected Management Frame mode to use (802.11w)

Definition at line 1342 of file mmwlan.h.

◆ pri_1mhz_chan_idx

uint8_t mmwlan_softap_args::pri_1mhz_chan_idx

Index of the primary 1 Mhz channel within the operating channel.

This must be less than the bandwidth of the operating channel.

Definition at line 1387 of file mmwlan.h.

◆ pri_bw_mhz

uint8_t mmwlan_softap_args::pri_bw_mhz

Bandwidth to use for the primary channel.

This may be set to 0 to automatically select the highest primary bandwidth supported by the operating channel.

Note
This must not be greater than the bandwidth of the operating channel.

Definition at line 1382 of file mmwlan.h.

◆ s1g_chan_num

uint16_t mmwlan_softap_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().

Definition at line 1363 of file mmwlan.h.

◆ sae_owe_ec_groups

int mmwlan_softap_args::sae_owe_ec_groups[MMWLAN_MAX_EC_GROUPS]

Preference list of enabled elliptic curve groups for SAE and OWE.

By default (if this parameter is not set), the mandatory group 19 is preferred.

Definition at line 1347 of file mmwlan.h.

◆ security_type

enum mmwlan_security_type mmwlan_softap_args::security_type

Type of security to use.

If MMWLAN_SAE then a passphrase must be specified.

Definition at line 1336 of file mmwlan.h.

◆ ssid

uint8_t mmwlan_softap_args::ssid[MMWLAN_SSID_MAXLEN]

SSID of the AP.

Definition at line 1326 of file mmwlan.h.

◆ ssid_len

uint16_t mmwlan_softap_args::ssid_len

Length of the SSID.

Definition at line 1328 of file mmwlan.h.

◆ sta_status_cb

mmwlan_softap_sta_status_cb_t mmwlan_softap_args::sta_status_cb

Optional callback to be invoked when the status of a connected STA changes.

May be set to NULL.

Definition at line 1392 of file mmwlan.h.

◆ sta_status_cb_arg

void* mmwlan_softap_args::sta_status_cb_arg

Optional opaque argument to be passed to sta_status_cb.

May optionally be NULL. The value of this parameter must remain valid during the lifetime of the Soft AP.

Definition at line 1397 of file mmwlan.h.


The documentation for this struct was generated from the following file: