79#define MMWLAN_SSID_MAXLEN (32)
82#define MMWLAN_PASSPHRASE_MAXLEN (100)
85#define MMWLAN_RAW_MAX_PRIORITY (7)
88#define MMWLAN_MAC_ADDR_LEN (6)
91#define MMWLAN_MAX_EC_GROUPS (4)
94#define MMWLAN_OUI_SIZE (3)
98#define DEFAULT_BGSCAN_SHORT_INTERVAL_S (0)
101#define DEFAULT_BGSCAN_THRESHOLD_DBM (0)
105#define DEFAULT_BGSCAN_LONG_INTERVAL_S (0)
108#define DEFAULT_TWT_WAKE_INTERVAL_US (300000000)
111#define DEFAULT_TWT_MIN_WAKE_DURATION_US (65280)
114#define MMWLAN_DEFAULT_SCAN_INTERVAL_BASE_S (2)
117#define MMWLAN_DEFAULT_SCAN_INTERVAL_LIMIT_S (512)
120#define MMWLAN_DEFAULT_SOFTAP_BEACON_INTERVAL_TUS (100)
123#define MMWLAN_DEFAULT_SOFTAP_DTIM_PERIOD (1)
130#define MMWLAN_STANDBY_STATUS_FRAME_USER_PAYLOAD_MAXLEN (64)
133#define MMWLAN_STANDBY_WAKE_FRAME_USER_FILTER_MAXLEN (64)
211 MMWLAN_4ADDR_MODE_DISABLED,
212 MMWLAN_4ADDR_MODE_ENABLED,
240#define MMWLAN_SKIP_OP_CLASS_CHECK -1
270#define MMWLAN_COUNTRY_CODE_LEN 3
354#define MMWLAN_MORSELIB_VERSION_MAXLEN (32)
356#define MMWLAN_FW_VERSION_MAXLEN (32)
358#define MMWLAN_CHIP_ID_STRING_MAXLEN (32)
386#define MMWLAN_BCF_BOARD_DESC_MAXLEN (31)
388#define MMWLAN_BCF_BUILD_VERSION_MAXLEN (31)
522#define MMWLAN_MINIMUM_FRAGMENT_THRESHOLD (256)
589#define MMWLAN_SCAN_CONFIG_INIT \
590 { MMWLAN_SCAN_DEFAULT_DWELL_TIME_MS, false, MMWLAN_SCAN_DEFAULT_DWELL_ON_HOME_MS }
637#define MMWLAN_TWT_CONFIG_ARGS_INIT { MMWLAN_TWT_DISABLED, DEFAULT_TWT_WAKE_INTERVAL_US, 0, 0, \
638 DEFAULT_TWT_MIN_WAKE_DURATION_US, MMWLAN_TWT_SETUP_REQUEST }
654#define MMWLAN_QOS_QUEUE_NUM_ACIS 4
760#define MMWLAN_BOOT_ARGS_INIT { 0 }
793 MMWLAN_STA_CONNECTING,
794 MMWLAN_STA_CONNECTED,
802 MMWLAN_STA_TYPE_SENSOR = 0x01,
803 MMWLAN_STA_TYPE_NON_SENSOR = 0x02,
1016#define MMWLAN_STA_ARGS_INIT \
1017 { { 0 }, 0, { 0 }, MMWLAN_OPEN, { 0 }, 0, MMWLAN_PMF_REQUIRED, -1, MMWLAN_STA_TYPE_NON_SENSOR, \
1018 { 0 }, MMWLAN_CAC_DISABLED, DEFAULT_BGSCAN_SHORT_INTERVAL_S, DEFAULT_BGSCAN_THRESHOLD_DBM, \
1019 DEFAULT_BGSCAN_LONG_INTERVAL_S, NULL, NULL, \
1020 MMWLAN_DEFAULT_SCAN_INTERVAL_BASE_S, MMWLAN_DEFAULT_SCAN_INTERVAL_LIMIT_S, \
1021 NULL, 0, NULL, NULL, MMWLAN_4ADDR_MODE_DISABLED }
1156#define MMWLAN_SCAN_DEFAULT_DWELL_TIME_MS (30)
1158#define MMWLAN_SCAN_DEFAULT_DWELL_ON_HOME_MS (200)
1161#define MMWLAN_SCAN_MIN_DWELL_TIME_MS (15)
1224#define MMWLAN_SCAN_ARGS_INIT \
1225 { MMWLAN_SCAN_DEFAULT_DWELL_TIME_MS, NULL, 0, { 0 }, 0, MMWLAN_SCAN_DEFAULT_DWELL_ON_HOME_MS }
1251#define MMWLAN_SCAN_REQ_INIT { NULL, NULL, NULL, MMWLAN_SCAN_ARGS_INIT }
1405#define MMWLAN_SOFTAP_ARGS_INIT \
1406 { { 0 }, 0, { 0 }, MMWLAN_OPEN, { 0 }, 0, MMWLAN_PMF_REQUIRED, \
1407 { 0 }, 0, 0, 0, 0, 0, 0, NULL, NULL }
1666#define MMWLAN_TCP_KEEPALIVE_OFFLOAD_ARGS_INIT { 0 }
1700#define MMWLAN_WHITELIST_FLAGS_CLEAR 0x01
2062#define MMWLAN_SET_WNM_SLEEP_ENABLED_ARGS_INIT { false, false }
2142#define MMWLAN_BEACON_VENDOR_IE_MAX_OUI_FILTERS (5)
2238#ifndef MMWLAN_DEFAULT_MIN_HEALTH_CHECK_INTERVAL_MS
2239#define MMWLAN_DEFAULT_MIN_HEALTH_CHECK_INTERVAL_MS 60000
2245#ifndef MMWLAN_DEFAULT_MAX_HEALTH_CHECK_INTERVAL_MS
2246#define MMWLAN_DEFAULT_MAX_HEALTH_CHECK_INTERVAL_MS 120000
2261 uint32_t max_interval_ms);
2316 uint8_t *payload,
unsigned payload_len,
2383#define MMWLAN_TX_DEFAULT_TIMEOUT_MS (1000)
2386#define MMWLAN_TX_DEFAULT_QOS_TID (0)
2389#define MMWLAN_MAX_QOS_TID (7)
2417#define MMWLAN_TX_METADATA_INIT { MMWLAN_TX_DEFAULT_QOS_TID }
2483 struct mmpktview *pktview;
2617 MMWLAN_RC_STATS_RATE_INFO_BW_OFFSET = 0,
2618 MMWLAN_RC_STATS_RATE_INFO_RATE_OFFSET = 4,
2619 MMWLAN_RC_STATS_RATE_INFO_GUARD_OFFSET = 8,
2784 uint8_t *response, uint32_t *response_len);
struct mmwlan_beacon_vendor_ie_filter filter
Filter structure used when calling mmwlan_update_beacon_vendor_ie_filter().
static void mmpkt_append_data(struct mmpktview *view, const uint8_t *data, uint32_t len)
Appends the given data to the data already in the mmpkt.
static void mmpkt_close(struct mmpktview **view)
Close the given view.
static struct mmpktview * mmpkt_open(struct mmpkt *mmpkt)
Open a view of the given mmpkt.
enum mmwlan_status mmwlan_update_beacon_vendor_ie_filter(const struct mmwlan_beacon_vendor_ie_filter *filter)
Function to update the filter used to pass beacon back.
#define MMWLAN_BEACON_VENDOR_IE_MAX_OUI_FILTERS
Max number of OUIs supported in vendor IE OUI filter, mmwlan_beacon_vendor_ie_filter.
void(* mmwlan_beacon_vendor_ie_filter_cb_t)(const uint8_t *ies, uint32_t ies_len, void *arg)
Beacon vendor ie filter callback function prototype.
uint8_t mmwlan_oui_t[MMWLAN_OUI_SIZE]
24-bit OUI type.
enum mmwlan_status mmwlan_softap_disable(void)
Disable Soft AP mode.
mmwlan_scan_state
Enumeration of states in Scan mode.
enum mmwlan_status mmwlan_set_listen_interval(uint16_t interval)
Sets the listen interval to be indicated in the association response frame.
void(* mmwlan_scan_rx_cb_t)(const struct mmwlan_scan_result *result, void *arg)
mmwlan scan rx callback function prototype.
enum mmwlan_status mmwlan_get_version(struct mmwlan_version *version)
Retrieve version information from morselib and the connected Morse transceiver.
int32_t mmwlan_get_rssi(void)
Gets the RSSI measured from the AP.
enum mmwlan_status mmwlan_boot(const struct mmwlan_boot_args *args)
Boot the Morse Micro transceiver and leave it in an idle state.
enum mmwlan_status mmwlan_scan_abort(void)
Abort in progress or pending scans.
void(* mmwlan_sta_event_cb_t)(const struct mmwlan_sta_event_cb_args *sta_event, void *arg)
STA event callback prototype.
enum mmwlan_status mmwlan_set_ampdu_enabled(bool ampdu_enabled)
Sets whether or not Aggregated MAC Protocol Data Unit (A-MPDU) support is enabled.
mmwlan_sta_event
Enumeration of STA events.
enum mmwlan_status mmwlan_get_duty_cycle_stats(struct mmwlan_duty_cycle_stats *stats)
Retrieve the transmit duty cycle configuration and statistics.
mmwlan_sta_state
Enumeration of states in STA mode.
enum mmwlan_sta_state mmwlan_get_sta_state(void)
Gets the current WLAN STA state.
enum mmwlan_status mmwlan_set_scan_config(const struct mmwlan_scan_config *config)
Update the scan configuration with the given settings.
void(* mmwlan_sta_status_cb_t)(enum mmwlan_sta_state sta_state)
STA status callback function prototype.
enum mmwlan_status mmwlan_set_sgi_enabled(bool sgi_enabled)
Sets whether or not Short Guard Interval (SGI) support is enabled.
#define MMWLAN_BCF_BOARD_DESC_MAXLEN
Maximum length of a BCF board description string (excluding null terminator).
enum mmwlan_status mmwlan_get_bssid(uint8_t *bssid)
Gets the BSSID of the AP to which the STA is associated.
mmwlan_station_type
Enumeration of S1G non-AP STA types.
enum mmwlan_status mmwlan_set_duty_cycle_mode(enum mmwlan_duty_cycle_mode duty_cycle_mode)
Configure the duty cycle behavior for air time distribution.
void(* mmwlan_softap_sta_status_cb_t)(const struct mmwlan_softap_sta_status *sta_status, void *arg)
Type definition for callback to be invoked on change in status of a connected STA.
enum mmwlan_status mmwlan_shutdown(void)
Perform a clean shutdown of the Morse Micro transceiver, including cleanly disconnecting from a conne...
enum mmwlan_status mmwlan_set_power_save_mode(enum mmwlan_ps_mode mode)
Sets whether or not the 802.11 power save is enabled.
#define MMWLAN_BCF_BUILD_VERSION_MAXLEN
Maximum length of a BCF build version string (excluding null terminator).
enum mmwlan_status mmwlan_twt_add_configuration(const struct mmwlan_twt_config_args *twt_config_args)
Add configurations for Target Wake Time (TWT).
enum mmwlan_status mmwlan_get_bcf_metadata(struct mmwlan_bcf_metadata *metadata)
Read the metadata from the board configuration file (BCF)r.
void(* mmwlan_scan_complete_cb_t)(enum mmwlan_scan_state scan_state, void *arg)
mmwlan scan complete callback function prototype.
enum mmwlan_status mmwlan_softap_enable(const struct mmwlan_softap_args *args)
Enable Soft AP mode.
mmwlan_mcs10_mode
Enumeration of configuration states for MCS10 behavior.
enum mmwlan_status mmwlan_sta_enable(const struct mmwlan_sta_args *args, mmwlan_sta_status_cb_t sta_status_cb)
Enable station mode.
enum mmwlan_status mmwlan_set_subbands_enabled(bool subbands_enabled)
Sets whether or not sub-band support is enabled for transmit.
enum mmwlan_status mmwlan_set_fragment_threshold(unsigned fragment_threshold)
Set the Fragmentation threshold.
enum mmwlan_status mmwlan_override_max_tx_power(uint16_t tx_power_dbm)
Override the maximum TX power.
#define MMWLAN_CHIP_ID_STRING_MAXLEN
Maximum length of the chip id string.
enum mmwlan_status mmwlan_set_rts_threshold(unsigned rts_threshold)
Set the RTS threshold.
enum mmwlan_status mmwlan_set_default_qos_queue_params(const struct mmwlan_qos_queue_params *params, size_t count)
Updates the default QoS queue configuration to the given values.
enum mmwlan_status mmwlan_dpp_stop(void)
Function to stop the DPP process.
enum mmwlan_status mmwlan_scan_request(const struct mmwlan_scan_req *scan_req)
Request a scan.
uint16_t mmwlan_get_aid(void)
Gets the station's AID.
mmwlan_dpp_pb_result
Enumeration of results for MMWLAN_DPP_EVT_PB_RESULT.
enum mmwlan_status mmwlan_sta_disable(void)
Disable station mode.
enum mmwlan_status mmwlan_get_mac_addr(uint8_t *mac_addr)
Gets the MAC address of this device.
enum mmwlan_status mmwlan_dpp_start(const struct mmwlan_dpp_args *args)
Function to start the Device Provisioning Protocol (DPP) process.
#define MMWLAN_FW_VERSION_MAXLEN
Maximum length of the firmware version string.
#define MMWLAN_MORSELIB_VERSION_MAXLEN
Maximum length of the Morselib version string.
enum mmwlan_status mmwlan_set_mcs10_mode(enum mmwlan_mcs10_mode mcs10_mode)
Configure the rate adaptation behavior around selecting MCS10.
mmwlan_dpp_event
Enumeration of DPP events.
@ MMWLAN_SCAN_SUCCESSFUL
Scan was successful and all channels were scanned.
@ MMWLAN_SCAN_RUNNING
Scanning in progress.
@ MMWLAN_SCAN_TERMINATED
Scan was incomplete.
@ MMWLAN_STA_EVT_CTRL_PORT_OPEN
The Supplicant IEEE 802.1X Controlled Port is now open meaning that the STA is fully authenticated an...
@ MMWLAN_STA_EVT_SCAN_ABORT
The STA has aborted a scan early.
@ MMWLAN_STA_EVT_CTRL_PORT_CLOSED
The Supplicant IEEE 802.1X Controlled Port is now closed.
@ MMWLAN_STA_EVT_SCAN_COMPLETE
The STA has finished a scan.
@ MMWLAN_STA_EVT_SCAN_REQUEST
The STA is starting a scan.
@ MMWLAN_STA_EVT_AUTH_REQUEST
The STA is sending an authentication request to the AP.
@ MMWLAN_STA_EVT_ASSOC_REQUEST
The STA is sending an association request to the AP.
@ MMWLAN_STA_EVT_DEAUTH_TX
The STA is sending a de-authorization request to the AP.
@ MMWLAN_MCS10_MODE_AUTO
Use MCS10 on retries instead of MCS 0 if the bandwidth is 1 MHz.
@ MMWLAN_MCS10_MODE_FORCED
Always use MCS10 instead of MCS 0 if the bandwidth is 1 MHz.
@ MMWLAN_MCS10_MODE_DISABLED
MCS10 is disabled.
@ MMWLAN_DPP_PB_RESULT_SUCCESS
DPP push button process was successful.
@ MMWLAN_DPP_PB_RESULT_SESSION_OVERLAP
A session overlap occurred during the DPP push button process.
@ MMWLAN_DPP_PB_RESULT_ERROR
An error occurred during the DPP push button process.
@ MMWLAN_DPP_EVT_PB_RESULT
DPP push button result.
static enum mmwlan_status mmwlan_tx_tid(const uint8_t *data, unsigned len, uint8_t tid)
Transmit the given packet using the given QoS Traffic ID (TID).
enum mmwlan_status mmwlan_register_rx_cb(mmwlan_rx_cb_t callback, void *arg)
Register a receive callback.
enum mmwlan_status mmwlan_tx_wait_until_ready(uint32_t timeout_ms)
Blocks until the transmit path is ready for transmit.
enum mmwlan_status mmwlan_register_rx_pkt_cb(mmwlan_rx_pkt_cb_t callback, void *arg)
Register a receive callback which consumes an mmpkt.
void(* mmwlan_link_state_cb_t)(enum mmwlan_link_state link_state, void *arg)
Prototype for link state change callbacks.
#define MMWLAN_TX_DEFAULT_QOS_TID
Default QoS Traffic ID (TID) to use for transmit (mmwlan_tx()).
enum mmwlan_status mmwlan_register_link_state_cb(mmwlan_link_state_cb_t callback, void *arg)
Register a link status callback.
enum mmwlan_status mmwlan_register_tx_flow_control_cb(mmwlan_tx_flow_control_cb_t cb, void *arg)
Register a transmit flow control callback.
mmwlan_tx_flow_control_state
Enumeration of states that can be returned by the transmit flow control callback (as registered by mm...
mmwlan_link_state
Enumeration of link states.
struct mmpkt * mmwlan_alloc_mmpkt_for_tx(uint32_t payload_len, uint8_t tid)
Allocate an mmpkt data structure for transmission with at least enough space for the given payload le...
void(* mmwlan_rx_cb_t)(uint8_t *header, unsigned header_len, uint8_t *payload, unsigned payload_len, void *arg)
Receive data packet callback function.
void(* mmwlan_tx_flow_control_cb_t)(enum mmwlan_tx_flow_control_state state, void *arg)
Transmit flow control callback function type.
static enum mmwlan_status mmwlan_tx(const uint8_t *data, unsigned len)
Transmit the given packet using MMWLAN_TX_DEFAULT_QOS_TID.
enum mmwlan_status mmwlan_tx_pkt(struct mmpkt *pkt, const struct mmwlan_tx_metadata *metadata)
Transmit the given packet.
#define MMWLAN_TX_METADATA_INIT
Initializer for mmwlan_tx_metadata.
void(* mmwlan_rx_pkt_cb_t)(struct mmpkt *mmpkt, void *arg)
Receive data packet callback function, consuming an mmpkt.
#define MMWLAN_TX_DEFAULT_TIMEOUT_MS
Default transmit timeout.
@ MMWLAN_TX_READY
Transmit data path ready for packets (not paused).
@ MMWLAN_TX_PAUSED
Transmit data path paused (blocked).
@ MMWLAN_LINK_UP
The link is up.
@ MMWLAN_LINK_DOWN
The link is down.
enum mmwlan_status mmwlan_set_health_check_interval(uint32_t min_interval_ms, uint32_t max_interval_ms)
Specify the upper and lower bound for the periodic health check interval.
void mmwlan_deinit(void)
Deinitialize the MMWLAN subsystem, freeing any allocated memory.
void mmwlan_init(void)
Initialize the MMWLAN subsystem.
enum mmwlan_status mmwlan_disable_tcp_keepalive_offload(void)
Disables the TCP keep-alive offload feature.
enum mmwlan_status mmwlan_enable_arp_refresh_offload(uint32_t interval_s, uint32_t dest_ip, bool send_as_garp)
Enables ARP refresh offload.
enum mmwlan_status mmwlan_enable_tcp_keepalive_offload(const struct mmwlan_tcp_keepalive_offload_args *args)
Enables TCP keep-alive offload.
enum mmwlan_status mmwlan_enable_dhcp_offload(mmwlan_dhcp_lease_update_cb_t dhcp_lease_update_cb, void *arg)
Enables DHCP offload.
void(* mmwlan_dhcp_lease_update_cb_t)(const struct mmwlan_dhcp_lease_info *lease_info, void *arg)
DHCP Lease update callback function prototype - this is called whenever a lease is updated.
mmwlan_tcp_keepalive_offload_cfg
Keep-alive offload configuration options for mmwlan_tcp_keepalive_offload_args::set_cfgs bitmap.
enum mmwlan_status mmwlan_enable_arp_response_offload(uint32_t arp_addr)
Enables ARP response offload.
enum mmwlan_status mmwlan_set_whitelist_filter(const struct mmwlan_config_whitelist *whitelist)
Sets and enables the IP whitelist filter.
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_DEST_PORT
Bitmap for TCP keep alive destination port parameter.
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_DEST_IP_ADDR
Bitmap for TCP keep alive destination IP parameter.
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_SRC_IP_ADDR
Bitmap for TCP keep alive source IP parameter.
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_RETRY_COUNT
Bitmap for TCP keep alive retry count parameter.
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_SRC_PORT
Bitmap for TCP keep alive source port parameter.
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_TIMING_ONLY
Bitmap for TCP keep alive timing parameters only.
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_RETRY_INTERVAL
Bitmap for TCP keep alive retry interval parameter.
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_ALL
Bitmap for all TCP keep alive parameters.
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_PERIOD
Bitmap for TCP keep alive period parameter.
static const struct mmwlan_s1g_channel_list * mmwlan_lookup_regulatory_domain(const struct mmwlan_regulatory_db *db, const char *country_code)
Look up the given country code in the regulatory database and return the matching channel list if fou...
enum mmwlan_status mmwlan_set_channel_list(const struct mmwlan_s1g_channel_list *channel_list)
Set the list of channels that are supported by the regulatory domain in which the device resides.
#define MMWLAN_COUNTRY_CODE_LEN
Length of the two character country code string (null-terminated).
enum mmwlan_status mmwlan_standby_set_status_payload(const struct mmwlan_standby_set_status_payload_args *args)
Sets the user payload in the standby status packet.
enum mmwlan_status mmwlan_standby_exit(void)
Forces the Morse chip to exit standby mode.
enum mmwlan_status mmwlan_standby_set_config(const struct mmwlan_standby_config *config)
Sets the configuration for standby mode.
enum mmwlan_status mmwlan_standby_set_wake_filter(const struct mmwlan_standby_set_wake_filter_args *args)
Configures the standby mode UDP wake packet filter.
mmwlan_standby_exit_reason
Reasons we can exit standby mode.
enum mmwlan_status mmwlan_standby_enter(const struct mmwlan_standby_enter_args *args)
This function puts the Morse chip into standby mode allowing the host processor to go to sleep.
void(* mmwlan_standby_exit_cb_t)(uint8_t reason, void *arg)
Standby mode callback whenever an event requiring an exit from standby mode occurs.
@ MMWLAN_STANDBY_EXIT_REASON_WAKEUP_FRAME
The STA has received the wake-up frame.
@ MMWLAN_STANDBY_EXIT_REASON_HW_SCAN_NOT_ENABLED
HW scan is not enabled.
@ MMWLAN_STANDBY_EXIT_REASON_EXT_INPUT
The external input pin has fired.
@ MMWLAN_STANDBY_EXIT_REASON_WHITELIST_PKT
Whitelisted packet received.
@ MMWLAN_STANDBY_EXIT_REASON_HW_SCAN_FAILED_TO_START
HW scan failed to start.
@ MMWLAN_STANDBY_EXIT_REASON_TCP_CONNECTION_LOST
TCP connection lost.
@ MMWLAN_STANDBY_EXIT_REASON_ASSOCIATE
The STA needs to (re)associate.
@ MMWLAN_STANDBY_EXIT_REASON_NONE
No specific reason for exiting standby mode.
void mmwlan_free_rc_stats(struct mmwlan_rc_stats *stats)
Free a mmwlan_rc_stats structure that was allocated with mmwlan_get_rc_stats().
mmwlan_rc_stats_rate_info_offsets
Enumeration defined offsets into the bit field of rate information (rate_info in mmwlan_rc_stats).
struct mmwlan_rc_stats * mmwlan_get_rc_stats(void)
Retrieves WLAN rate control statistics.
struct mmwlan_morse_stats * mmwlan_get_morse_stats(uint32_t core_num, bool reset)
Retrieves statistics from the Morse transceiver.
void mmwlan_free_morse_stats(struct mmwlan_morse_stats *stats)
Frees a mmwlan_morse_stats instance that was returned by mmwlan_get_morse_stats().
enum mmwlan_status mmwlan_ate_override_rate_control(enum mmwlan_mcs tx_rate_override, enum mmwlan_bw bandwidth_override, enum mmwlan_gi gi_override)
Enable/disable override of rate control parameters.
mmwlan_mcs
Enumeration of MCS rates.
enum mmwlan_status mmwlan_ate_execute_command(uint8_t *command, uint32_t command_len, uint8_t *response, uint32_t *response_len)
Execute a test/debug command.
mmwlan_bw
Enumeration of bandwidths.
mmwlan_gi
Enumeration of guard intervals.
@ MMWLAN_MCS_NONE
Use-case specific special value.
@ MMWLAN_MCS_MAX
Maximum supported MCS rate.
@ MMWLAN_BW_NONE
Use-case specific special value.
@ MMWLAN_BW_2MHZ
2 MHz bandwidth
@ MMWLAN_BW_4MHZ
4 MHz bandwidth
@ MMWLAN_BW_MAX
Maximum supported bandwidth.
@ MMWLAN_BW_8MHZ
8 MHz bandwidth
@ MMWLAN_BW_1MHZ
1 MHz bandwidth
@ MMWLAN_GI_MAX
Maximum valid value of this enum.
@ MMWLAN_GI_LONG
Long guard interval.
@ MMWLAN_GI_SHORT
Short guard interval.
@ MMWLAN_GI_NONE
Use-case specific special value.
enum mmwlan_status mmwlan_clear_umac_stats(void)
Clear all current values of the UMAC statistics.
enum mmwlan_status mmwlan_get_umac_stats(struct mmwlan_stats_umac_data *stats_dest)
Gets the current values of the UMAC statistics.
static enum mmwlan_status mmwlan_set_wnm_sleep_enabled(bool wnm_sleep_enabled)
Sets whether WNM sleep mode is enabled.
#define MMWLAN_SET_WNM_SLEEP_ENABLED_ARGS_INIT
Initializer for mmwlan_set_wnm_sleep_enabled_args.
enum mmwlan_status mmwlan_set_wnm_sleep_enabled_ext(const struct mmwlan_set_wnm_sleep_enabled_args *args)
Sets extended WNM sleep mode.
mmwlan_status
Enumeration of status return codes.
#define MMWLAN_PASSPHRASE_MAXLEN
Maximum allowable length of a passphrase when connecting to an AP.
mmwlan_duty_cycle_mode
Enumeration of Duty Cycle modes.
mmwlan_pmf_mode
Enumeration of Protected Management Frame (PMF) modes (802.11w).
#define MMWLAN_STANDBY_STATUS_FRAME_USER_PAYLOAD_MAXLEN
The maximum length of a user-specified payload (bytes) for Standby status frames.
#define MMWLAN_MAX_EC_GROUPS
Maximum allowable number of EC Groups.
mmwlan_security_type
Enumeration of supported security types.
#define MMWLAN_OUI_SIZE
Size of an 802.11 OUI element in octets.
#define MMWLAN_SSID_MAXLEN
Maximum allowable length of an SSID.
mmwlan_twt_setup_command
Enumeration of Target Wake Time (TWT) setup commands.
mmwlan_4addr_mode
Enumeration of Linux 4-address mode settings.
#define MMWLAN_MAC_ADDR_LEN
Length of a WLAN MAC address.
mmwlan_ps_mode
Enumeration of supported 802.11 power save modes.
mmwlan_twt_mode
Enumeration of Target Wake Time (TWT) modes.
#define MMWLAN_STANDBY_WAKE_FRAME_USER_FILTER_MAXLEN
The maximum allowed length of a user filter to apply to wake frames.
mmwlan_cac_mode
Enumeration of Centralized Authentication Control (CAC) modes.
@ MMWLAN_INVALID_ARGUMENT
The operation failed due to an invalid argument.
@ MMWLAN_NOT_RUNNING
Indicates that the operation failed because the UMAC was not running (e.g., the device was not booted...
@ MMWLAN_TIMED_OUT
Failed due to timeout.
@ MMWLAN_SHUTDOWN_BLOCKED
Used to indicate that a call to mmwlan_sta_disable() did not shutdown the transceiver.
@ MMWLAN_SUCCESS
The operation was successful.
@ MMWLAN_CHANNEL_INVALID
Attempted to tune to a channel that was not in the regulatory database or not supported.
@ MMWLAN_NO_MEM
Failed due to memory allocation failure.
@ MMWLAN_CHANNEL_LIST_NOT_SET
Unable to proceed because channel list has not been set.
@ MMWLAN_ERROR
The operation failed with an unspecified error.
@ MMWLAN_UNAVAILABLE
Functionality is temporarily unavailable.
@ MMWLAN_NOT_FOUND
The request could not be completed because the given resource was not found.
@ MMWLAN_DUTY_CYCLE_MODE_SPREAD
Duty cycle air time evenly spread.
@ MMWLAN_DUTY_CYCLE_MODE_BURST
Duty cycle air time available in burst.
@ MMWLAN_PMF_DISABLED
No protected management frames.
@ MMWLAN_PMF_REQUIRED
Protected management frames must be used.
@ MMWLAN_OPEN
Open (no security)
@ MMWLAN_SAE
Simultaneous Authentication of Equals (SAE)
@ MMWLAN_OWE
Opportunistic Wireless Encryption (OWE)
@ MMWLAN_TWT_SETUP_SUGGEST
TWT setup suggest command.
@ MMWLAN_TWT_SETUP_REQUEST
TWT setup request command.
@ MMWLAN_TWT_SETUP_DEMAND
TWT setup demand command.
@ MMWLAN_PS_DISABLED
Power save disabled.
@ MMWLAN_PS_ENABLED
Power save enabled.
@ MMWLAN_TWT_DISABLED
TWT disabled.
@ MMWLAN_TWT_RESPONDER
TWT enabled as a responder.
@ MMWLAN_TWT_REQUESTER
TWT enabled as a requester.
@ MMWLAN_CAC_DISABLED
CAC disabled.
@ MMWLAN_CAC_ENABLED
CAC enabled.
Core mmpkt data structure.
Structure for storing beacon vendor ie filter parameter.
void * cb_arg
Opaque argument to be passed to the callbacks.
mmwlan_beacon_vendor_ie_filter_cb_t cb
Callback that will be executed upon reception of a beacon containing a Vendor Specific information el...
mmwlan_oui_t ouis[MMWLAN_BEACON_VENDOR_IE_MAX_OUI_FILTERS]
List of OUIs to filter on.
uint8_t n_ouis
Number of OUIs contained within ouis.
Arguments data structure for mmwlan_boot().
uint8_t reserved
Note this field should not be used and will be removed in future.
Whitelist filter configuration.
uint16_t src_port
The source TCP or UDP port to match, 0 for any.
uint32_t netmask
The netmask to apply to the source or destination IP, 0.0.0.0 for any.
uint32_t src_ip
The IPv4 source address to match, 0.0.0.0 for any.
uint16_t dest_port
The destination TCP or UDP port to match, 0 for any.
uint32_t dest_ip
The IPv4 destination address to match, 0.0.0.0 for any - this is usually our IP address.
uint16_t llc_protocol
The LLC protocol to match - 0x0800 for IPv4 and 0x86DD for IPv6, 0 for any.
uint8_t flags
Flags - clear any active whitelist filters if bit 0 is set.
uint8_t ip_protocol
The IP protocol to match - 6 for TCP, 17 for UDP, 0 for any.
DHCP lease info structure.
uint32_t ip4_addr
local IP address
uint32_t mask4_addr
Netmask address.
uint32_t dns4_addr
DNS address.
uint32_t gw4_addr
Gateway address.
Structure to hold the arguments used for the DPP process.
void(* dpp_event_cb)(const struct mmwlan_dpp_cb_args *dpp_event, void *arg)
DPP event callback prototype.
void * dpp_event_cb_arg
Optional user argument that will be passed back to the DPP event callback.
Structure passed back when a DPP event occurs.
union mmwlan_dpp_cb_args::@2 args
Union of arguments for DPP events.
const uint8_t * ssid
SSID of the AP to connect to.
uint16_t ssid_len
Length of the SSID.
const char * passphrase
Passphrase, NULL terminated.
enum mmwlan_dpp_pb_result result
Result of DPP push button.
struct mmwlan_dpp_cb_args::@2::@3 pb_result
Argument for MMWLAN_DPP_EVT_PB_RESULT event.
enum mmwlan_dpp_event event
The DPP event that has occurred.
Duty cycle configuration and statistics.
uint32_t burst_window_duration_us
Burst window duration (us) - applicable in burst mode only.
uint32_t burst_airtime_remaining_us
Airtime remaining (us) - applicable in burst mode only.
uint32_t duty_cycle
Target duty cycle in 100th of a %, i.e.
enum mmwlan_duty_cycle_mode mode
Configured duty cycle mode, see mmwlan_duty_cycle_mode.
Data structure used to represent an opaque buffer containing Morse statistics.
uint8_t * buf
Buffer containing the stats.
uint32_t len
Length of stats in buf.
Structure for storing QoS queue parameters
uint8_t aci
Access Category Index [0..3].
uint32_t txop_max_us
Maximum burst time in microseconds, 0 meaning disabled.
uint16_t cw_min
Minimum Contention Window.
uint8_t aifs
Arbitration Inter-frame Space [2..255].
uint16_t cw_max
Maximum Contention Window.
Rate control statistics data structure.
uint32_t * total_success
Total successes for each rate table entry.
uint32_t n_entries
The number of rate table entries.
uint32_t * rate_info
Rate info for each rate table entry.
uint32_t * total_sent
Total number of packets sent for each rate table entry.
Regulatory database data structure.
unsigned num_domains
Number of regulatory domains in the database.
const struct mmwlan_s1g_channel_list ** domains
The regulatory domain data.
A list of S1G channels supported by a given regulatory domain.
unsigned num_channels
The number of channels in the list.
uint8_t country_code[MMWLAN_COUNTRY_CODE_LEN]
Two character country code (null-terminated) used to identify the regulatory domain.
const struct mmwlan_s1g_channel * channels
The channel data.
Regulatory domain information about an S1G channel.
int8_t max_tx_eirp_dbm
Maximum transmit power (EIRP in dBm).
uint32_t airtime_min_us
The minimum packet airtime duration to trigger spacing (in microseconds).
int16_t s1g_operating_class
S1G operating class.
int16_t global_operating_class
Global operating class.
uint32_t airtime_max_us
The maximum allowable packet airtime duration (in microseconds).
uint32_t centre_freq_hz
Center frequency of the channel (in Hz).
bool duty_cycle_omit_ctrl_resp
Boolean indicating whether to omit control response frames from duty cycle.
uint16_t duty_cycle_sta
STA Duty Cycle (in 100th of %).
uint8_t s1g_chan_num
S1G channel number.
uint32_t pkt_spacing_us
The length of time to close the tx window between packets (in microseconds).
uint8_t bw_mhz
Channel operating bandwidth (in MHz).
Structure to hold scan arguments.
uint8_t * extra_ies
Extra Information Elements to include in Probe Request frames.
uint8_t ssid[MMWLAN_SSID_MAXLEN]
SSID used for scan.
uint32_t dwell_on_home_ms
Time to dwell on home channel in between channels during a scan, to allow traffic to still pass.
size_t extra_ies_len
Length of extra_ies.
uint16_t ssid_len
Length of the SSID.
uint32_t dwell_time_ms
Minimum time to dwell on a channel waiting for probe responses/beacons.
Scan configuration data structure.
bool ndp_probe_enabled
Boolean value indicating whether NDP probe support should be enabled.
uint32_t home_channel_dwell_time_ms
Set the home channel dwell time to use for scans that are requested internally within the mmwlan driv...
uint32_t dwell_time_ms
Set the per-channel dwell time to use for scans that are requested internally within the mmwlan drive...
Structure to hold arguments specific to a given instance of a scan.
mmwlan_scan_rx_cb_t scan_rx_cb
Scan response receive callback.
void * scan_cb_arg
Opaque argument to be passed to the callbacks.
mmwlan_scan_complete_cb_t scan_complete_cb
Scan complete callback.
struct mmwlan_scan_args args
Scan arguments to be used mmwlan_scan_args.
Result of the scan request.
uint8_t ssid_len
Length of the SSID (ssid).
uint8_t bw_mhz
Bandwidth, in MHz, where the frame was received.
const uint8_t * ies
Pointer to the start of the Information Elements within the Probe Response frame.
uint16_t capability_info
Value of the Capability Information field.
uint16_t ies_len
Length of the Information Elements (ies).
const uint8_t * bssid
Pointer to the BSSID field within the Probe Response frame.
uint32_t channel_freq_hz
Center frequency in Hz of the channel where the frame was received.
uint16_t beacon_interval
Value of the Beacon Interval field.
uint64_t tsf
TSF timestamp in the Probe Response frame.
uint8_t op_bw_mhz
Operating bandwidth, in MHz, of the access point.
int16_t rssi
RSSI of the received frame.
const uint8_t * ssid
Pointer to the SSID within the SSID IE of the Probe Response frame.
Structure for storing WNM sleep extended arguments.
bool wnm_sleep_enabled
Boolean indicating whether WNM sleep is enabled.
bool chip_powerdown_enabled
Boolean indicating whether chip should be powered down during WNM sleep.
Arguments data structure for mmwlan_softap_enable().
char passphrase[MMWLAN_PASSPHRASE_MAXLEN+1]
Passphrase (only used if security_type is MMWLAN_SAE, otherwise ignored.
uint8_t bssid[MMWLAN_MAC_ADDR_LEN]
Optional BSSID of the AP.
int sae_owe_ec_groups[MMWLAN_MAX_EC_GROUPS]
Preference list of enabled elliptic curve groups for SAE and OWE.
uint16_t passphrase_len
Length of passphrase.
uint16_t op_class
Operating Class to use (S1G or Global).
uint8_t pri_1mhz_chan_idx
Index of the primary 1 Mhz channel within the operating channel.
mmwlan_softap_sta_status_cb_t sta_status_cb
Optional callback to be invoked when the status of a connected STA changes.
uint8_t pri_bw_mhz
Bandwidth to use for the primary channel.
uint16_t s1g_chan_num
S1G channel number of the channel to use.
uint16_t ssid_len
Length of the SSID.
enum mmwlan_pmf_mode pmf_mode
Protected Management Frame mode to use (802.11w)
void * sta_status_cb_arg
Optional opaque argument to be passed to sta_status_cb.
uint16_t dtim_period
The Delivery Traffic Indication Map (DTIM) interval in beacons.
uint16_t beacon_interval_tus
The Beacon period in units of TUs.
uint8_t ssid[MMWLAN_SSID_MAXLEN]
SSID of the AP.
enum mmwlan_security_type security_type
Type of security to use.
Data structure for communicating STA status information for stations connected to a Soft AP.
uint8_t reserved
Placeholder so that the struct is not empty.
Arguments data structure for mmwlan_sta_enable().
mmwlan_scan_rx_cb_t scan_rx_cb
Optional callback for scan results which are received during the connection process.
int bgscan_signal_threshold_dbm
Background scan signal strength threshold that switches between short and long intervals.
int16_t raw_sta_priority
Priority used by the AP to assign a STA to a Restricted Access Window (RAW) group.
int sae_owe_ec_groups[MMWLAN_MAX_EC_GROUPS]
Preference list of enabled elliptic curve groups for SAE and OWE.
uint16_t scan_interval_base_s
The base scan interval (in seconds) to use when (re)connecting.
uint8_t ssid[MMWLAN_SSID_MAXLEN]
SSID of the AP to connect to.
char passphrase[MMWLAN_PASSPHRASE_MAXLEN+1]
Passphrase (only used if security_type is MMWLAN_SAE, otherwise ignored.
enum mmwlan_4addr_mode use_4addr
Whether the station should use Linux 4-address mode.
enum mmwlan_pmf_mode pmf_mode
Protected Management Frame mode to use (802.11w)
mmwlan_sta_event_cb_t sta_evt_cb
STA event callback with a user-defined opaque parameter.
uint8_t * extra_assoc_ies
Extra Information Elements to include in association request frames.
enum mmwlan_security_type security_type
Type of security to use.
uint16_t passphrase_len
Length of passphrase.
uint16_t bgscan_long_interval_s
Background scan long interval, measured in seconds.
uint16_t bgscan_short_interval_s
Background scan short interval, measured in seconds.
enum mmwlan_cac_mode cac_mode
Whether Centralized Authentication Controlled is enabled on the STA.
uint8_t bssid[MMWLAN_MAC_ADDR_LEN]
BSSID of the AP to connect to.
void * scan_rx_cb_arg
Opaque argument to be passed to scan_rx_cb.
size_t extra_assoc_ies_len
Length of extra_assoc_ies.
uint16_t ssid_len
Length of the SSID.
void * sta_evt_cb_arg
STA event callback argument to be passed to sta_evt_cb.
uint16_t scan_interval_limit_s
The maximum interval between scan attempts when (re)connecting.
enum mmwlan_station_type sta_type
S1G non-AP STA type.
Argument passed to the STA event callback.
enum mmwlan_sta_event event
The event that triggered the callback.
Standby mode configuration parameters.
uint16_t dst_port
Destination UDP Port for the standby status packets, also used the source port for outgoing UDP port ...
uint32_t src_ip
Source IP address to use for the standby status packets.
uint32_t bss_inactivity_before_snooze_s
uint32_t snooze_period_s
The interval in seconds to wake periodically from snooze and check for beacons.
uint32_t snooze_increment_s
The amount in seconds to increase successive snooze intervals.
uint32_t dst_ip
Destination IP address for the standby status packets.
uint32_t snooze_max_s
The maximum time in seconds to snooze for after increments.
uint32_t notify_period_s
Interval in seconds for transmitting Standby status packets.
Arguments for mmwlan_standby_enter
mmwlan_standby_exit_cb_t standby_exit_cb
Callback function to call when we exit standby mode.
void * standby_exit_arg
Arguments to pass to callback function.
Arguments for mmwlan_standby_set_status_payload.
uint8_t payload[MMWLAN_STANDBY_STATUS_FRAME_USER_PAYLOAD_MAXLEN]
User data to append to the standby status packets.
uint32_t payload_len
The length of the payload in bytes.
Arguments for mmwlan_standby_set_wake_filter
uint8_t filter[MMWLAN_STANDBY_WAKE_FRAME_USER_FILTER_MAXLEN]
Data to match with for filtering.
uint32_t offset
The offset within the packet to search for the filter match.
uint32_t filter_len
The length of the filter data in bytes.
Data structure to contain all stats from the UMAC.
Arguments data structure for TCP keep-alive arguments.
uint16_t src_port
The source port for the keep alive packet.
uint16_t period_s
The interval in seconds to send the keep alive in.
uint32_t src_ip
The source IP for the keep alive packet.
uint8_t retry_interval_s
The time to wait between retries in seconds.
uint8_t set_cfgs
A bitmap specifying which configs to set.
uint8_t retry_count
Number of times to retry before giving up.
uint32_t dest_ip
The destination IP for the keep alive packet.
uint16_t dest_port
The destination port for the keep alive packet.
Structure for storing Target Wake Time (TWT) configuration arguments.
enum mmwlan_twt_setup_command twt_setup_command
TWT setup command, mmwlan_twt_setup_command.
uint64_t twt_wake_interval_us
TWT service period interval in micro seconds.
uint32_t twt_min_wake_duration_us
Minimum TWT wake duration in micro seconds.
uint8_t twt_wake_interval_exponent
TWT Wake interval exponent If non-zero, this parameter will be used to calculate twt_wake_interval_us...
uint16_t twt_wake_interval_mantissa
TWT Wake interval mantissa If non-zero, this parameter will be used to calculate twt_wake_interval_us...
enum mmwlan_twt_mode twt_mode
Target Wake Time (TWT) modes, mmwlan_twt_mode.
Structure for retrieving version information from the mmwlan subsystem.
char morselib_version[MMWLAN_MORSELIB_VERSION_MAXLEN]
Morselib version string.
char morse_chip_id_string[MMWLAN_CHIP_ID_STRING_MAXLEN]
Morse transceiver chip ID user-friendly string.
char morse_fw_version[MMWLAN_FW_VERSION_MAXLEN]
Morse transceiver firmware version string.
uint32_t morse_chip_id
Morse transceiver chip ID.