Morse Micro IoT SDK  2.10.4
mmwlan.h
1/*
2 * Copyright 2021-2024 Morse Micro
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
34#pragma once
35
36#include <stdarg.h>
37#include <stdint.h>
38#include <stdlib.h>
39#include <stdbool.h>
40#include <string.h>
41
42#include "mmpkt.h"
43
44#ifdef __cplusplus
45extern "C"
46{
47#endif
48
51{
83};
84
86#define MMWLAN_SSID_MAXLEN (32)
87
89#define MMWLAN_PASSPHRASE_MAXLEN (100)
90
92#define MMWLAN_MAC_ADDR_LEN (6)
93
95#define MMWLAN_MAX_EC_GROUPS (4)
96
98#define MMWLAN_OUI_SIZE (3)
99
104{
111};
112
115{
122};
123
126{
132
145#define MMWLAN_SKIP_OP_CLASS_CHECK -1
146
149{
163 uint8_t bw_mhz;
172};
173
175#define MMWLAN_COUNTRY_CODE_LEN 3
176
179{
183 unsigned num_channels;
186};
187
193{
195 unsigned num_domains;
196
199};
200
211 const struct mmwlan_regulatory_db *db,
212 const char *country_code)
213{
214 unsigned ii;
215
216 if (db == NULL)
217 {
218 return NULL;
219 }
220
221 for (ii = 0; ii < db->num_domains; ii++)
222 {
223 const struct mmwlan_s1g_channel_list *channel_list = db->domains[ii];
224 if (channel_list->country_code[0] == country_code[0] &&
225 channel_list->country_code[1] == country_code[1])
226 {
227 return channel_list;
228 }
229 }
230 return NULL;
231}
232
250
253{
258};
259
272
277{
279 uint32_t duty_cycle;
286};
287
296
308#define MMWLAN_MORSELIB_VERSION_MAXLEN (32)
310#define MMWLAN_FW_VERSION_MAXLEN (32)
312#define MMWLAN_CHIP_ID_STRING_MAXLEN (32)
313
316{
325};
326
338
340#define MMWLAN_BCF_BOARD_DESC_MAXLEN (31)
342#define MMWLAN_BCF_BUILD_VERSION_MAXLEN (31)
343
346{
348 struct
349 {
351 uint16_t major;
353 uint8_t minor;
355 uint8_t patch;
357
365
373};
374
383
401enum mmwlan_status mmwlan_override_max_tx_power(uint16_t tx_power_dbm);
402
413enum mmwlan_status mmwlan_set_rts_threshold(unsigned rts_threshold);
414
430
445enum mmwlan_status mmwlan_set_subbands_enabled(bool subbands_enabled);
446
458
463#define MMWLAN_MINIMUM_FRAGMENT_THRESHOLD (256)
464
484enum mmwlan_status mmwlan_set_fragment_threshold(unsigned fragment_threshold);
485
487#define MMWLAN_QOS_QUEUE_NUM_ACIS 4
488
491{
493 uint8_t aci;
495 uint8_t aifs;
497 uint16_t cw_min;
499 uint16_t cw_max;
501 uint32_t txop_max_us;
502};
503
524 size_t count);
525
528{
536
545
559
563#ifndef MMWLAN_DEFAULT_MIN_HEALTH_CHECK_INTERVAL_MS
564#define MMWLAN_DEFAULT_MIN_HEALTH_CHECK_INTERVAL_MS 60000
565#endif
566
570#ifndef MMWLAN_DEFAULT_MAX_HEALTH_CHECK_INTERVAL_MS
571#define MMWLAN_DEFAULT_MAX_HEALTH_CHECK_INTERVAL_MS 120000
572#endif
573
586 uint32_t max_interval_ms);
587
606{
608 uint8_t reserved;
609};
610
616#define MMWLAN_BOOT_ARGS_INIT { 0 }
617
632
642
665enum mmwlan_status mmwlan_get_vif_mac_addr(enum mmwlan_vif vif, uint8_t *mac_addr);
666
681static inline enum mmwlan_status mmwlan_get_mac_addr(uint8_t *mac_addr)
682{
683 return mmwlan_get_vif_mac_addr(MMWLAN_VIF_STA, mac_addr);
684}
685
698{
700 int16_t rssi;
702 const uint8_t *bssid;
704 const uint8_t *ssid;
706 const uint8_t *ies;
712 uint16_t ies_len;
714 uint8_t ssid_len;
718 uint8_t bw_mhz;
720 uint8_t op_bw_mhz;
725 int8_t noise_dbm;
727 uint64_t tsf;
728};
729
731typedef void (*mmwlan_scan_rx_cb_t)(const struct mmwlan_scan_result *result, void *arg);
732
745{
753
766
774};
775
777#define MMWLAN_SCAN_CONFIG_INIT \
778 { MMWLAN_SCAN_DEFAULT_DWELL_TIME_MS, false, MMWLAN_SCAN_DEFAULT_DWELL_ON_HOME_MS }
779
790#define MMWLAN_SCAN_DEFAULT_DWELL_TIME_MS (30)
792#define MMWLAN_SCAN_DEFAULT_DWELL_ON_HOME_MS (200)
793
795#define MMWLAN_SCAN_MIN_DWELL_TIME_MS (15)
796
801{
809};
810
812typedef void (*mmwlan_scan_complete_cb_t)(enum mmwlan_scan_state scan_state, void *arg);
813
819{
831 uint8_t *extra_ies;
840 uint16_t ssid_len;
847};
848
858#define MMWLAN_SCAN_ARGS_INIT \
859 { \
860 .dwell_time_ms = MMWLAN_SCAN_DEFAULT_DWELL_TIME_MS, \
861 .extra_ies = NULL, \
862 .extra_ies_len = 0, \
863 .ssid = { 0 }, \
864 .ssid_len = 0, \
865 .dwell_on_home_ms = MMWLAN_SCAN_DEFAULT_DWELL_ON_HOME_MS, \
866 }
867
872{
881};
882
892#define MMWLAN_SCAN_REQ_INIT { NULL, NULL, NULL, MMWLAN_SCAN_ARGS_INIT }
893
912
922
935#define DEFAULT_BGSCAN_SHORT_INTERVAL_S (0)
936
938#define DEFAULT_BGSCAN_THRESHOLD_DBM (0)
939
942#define DEFAULT_BGSCAN_LONG_INTERVAL_S (0)
943
945#define DEFAULT_TWT_WAKE_INTERVAL_US (300000000)
946
948#define DEFAULT_TWT_MIN_WAKE_DURATION_US (65280)
949
951#define MMWLAN_DEFAULT_SCAN_INTERVAL_BASE_S (2)
952
954#define MMWLAN_DEFAULT_SCAN_INTERVAL_LIMIT_S (512)
955
957#define MMWLAN_RAW_MAX_PRIORITY (7)
958
961{
967
970{
975};
976
979{
985
990{
991 MMWLAN_STA_TYPE_SENSOR = 0x01,
992 MMWLAN_STA_TYPE_NON_SENSOR = 0x02,
993};
994
999{
1000 MMWLAN_STA_DISABLED,
1001 MMWLAN_STA_CONNECTING,
1002 MMWLAN_STA_CONNECTED,
1003};
1004
1006typedef void (*mmwlan_sta_status_cb_t)(enum mmwlan_sta_state sta_state);
1007
1015{
1035};
1036
1039{
1042};
1043
1050typedef void (*mmwlan_sta_event_cb_t)(const struct mmwlan_sta_event_cb_args *sta_event, void *arg);
1051
1067{
1071 uint16_t ssid_len;
1176};
1177
1183#define MMWLAN_STA_ARGS_INIT \
1184 { \
1185 .ssid = { 0 }, \
1186 .ssid_len = 0, \
1187 .bssid = { 0 }, \
1188 .security_type = MMWLAN_OPEN, \
1189 .passphrase = { 0 }, \
1190 .passphrase_len = 0, \
1191 .pmf_mode = MMWLAN_PMF_REQUIRED, \
1192 .raw_sta_priority = -1, \
1193 .sta_type = MMWLAN_STA_TYPE_NON_SENSOR, \
1194 .sae_owe_ec_groups = { 0 }, \
1195 .cac_mode = MMWLAN_CAC_DISABLED, \
1196 .bgscan_short_interval_s = DEFAULT_BGSCAN_SHORT_INTERVAL_S, \
1197 .bgscan_signal_threshold_dbm = DEFAULT_BGSCAN_THRESHOLD_DBM, \
1198 .bgscan_long_interval_s = DEFAULT_BGSCAN_LONG_INTERVAL_S, \
1199 .scan_rx_cb = NULL, \
1200 .scan_rx_cb_arg = NULL, \
1201 .scan_interval_base_s = MMWLAN_DEFAULT_SCAN_INTERVAL_BASE_S, \
1202 .scan_interval_limit_s = MMWLAN_DEFAULT_SCAN_INTERVAL_LIMIT_S, \
1203 .extra_assoc_ies = NULL, \
1204 .extra_assoc_ies_len = 0, \
1205 .sta_evt_cb = NULL, \
1206 .sta_evt_cb_arg = NULL, \
1207 .use_4addr = MMWLAN_4ADDR_MODE_DISABLED, \
1208 }
1209
1236 mmwlan_sta_status_cb_t sta_status_cb);
1237
1248
1255
1267
1269#define MMWLAN_DEFAULT_DYNAMIC_PS_TIMEOUT_MS 100;
1270
1294
1311enum mmwlan_status mmwlan_set_non_tim_mode_enabled(bool non_tim_mode_enabled);
1312
1319{
1327
1330{
1338
1341{
1364};
1365
1375#define MMWLAN_TWT_CONFIG_ARGS_INIT \
1376 { \
1377 .twt_mode = MMWLAN_TWT_DISABLED, \
1378 .twt_wake_interval_us = DEFAULT_TWT_WAKE_INTERVAL_US, \
1379 .twt_wake_interval_mantissa = 0, \
1380 .twt_wake_interval_exponent = 0, \
1381 .twt_min_wake_duration_us = DEFAULT_TWT_MIN_WAKE_DURATION_US, \
1382 .twt_setup_command = MMWLAN_TWT_SETUP_REQUEST, \
1383 }
1384
1396 const struct mmwlan_twt_config_args *twt_config_args);
1397
1403uint16_t mmwlan_get_aid(void);
1404
1413enum mmwlan_status mmwlan_get_bssid(uint8_t *bssid);
1414
1422int32_t mmwlan_get_rssi(void);
1423
1435
1467
1487 uint32_t dest_ip,
1488 bool send_as_garp);
1489
1497{
1499 uint32_t ip4_addr;
1501 uint32_t mask4_addr;
1503 uint32_t gw4_addr;
1505 uint32_t dns4_addr;
1506};
1507
1515typedef void (*mmwlan_dhcp_lease_update_cb_t)(const struct mmwlan_dhcp_lease_info *lease_info,
1516 void *arg);
1517
1540 void *arg);
1541
1550{
1569};
1570
1586{
1591 uint8_t set_cfgs;
1596 uint16_t period_s;
1608 uint32_t src_ip;
1612 uint16_t src_port;
1616 uint32_t dest_ip;
1620 uint16_t dest_port;
1621};
1622
1631#define MMWLAN_TCP_KEEPALIVE_OFFLOAD_ARGS_INIT { 0 }
1632
1650 const struct mmwlan_tcp_keepalive_offload_args *args);
1651
1663
1668#define MMWLAN_WHITELIST_FLAGS_CLEAR 0x01
1669
1677{
1679 uint8_t flags;
1685 uint32_t src_ip;
1687 uint32_t dest_ip;
1689 uint32_t netmask;
1691 uint16_t src_port;
1693 uint16_t dest_port;
1694};
1695
1718
1768#define MMWLAN_STANDBY_STATUS_FRAME_USER_PAYLOAD_MAXLEN (64)
1769
1771#define MMWLAN_STANDBY_WAKE_FRAME_USER_FILTER_MAXLEN (64)
1772
1780{
1797};
1798
1808typedef void (*mmwlan_standby_exit_cb_t)(uint8_t reason, void *arg);
1809
1817{
1822};
1823
1843
1859
1867{
1874 uint32_t payload_len;
1875};
1876
1900 const struct mmwlan_standby_set_status_payload_args *args);
1901
1909{
1916 uint32_t filter_len;
1918 uint32_t offset;
1919};
1920
1947 const struct mmwlan_standby_set_wake_filter_args *args);
1948
1954{
1958 uint32_t src_ip;
1960 uint32_t dst_ip;
1965 uint16_t dst_port;
1984};
1985
1997
2042{
2047};
2048
2058#define MMWLAN_SET_WNM_SLEEP_ENABLED_ARGS_INIT { false, false }
2059
2087 const struct mmwlan_set_wnm_sleep_enabled_args *args);
2088
2114static inline enum mmwlan_status mmwlan_set_wnm_sleep_enabled(bool wnm_sleep_enabled)
2115{
2116 struct mmwlan_set_wnm_sleep_enabled_args wnm_sleep_args =
2118 wnm_sleep_args.wnm_sleep_enabled = wnm_sleep_enabled;
2119 return mmwlan_set_wnm_sleep_enabled_ext(&wnm_sleep_args);
2120}
2121
2134{
2137};
2138
2141{
2148};
2149
2157{
2160
2162 union
2163 {
2165 struct
2166 {
2170 const uint8_t *ssid;
2172 uint16_t ssid_len;
2174 const char *passphrase;
2177};
2178
2186{
2188 void (*dpp_event_cb)(const struct mmwlan_dpp_cb_args *dpp_event, void *arg);
2191};
2192
2208
2218
2233#define MMWLAN_DEFAULT_AP_BEACON_INTERVAL_TUS (100)
2234
2236#define MMWLAN_DEFAULT_AP_DTIM_PERIOD (1)
2237
2239#define MMWLAN_DEFAULT_AP_MAX_STAS (4)
2240
2242#define MMWLAN_AP_MAX_STAS_LIMIT (20)
2243
2251{
2258};
2259
2267{
2271 uint16_t aid;
2274};
2275
2285typedef void (*mmwlan_ap_sta_status_cb_t)(const struct mmwlan_ap_sta_status *sta_status, void *arg);
2286
2299enum mmwlan_status mmwlan_ap_get_sta_status(const uint8_t *sta_addr,
2300 struct mmwlan_ap_sta_status *sta_status);
2301
2320{
2324 uint16_t ssid_len;
2351 uint16_t op_class;
2371 uint16_t dtim_period;
2379 uint8_t pri_bw_mhz;
2401 uint8_t max_stas;
2402};
2403
2409#define MMWLAN_AP_ARGS_INIT \
2410 { \
2411 .ssid = { 0 }, \
2412 .ssid_len = 0, \
2413 .bssid = { 0 }, \
2414 .security_type = MMWLAN_OPEN, \
2415 .passphrase = { 0 }, \
2416 .passphrase_len = 0, \
2417 .pmf_mode = MMWLAN_PMF_REQUIRED, \
2418 .sae_owe_ec_groups = { 0 }, \
2419 .op_class = 0, \
2420 .s1g_chan_num = 0, \
2421 .beacon_interval_tus = 0, \
2422 .dtim_period = 0, \
2423 .pri_bw_mhz = 0, \
2424 .pri_1mhz_chan_idx = 0, \
2425 .sta_status_cb = NULL, \
2426 .sta_status_cb_arg = NULL, \
2427 .max_stas = 0, \
2428 }
2429
2447
2463
2472
2487#define MMWLAN_BEACON_VENDOR_IE_MAX_OUI_FILTERS (5)
2488
2497typedef void (
2498 *mmwlan_beacon_vendor_ie_filter_cb_t)(const uint8_t *ies, uint32_t ies_len, void *arg);
2499
2502
2505{
2516 void *cb_arg;
2519 uint8_t n_ouis;
2522};
2523
2537
2540/*
2541 * ---------------------------------------------------------------------------------------------
2542 */
2543
2560void mmwlan_init(void);
2561
2569void mmwlan_deinit(void);
2570
2573/*
2574 * ---------------------------------------------------------------------------------------------
2575 */
2576
2587{
2590};
2591
2598typedef void (*mmwlan_link_state_cb_t)(enum mmwlan_link_state link_state, void *arg);
2599
2620
2623{
2628};
2629
2636typedef void (*mmwlan_vif_state_cb_t)(const struct mmwlan_vif_state *state, void *arg);
2637
2655 mmwlan_vif_state_cb_t callback,
2656 void *arg);
2657
2667typedef void (*mmwlan_rx_cb_t)(uint8_t *header,
2668 unsigned header_len,
2669 uint8_t *payload,
2670 unsigned payload_len,
2671 void *arg);
2672
2686
2694typedef void (*mmwlan_rx_pkt_cb_t)(struct mmpkt *mmpkt, void *arg);
2695
2709
2712{
2715
2717 uint8_t tid;
2718
2720 const uint8_t *ta;
2721};
2722
2734typedef void (*mmwlan_rx_pkt_ext_cb_t)(struct mmpkt *mmpkt,
2735 const struct mmwlan_rx_metadata *metadata,
2736 void *arg);
2737
2754 mmwlan_rx_pkt_ext_cb_t callback,
2755 void *arg);
2756
2767
2781struct mmpkt *mmwlan_alloc_mmpkt_for_tx(uint32_t payload_len, uint8_t tid);
2782
2784#define MMWLAN_TX_DEFAULT_TIMEOUT_MS (1000)
2785
2787#define MMWLAN_TX_DEFAULT_QOS_TID (0)
2788
2790#define MMWLAN_MAX_QOS_TID (7)
2791
2807{
2812 uint8_t tid;
2813
2823
2826 const uint8_t *ra;
2827};
2828
2832#define MMWLAN_TX_METADATA_INIT { MMWLAN_TX_DEFAULT_QOS_TID, MMWLAN_VIF_UNSPECIFIED, NULL }
2833
2867enum mmwlan_status mmwlan_tx_pkt(struct mmpkt *pkt, const struct mmwlan_tx_metadata *metadata);
2868
2894static inline enum mmwlan_status mmwlan_tx_tid(const uint8_t *data, unsigned len, uint8_t tid)
2895{
2896 enum mmwlan_status status;
2897 struct mmpkt *pkt;
2898 struct mmpktview *pktview;
2900
2902 if (status != MMWLAN_SUCCESS)
2903 {
2904 return status;
2905 }
2906
2907 pkt = mmwlan_alloc_mmpkt_for_tx(len, tid);
2908 if (pkt == NULL)
2909 {
2910 return MMWLAN_NO_MEM;
2911 }
2912
2913 pktview = mmpkt_open(pkt);
2914 mmpkt_append_data(pktview, data, len);
2915 mmpkt_close(&pktview);
2916
2917 metadata.tid = tid;
2918 return mmwlan_tx_pkt(pkt, &metadata);
2919}
2920
2945static inline enum mmwlan_status mmwlan_tx(const uint8_t *data, unsigned len)
2946{
2947 return mmwlan_tx_tid(data, len, MMWLAN_TX_DEFAULT_QOS_TID);
2948}
2949
2955{
2958};
2959
2972typedef void (*mmwlan_tx_flow_control_cb_t)(enum mmwlan_tx_flow_control_state state, void *arg);
2973
2987
2990/*
2991 * ---------------------------------------------------------------------------------------------
2992 */
2993
3004{
3006 uint32_t n_entries;
3008 uint32_t *rate_info;
3010 uint32_t *total_sent;
3012 uint32_t *total_success;
3013};
3014
3031{
3032 MMWLAN_RC_STATS_RATE_INFO_BW_OFFSET = 0,
3033 MMWLAN_RC_STATS_RATE_INFO_RATE_OFFSET = 4,
3034 MMWLAN_RC_STATS_RATE_INFO_GUARD_OFFSET = 8,
3035};
3036
3045
3052
3058{
3060 uint8_t *buf;
3062 uint32_t len;
3063};
3064
3077struct mmwlan_morse_stats *mmwlan_get_morse_stats(uint32_t core_num, bool reset);
3078
3085
3095
3105
3112
3117/*
3118 * ---------------------------------------------------------------------------------------------
3119 */
3120
3131{
3145
3148{
3155};
3156
3159{
3164};
3165
3179 enum mmwlan_bw bandwidth_override,
3180 enum mmwlan_gi gi_override);
3181
3198 uint32_t command_len,
3199 uint8_t *response,
3200 uint32_t *response_len);
3201
3204#ifdef __cplusplus
3205}
3206#endif
3207
struct mmwlan_beacon_vendor_ie_filter filter
Filter structure used when calling mmwlan_update_beacon_vendor_ie_filter().
mmwlan_ap_sta_state
Enumeration of STA states.
Definition: mmwlan.h:2251
enum mmwlan_status mmwlan_ap_disable(void)
Disable AP mode.
enum mmwlan_status mmwlan_ap_get_sta_status(const uint8_t *sta_addr, struct mmwlan_ap_sta_status *sta_status)
Gets the STA status of the STA with the given MAC address.
enum mmwlan_status mmwlan_ap_enable(const struct mmwlan_ap_args *args)
Enable AP mode.
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.
Definition: mmwlan.h:2285
enum mmwlan_status mmwlan_ap_get_bssid(uint8_t *bssid)
Gets the BSSID address of the AP, if it is active.
@ MMWLAN_AP_STA_AUTHORIZED
The STA is fully connected and authorized for data transmission.
Definition: mmwlan.h:2257
@ MMWLAN_AP_STA_ASSOCIATED
The STA is associated but not yet authorized for data transmission.
Definition: mmwlan.h:2255
@ MMWLAN_AP_STA_UNKNOWN
The STA is not known.
Definition: mmwlan.h:2253
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.
Definition: mmwlan.h:2487
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.
Definition: mmwlan.h:2498
uint8_t mmwlan_oui_t[MMWLAN_OUI_SIZE]
24-bit OUI type.
Definition: mmwlan.h:2501
enum mmwlan_status mmwlan_get_version(struct mmwlan_version *version)
Retrieve version information from morselib and the connected Morse transceiver.
static enum mmwlan_status mmwlan_get_mac_addr(uint8_t *mac_addr)
Gets the MAC address of the STA interface.
Definition: mmwlan.h:681
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_get_vif_mac_addr(enum mmwlan_vif vif, uint8_t *mac_addr)
Gets the MAC address of the given interface.
enum mmwlan_status mmwlan_set_ampdu_enabled(bool ampdu_enabled)
Sets whether or not Aggregated MAC Protocol Data Unit (A-MPDU) support is enabled.
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).
Definition: mmwlan.h:340
enum mmwlan_status mmwlan_set_control_response_preamble_1mhz_out_en(bool enabled)
Enables the 1MHz control response override.
enum mmwlan_status mmwlan_shutdown(void)
Perform a clean shutdown of the Morse Micro transceiver, including cleanly disconnecting from a conne...
#define MMWLAN_BCF_BUILD_VERSION_MAXLEN
Maximum length of a BCF build version string (excluding null terminator).
Definition: mmwlan.h:342
enum mmwlan_status mmwlan_get_bcf_metadata(struct mmwlan_bcf_metadata *metadata)
Read the metadata from the board configuration file (BCF).
mmwlan_mcs10_mode
Enumeration of configuration states for MCS10 behavior.
Definition: mmwlan.h:528
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.
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.
Definition: mmwlan.h:312
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.
#define MMWLAN_FW_VERSION_MAXLEN
Maximum length of the firmware version string.
Definition: mmwlan.h:310
#define MMWLAN_MORSELIB_VERSION_MAXLEN
Maximum length of the Morselib version string.
Definition: mmwlan.h:308
enum mmwlan_status mmwlan_set_mcs10_mode(enum mmwlan_mcs10_mode mcs10_mode)
Configure the rate adaptation behavior around selecting MCS10.
@ MMWLAN_MCS10_MODE_AUTO
Use MCS10 on retries instead of MCS 0 if the bandwidth is 1 MHz.
Definition: mmwlan.h:534
@ MMWLAN_MCS10_MODE_FORCED
Always use MCS10 instead of MCS 0 if the bandwidth is 1 MHz.
Definition: mmwlan.h:532
@ MMWLAN_MCS10_MODE_DISABLED
MCS10 is disabled.
Definition: mmwlan.h:530
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).
Definition: mmwlan.h:2894
enum mmwlan_status mmwlan_register_rx_cb(mmwlan_rx_cb_t callback, void *arg)
Register a receive callback.
enum mmwlan_status mmwlan_register_rx_pkt_ext_cb(enum mmwlan_vif vif, mmwlan_rx_pkt_ext_cb_t callback, void *arg)
Register an extended receive callback which may consume an mmpkt.
void(* mmwlan_vif_state_cb_t)(const struct mmwlan_vif_state *state, void *arg)
Prototype for VIF state change callbacks.
Definition: mmwlan.h:2636
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.
Definition: mmwlan.h:2598
#define MMWLAN_TX_DEFAULT_QOS_TID
Default QoS Traffic ID (TID) to use for transmit (mmwlan_tx()).
Definition: mmwlan.h:2787
enum mmwlan_status mmwlan_register_link_state_cb(mmwlan_link_state_cb_t callback, void *arg)
Register a link status callback for use in STA mode.
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...
Definition: mmwlan.h:2955
mmwlan_link_state
Enumeration of link states.
Definition: mmwlan.h:2587
enum mmwlan_status mmwlan_register_vif_state_cb(enum mmwlan_vif vif, mmwlan_vif_state_cb_t callback, void *arg)
Register a VIF state callback.
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.
Definition: mmwlan.h:2667
void(* mmwlan_tx_flow_control_cb_t)(enum mmwlan_tx_flow_control_state state, void *arg)
Transmit flow control callback function type.
Definition: mmwlan.h:2972
static enum mmwlan_status mmwlan_tx(const uint8_t *data, unsigned len)
Transmit the given packet using MMWLAN_TX_DEFAULT_QOS_TID.
Definition: mmwlan.h:2945
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.
Definition: mmwlan.h:2832
void(* mmwlan_rx_pkt_ext_cb_t)(struct mmpkt *mmpkt, const struct mmwlan_rx_metadata *metadata, void *arg)
Extended receive data packet callback function, consuming an mmpkt.
Definition: mmwlan.h:2734
void(* mmwlan_rx_pkt_cb_t)(struct mmpkt *mmpkt, void *arg)
Receive data packet callback function, consuming an mmpkt.
Definition: mmwlan.h:2694
#define MMWLAN_TX_DEFAULT_TIMEOUT_MS
Default transmit timeout.
Definition: mmwlan.h:2784
@ MMWLAN_TX_READY
Transmit data path ready for packets (not paused).
Definition: mmwlan.h:2956
@ MMWLAN_TX_PAUSED
Transmit data path paused (blocked).
Definition: mmwlan.h:2957
@ MMWLAN_LINK_UP
The link is up.
Definition: mmwlan.h:2589
@ MMWLAN_LINK_DOWN
The link is down.
Definition: mmwlan.h:2588
enum mmwlan_status mmwlan_dpp_stop(void)
Function to stop the DPP process.
mmwlan_dpp_pb_result
Enumeration of results for MMWLAN_DPP_EVT_PB_RESULT.
Definition: mmwlan.h:2141
enum mmwlan_status mmwlan_dpp_start(const struct mmwlan_dpp_args *args)
Function to start the Device Provisioning Protocol (DPP) process.
mmwlan_dpp_event
Enumeration of DPP events.
Definition: mmwlan.h:2134
@ MMWLAN_DPP_PB_RESULT_SUCCESS
DPP push button process was successful.
Definition: mmwlan.h:2143
@ MMWLAN_DPP_PB_RESULT_SESSION_OVERLAP
A session overlap occurred during the DPP push button process.
Definition: mmwlan.h:2147
@ MMWLAN_DPP_PB_RESULT_ERROR
An error occurred during the DPP push button process.
Definition: mmwlan.h:2145
@ MMWLAN_DPP_EVT_PB_RESULT
DPP push button result.
Definition: mmwlan.h:2136
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.
Definition: mmwlan.h:1515
mmwlan_tcp_keepalive_offload_cfg
Keep-alive offload configuration options for mmwlan_tcp_keepalive_offload_args::set_cfgs bitmap.
Definition: mmwlan.h:1550
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.
Definition: mmwlan.h:1564
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_DEST_IP_ADDR
Bitmap for TCP keep alive destination IP parameter.
Definition: mmwlan.h:1560
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_SRC_IP_ADDR
Bitmap for TCP keep alive source IP parameter.
Definition: mmwlan.h:1558
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_RETRY_COUNT
Bitmap for TCP keep alive retry count parameter.
Definition: mmwlan.h:1554
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_SRC_PORT
Bitmap for TCP keep alive source port parameter.
Definition: mmwlan.h:1562
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_TIMING_ONLY
Bitmap for TCP keep alive timing parameters only.
Definition: mmwlan.h:1566
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_RETRY_INTERVAL
Bitmap for TCP keep alive retry interval parameter.
Definition: mmwlan.h:1556
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_ALL
Bitmap for all TCP keep alive parameters.
Definition: mmwlan.h:1568
@ MMWLAN_TCP_KEEPALIVE_SET_CFG_PERIOD
Bitmap for TCP keep alive period parameter.
Definition: mmwlan.h:1552
enum mmwlan_status mmwlan_get_duty_cycle_stats(struct mmwlan_duty_cycle_stats *stats)
Retrieve the transmit duty cycle configuration and statistics.
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...
Definition: mmwlan.h:210
mmwlan_duty_cycle_mode
Enumeration of Duty Cycle modes.
Definition: mmwlan.h:253
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.
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.
#define MMWLAN_COUNTRY_CODE_LEN
Length of the two character country code string (null-terminated).
Definition: mmwlan.h:175
@ MMWLAN_DUTY_CYCLE_MODE_SPREAD
Duty cycle air time evenly spread.
Definition: mmwlan.h:255
@ MMWLAN_DUTY_CYCLE_MODE_BURST
Duty cycle air time available in burst.
Definition: mmwlan.h:257
mmwlan_scan_state
Enumeration of states in Scan mode.
Definition: mmwlan.h:801
void(* mmwlan_scan_rx_cb_t)(const struct mmwlan_scan_result *result, void *arg)
mmwlan scan rx callback function prototype.
Definition: mmwlan.h:731
enum mmwlan_status mmwlan_scan_abort(void)
Abort in progress or pending scans.
enum mmwlan_status mmwlan_set_scan_config(const struct mmwlan_scan_config *config)
Update the scan configuration with the given settings.
void(* mmwlan_scan_complete_cb_t)(enum mmwlan_scan_state scan_state, void *arg)
mmwlan scan complete callback function prototype.
Definition: mmwlan.h:812
enum mmwlan_status mmwlan_scan_request(const struct mmwlan_scan_req *scan_req)
Request a scan.
@ MMWLAN_SCAN_SUCCESSFUL
Scan was successful and all channels were scanned.
Definition: mmwlan.h:803
@ MMWLAN_SCAN_RUNNING
Scanning in progress.
Definition: mmwlan.h:808
@ MMWLAN_SCAN_TERMINATED
Scan was incomplete.
Definition: mmwlan.h:806
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.
Definition: mmwlan.h:1780
#define MMWLAN_STANDBY_STATUS_FRAME_USER_PAYLOAD_MAXLEN
The maximum length of a user-specified payload (bytes) for Standby status frames.
Definition: mmwlan.h:1768
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.
#define MMWLAN_STANDBY_WAKE_FRAME_USER_FILTER_MAXLEN
The maximum allowed length of a user filter to apply to wake frames.
Definition: mmwlan.h:1771
void(* mmwlan_standby_exit_cb_t)(uint8_t reason, void *arg)
Standby mode callback whenever an event requiring an exit from standby mode occurs.
Definition: mmwlan.h:1808
@ MMWLAN_STANDBY_EXIT_REASON_WAKEUP_FRAME
The STA has received the wake-up frame.
Definition: mmwlan.h:1784
@ MMWLAN_STANDBY_EXIT_REASON_HW_SCAN_NOT_ENABLED
HW scan is not enabled.
Definition: mmwlan.h:1794
@ MMWLAN_STANDBY_EXIT_REASON_EXT_INPUT
The external input pin has fired.
Definition: mmwlan.h:1788
@ MMWLAN_STANDBY_EXIT_REASON_WHITELIST_PKT
Whitelisted packet received.
Definition: mmwlan.h:1790
@ MMWLAN_STANDBY_EXIT_REASON_HW_SCAN_FAILED_TO_START
HW scan failed to start.
Definition: mmwlan.h:1796
@ MMWLAN_STANDBY_EXIT_REASON_TCP_CONNECTION_LOST
TCP connection lost.
Definition: mmwlan.h:1792
@ MMWLAN_STANDBY_EXIT_REASON_ASSOCIATE
The STA needs to (re)associate.
Definition: mmwlan.h:1786
@ MMWLAN_STANDBY_EXIT_REASON_NONE
No specific reason for exiting standby mode.
Definition: mmwlan.h:1782
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).
Definition: mmwlan.h:3031
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.
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.
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_set_listen_interval(uint16_t interval)
Sets the listen interval to be indicated in the association response frame.
int32_t mmwlan_get_rssi(void)
Gets the RSSI measured from the AP.
void(* mmwlan_sta_event_cb_t)(const struct mmwlan_sta_event_cb_args *sta_event, void *arg)
STA event callback prototype.
Definition: mmwlan.h:1050
mmwlan_sta_event
Enumeration of STA events.
Definition: mmwlan.h:1015
mmwlan_sta_state
Enumeration of states in STA mode.
Definition: mmwlan.h:999
enum mmwlan_sta_state mmwlan_get_sta_state(void)
Gets the current WLAN STA state.
void(* mmwlan_sta_status_cb_t)(enum mmwlan_sta_state sta_state)
STA status callback function prototype.
Definition: mmwlan.h:1006
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.
Definition: mmwlan.h:990
enum mmwlan_status mmwlan_set_power_save_mode(enum mmwlan_ps_mode mode)
Sets whether or not the 802.11 power save is enabled.
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_sta_enable(const struct mmwlan_sta_args *args, mmwlan_sta_status_cb_t sta_status_cb)
Enable station mode.
enum mmwlan_status mmwlan_set_dynamic_ps_timeout(uint32_t timeout_ms)
Sets the time after network activity before the STA will notify the AP that it will go to sleep using...
mmwlan_twt_setup_command
Enumeration of Target Wake Time (TWT) setup commands.
Definition: mmwlan.h:1330
mmwlan_4addr_mode
Enumeration of Linux 4-address mode settings.
Definition: mmwlan.h:970
mmwlan_ps_mode
Enumeration of supported 802.11 power save modes.
Definition: mmwlan.h:979
uint16_t mmwlan_get_aid(void)
Gets the station's AID.
mmwlan_twt_mode
Enumeration of Target Wake Time (TWT) modes.
Definition: mmwlan.h:1319
enum mmwlan_status mmwlan_set_non_tim_mode_enabled(bool non_tim_mode_enabled)
Sets whether or not non-TIM mode support is enabled.
enum mmwlan_status mmwlan_sta_disable(void)
Disable station mode.
mmwlan_cac_mode
Enumeration of Centralized Authentication Control (CAC) modes.
Definition: mmwlan.h:961
@ MMWLAN_STA_EVT_CTRL_PORT_OPEN
The Supplicant IEEE 802.1X Controlled Port is now open meaning that the STA is fully authenticated an...
Definition: mmwlan.h:1032
@ MMWLAN_STA_EVT_SCAN_ABORT
The STA has aborted a scan early.
Definition: mmwlan.h:1021
@ MMWLAN_STA_EVT_CTRL_PORT_CLOSED
The Supplicant IEEE 802.1X Controlled Port is now closed.
Definition: mmwlan.h:1034
@ MMWLAN_STA_EVT_SCAN_COMPLETE
The STA has finished a scan.
Definition: mmwlan.h:1019
@ MMWLAN_STA_EVT_SCAN_REQUEST
The STA is starting a scan.
Definition: mmwlan.h:1017
@ MMWLAN_STA_EVT_AUTH_REQUEST
The STA is sending an authentication request to the AP.
Definition: mmwlan.h:1023
@ MMWLAN_STA_EVT_ASSOC_REQUEST
The STA is sending an association request to the AP.
Definition: mmwlan.h:1025
@ MMWLAN_STA_EVT_DEAUTH_TX
The STA is sending a de-authorization request to the AP.
Definition: mmwlan.h:1027
@ MMWLAN_TWT_SETUP_SUGGEST
TWT setup suggest command.
Definition: mmwlan.h:1334
@ MMWLAN_TWT_SETUP_REQUEST
TWT setup request command.
Definition: mmwlan.h:1332
@ MMWLAN_TWT_SETUP_DEMAND
TWT setup demand command.
Definition: mmwlan.h:1336
@ MMWLAN_4ADDR_MODE_ENABLED
4 Address Mode enabled
Definition: mmwlan.h:974
@ MMWLAN_4ADDR_MODE_DISABLED
4 Address Mode disabled
Definition: mmwlan.h:972
@ MMWLAN_PS_DISABLED
Power save disabled.
Definition: mmwlan.h:981
@ MMWLAN_PS_ENABLED
Power save enabled.
Definition: mmwlan.h:983
@ MMWLAN_TWT_DISABLED
TWT disabled.
Definition: mmwlan.h:1321
@ MMWLAN_TWT_RESPONDER
TWT enabled as a responder.
Definition: mmwlan.h:1325
@ MMWLAN_TWT_REQUESTER
TWT enabled as a requester.
Definition: mmwlan.h:1323
@ MMWLAN_CAC_DISABLED
CAC disabled.
Definition: mmwlan.h:963
@ MMWLAN_CAC_ENABLED
CAC enabled.
Definition: mmwlan.h:965
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.
Definition: mmwlan.h:3131
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.
Definition: mmwlan.h:3148
mmwlan_gi
Enumeration of guard intervals.
Definition: mmwlan.h:3159
@ MMWLAN_MCS_7
MCS7.
Definition: mmwlan.h:3140
@ MMWLAN_MCS_3
MCS3.
Definition: mmwlan.h:3136
@ MMWLAN_MCS_8
MCS8.
Definition: mmwlan.h:3141
@ MMWLAN_MCS_NONE
Use-case specific special value.
Definition: mmwlan.h:3132
@ MMWLAN_MCS_9
MCS9.
Definition: mmwlan.h:3142
@ MMWLAN_MCS_0
MCS0.
Definition: mmwlan.h:3133
@ MMWLAN_MCS_4
MCS4.
Definition: mmwlan.h:3137
@ MMWLAN_MCS_6
MCS6.
Definition: mmwlan.h:3139
@ MMWLAN_MCS_MAX
Maximum supported MCS rate.
Definition: mmwlan.h:3143
@ MMWLAN_MCS_5
MCS5.
Definition: mmwlan.h:3138
@ MMWLAN_MCS_2
MCS2.
Definition: mmwlan.h:3135
@ MMWLAN_MCS_1
MCS1.
Definition: mmwlan.h:3134
@ MMWLAN_BW_NONE
Use-case specific special value.
Definition: mmwlan.h:3149
@ MMWLAN_BW_2MHZ
2 MHz bandwidth
Definition: mmwlan.h:3151
@ MMWLAN_BW_4MHZ
4 MHz bandwidth
Definition: mmwlan.h:3152
@ MMWLAN_BW_MAX
Maximum supported bandwidth.
Definition: mmwlan.h:3154
@ MMWLAN_BW_8MHZ
8 MHz bandwidth
Definition: mmwlan.h:3153
@ MMWLAN_BW_1MHZ
1 MHz bandwidth
Definition: mmwlan.h:3150
@ MMWLAN_GI_MAX
Maximum valid value of this enum.
Definition: mmwlan.h:3163
@ MMWLAN_GI_LONG
Long guard interval.
Definition: mmwlan.h:3162
@ MMWLAN_GI_SHORT
Short guard interval.
Definition: mmwlan.h:3161
@ MMWLAN_GI_NONE
Use-case specific special value.
Definition: mmwlan.h:3160
static enum mmwlan_status mmwlan_set_wnm_sleep_enabled(bool wnm_sleep_enabled)
Sets whether WNM sleep mode is enabled.
Definition: mmwlan.h:2114
#define MMWLAN_SET_WNM_SLEEP_ENABLED_ARGS_INIT
Initializer for mmwlan_set_wnm_sleep_enabled_args.
Definition: mmwlan.h:2058
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.
Definition: mmwlan.h:51
#define MMWLAN_PASSPHRASE_MAXLEN
Maximum allowable length of a passphrase when connecting to an AP.
Definition: mmwlan.h:89
mmwlan_pmf_mode
Enumeration of Protected Management Frame (PMF) modes (802.11w).
Definition: mmwlan.h:126
#define MMWLAN_MAX_EC_GROUPS
Maximum allowable number of EC Groups.
Definition: mmwlan.h:95
mmwlan_security_type
Enumeration of supported security types.
Definition: mmwlan.h:115
#define MMWLAN_OUI_SIZE
Size of an 802.11 OUI element in octets.
Definition: mmwlan.h:98
#define MMWLAN_SSID_MAXLEN
Maximum allowable length of an SSID.
Definition: mmwlan.h:86
#define MMWLAN_MAC_ADDR_LEN
Length of a WLAN MAC address.
Definition: mmwlan.h:92
mmwlan_vif
Enumeration of Virtual Interfaces supported by the MMWLAN API.
Definition: mmwlan.h:104
@ MMWLAN_INVALID_ARGUMENT
The operation failed due to an invalid argument.
Definition: mmwlan.h:57
@ MMWLAN_NOT_RUNNING
Indicates that the operation failed because the UMAC was not running (e.g., the device was not booted...
Definition: mmwlan.h:76
@ MMWLAN_TIMED_OUT
Failed due to timeout.
Definition: mmwlan.h:66
@ MMWLAN_SHUTDOWN_BLOCKED
Used to indicate that a call to mmwlan_sta_disable() did not shutdown the transceiver.
Definition: mmwlan.h:69
@ MMWLAN_SUCCESS
The operation was successful.
Definition: mmwlan.h:53
@ MMWLAN_VIF_ERROR
Indicates that the specified VIF is not active or that no VIF was specified and a VIF could not be au...
Definition: mmwlan.h:82
@ MMWLAN_CHANNEL_INVALID
Attempted to tune to a channel that was not in the regulatory database or not supported.
Definition: mmwlan.h:71
@ MMWLAN_NO_MEM
Failed due to memory allocation failure.
Definition: mmwlan.h:64
@ MMWLAN_CHANNEL_LIST_NOT_SET
Unable to proceed because channel list has not been set.
Definition: mmwlan.h:62
@ MMWLAN_ERROR
The operation failed with an unspecified error.
Definition: mmwlan.h:55
@ MMWLAN_NOT_INITIALIZED
Indicates that the operation failed because MMWLAN has not been initialized, see mmwlan_init()
Definition: mmwlan.h:79
@ MMWLAN_UNAVAILABLE
Functionality is temporarily unavailable.
Definition: mmwlan.h:59
@ MMWLAN_NOT_FOUND
The request could not be completed because the given resource was not found.
Definition: mmwlan.h:73
@ MMWLAN_PMF_DISABLED
No protected management frames.
Definition: mmwlan.h:130
@ MMWLAN_PMF_REQUIRED
Protected management frames must be used.
Definition: mmwlan.h:128
@ MMWLAN_OPEN
Open (no security)
Definition: mmwlan.h:117
@ MMWLAN_SAE
Simultaneous Authentication of Equals (SAE)
Definition: mmwlan.h:121
@ MMWLAN_OWE
Opportunistic Wireless Encryption (OWE)
Definition: mmwlan.h:119
@ MMWLAN_VIF_AP
AP VIF.
Definition: mmwlan.h:110
@ MMWLAN_VIF_STA
STA VIF.
Definition: mmwlan.h:108
@ MMWLAN_VIF_UNSPECIFIED
VIF is unspecified.
Definition: mmwlan.h:106
Arguments data structure for mmwlan_ap_enable().
Definition: mmwlan.h:2320
uint16_t beacon_interval_tus
The Beacon period in units of TUs.
Definition: mmwlan.h:2365
void * sta_status_cb_arg
Optional opaque argument to be passed to sta_status_cb.
Definition: mmwlan.h:2394
int sae_owe_ec_groups[MMWLAN_MAX_EC_GROUPS]
Preference list of enabled elliptic curve groups for SAE and OWE.
Definition: mmwlan.h:2343
uint16_t s1g_chan_num
S1G channel number of the channel to use.
Definition: mmwlan.h:2359
uint8_t pri_1mhz_chan_idx
Index of the primary 1 Mhz channel within the operating channel.
Definition: mmwlan.h:2384
enum mmwlan_pmf_mode pmf_mode
Protected Management Frame mode to use (802.11w)
Definition: mmwlan.h:2338
uint16_t op_class
Operating Class to use (S1G or Global).
Definition: mmwlan.h:2351
uint8_t pri_bw_mhz
Bandwidth to use for the primary channel.
Definition: mmwlan.h:2379
uint8_t max_stas
Maximum number of stations that can connect to the AP simultaneously.
Definition: mmwlan.h:2401
uint16_t ssid_len
Length of the SSID.
Definition: mmwlan.h:2324
uint8_t bssid[MMWLAN_MAC_ADDR_LEN]
Optional BSSID of the AP.
Definition: mmwlan.h:2330
uint8_t ssid[MMWLAN_SSID_MAXLEN]
SSID of the AP.
Definition: mmwlan.h:2322
mmwlan_ap_sta_status_cb_t sta_status_cb
Optional callback to be invoked when the status of a connected STA changes.
Definition: mmwlan.h:2389
char passphrase[MMWLAN_PASSPHRASE_MAXLEN+1]
Passphrase (only used if security_type is MMWLAN_SAE, otherwise ignored.
Definition: mmwlan.h:2334
enum mmwlan_security_type security_type
Type of security to use.
Definition: mmwlan.h:2332
uint16_t passphrase_len
Length of passphrase.
Definition: mmwlan.h:2336
uint16_t dtim_period
The Delivery Traffic Indication Map (DTIM) interval in beacons.
Definition: mmwlan.h:2371
Data structure for communicating STA status information for stations connected to an AP.
Definition: mmwlan.h:2267
uint16_t aid
The AID of the STA.
Definition: mmwlan.h:2271
enum mmwlan_ap_sta_state state
The current state of the STA.
Definition: mmwlan.h:2269
uint8_t mac_addr[MMWLAN_MAC_ADDR_LEN]
The MAC address of the STA.
Definition: mmwlan.h:2273
Board configuration file (BCF) metadata.
Definition: mmwlan.h:346
char board_desc[MMWLAN_BCF_BOARD_DESC_MAXLEN+1]
Board description string.
Definition: mmwlan.h:364
uint8_t patch
Patch version field.
Definition: mmwlan.h:355
struct mmwlan_bcf_metadata::@1 version
BCF semantic version.
uint16_t major
Major version field.
Definition: mmwlan.h:351
uint8_t minor
Minor version field.
Definition: mmwlan.h:353
char build_version[MMWLAN_BCF_BUILD_VERSION_MAXLEN+1]
Build version string.
Definition: mmwlan.h:372
Structure for storing beacon vendor ie filter parameter.
Definition: mmwlan.h:2505
void * cb_arg
Opaque argument to be passed to the callbacks.
Definition: mmwlan.h:2516
mmwlan_beacon_vendor_ie_filter_cb_t cb
Callback that will be executed upon reception of a beacon containing a Vendor Specific information el...
Definition: mmwlan.h:2514
mmwlan_oui_t ouis[MMWLAN_BEACON_VENDOR_IE_MAX_OUI_FILTERS]
List of OUIs to filter on.
Definition: mmwlan.h:2521
uint8_t n_ouis
Number of OUIs contained within ouis.
Definition: mmwlan.h:2519
Arguments data structure for mmwlan_boot().
Definition: mmwlan.h:606
uint8_t reserved
Note this field should not be used and will be removed in future.
Definition: mmwlan.h:608
Whitelist filter configuration.
Definition: mmwlan.h:1677
uint16_t src_port
The source TCP or UDP port to match, 0 for any.
Definition: mmwlan.h:1691
uint32_t netmask
The netmask to apply to the source or destination IP, 0.0.0.0 for any.
Definition: mmwlan.h:1689
uint32_t src_ip
The IPv4 source address to match, 0.0.0.0 for any.
Definition: mmwlan.h:1685
uint16_t dest_port
The destination TCP or UDP port to match, 0 for any.
Definition: mmwlan.h:1693
uint32_t dest_ip
The IPv4 destination address to match, 0.0.0.0 for any - this is usually our IP address.
Definition: mmwlan.h:1687
uint16_t llc_protocol
The LLC protocol to match - 0x0800 for IPv4 and 0x86DD for IPv6, 0 for any.
Definition: mmwlan.h:1683
uint8_t flags
Flags - clear any active whitelist filters if bit 0 is set.
Definition: mmwlan.h:1679
uint8_t ip_protocol
The IP protocol to match - 6 for TCP, 17 for UDP, 0 for any.
Definition: mmwlan.h:1681
DHCP lease info structure.
Definition: mmwlan.h:1497
uint32_t ip4_addr
local IP address
Definition: mmwlan.h:1499
uint32_t mask4_addr
Netmask address.
Definition: mmwlan.h:1501
uint32_t dns4_addr
DNS address.
Definition: mmwlan.h:1505
uint32_t gw4_addr
Gateway address.
Definition: mmwlan.h:1503
Structure to hold the arguments used for the DPP process.
Definition: mmwlan.h:2186
void(* dpp_event_cb)(const struct mmwlan_dpp_cb_args *dpp_event, void *arg)
DPP event callback prototype.
Definition: mmwlan.h:2188
void * dpp_event_cb_arg
Optional user argument that will be passed back to the DPP event callback.
Definition: mmwlan.h:2190
Structure passed back when a DPP event occurs.
Definition: mmwlan.h:2157
union mmwlan_dpp_cb_args::@2 args
Union of arguments for DPP events.
const uint8_t * ssid
SSID of the AP to connect to.
Definition: mmwlan.h:2170
uint16_t ssid_len
Length of the SSID.
Definition: mmwlan.h:2172
const char * passphrase
Passphrase, NULL terminated.
Definition: mmwlan.h:2174
enum mmwlan_dpp_pb_result result
Result of DPP push button.
Definition: mmwlan.h:2168
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.
Definition: mmwlan.h:2159
Duty cycle configuration and statistics.
Definition: mmwlan.h:277
uint32_t burst_window_duration_us
Burst window duration (us) - applicable in burst mode only.
Definition: mmwlan.h:285
uint32_t burst_airtime_remaining_us
Airtime remaining (us) - applicable in burst mode only.
Definition: mmwlan.h:283
uint32_t duty_cycle
Target duty cycle in 100th of a %, i.e.
Definition: mmwlan.h:279
enum mmwlan_duty_cycle_mode mode
Configured duty cycle mode, see mmwlan_duty_cycle_mode.
Definition: mmwlan.h:281
Data structure used to represent an opaque buffer containing Morse statistics.
Definition: mmwlan.h:3058
uint8_t * buf
Buffer containing the stats.
Definition: mmwlan.h:3060
uint32_t len
Length of stats in buf.
Definition: mmwlan.h:3062
Structure for storing QoS queue parameters
Definition: mmwlan.h:491
uint8_t aci
Access Category Index [0..3].
Definition: mmwlan.h:493
uint32_t txop_max_us
Maximum burst time in microseconds, 0 meaning disabled.
Definition: mmwlan.h:501
uint16_t cw_min
Minimum Contention Window.
Definition: mmwlan.h:497
uint8_t aifs
Arbitration Inter-frame Space [2..255].
Definition: mmwlan.h:495
uint16_t cw_max
Maximum Contention Window.
Definition: mmwlan.h:499
Rate control statistics data structure.
Definition: mmwlan.h:3004
uint32_t * total_success
Total successes for each rate table entry.
Definition: mmwlan.h:3012
uint32_t n_entries
The number of rate table entries.
Definition: mmwlan.h:3006
uint32_t * rate_info
Rate info for each rate table entry.
Definition: mmwlan.h:3008
uint32_t * total_sent
Total number of packets sent for each rate table entry.
Definition: mmwlan.h:3010
Regulatory database data structure.
Definition: mmwlan.h:193
unsigned num_domains
Number of regulatory domains in the database.
Definition: mmwlan.h:195
const struct mmwlan_s1g_channel_list ** domains
The regulatory domain data.
Definition: mmwlan.h:198
Receive data packet metadata.
Definition: mmwlan.h:2712
uint8_t tid
QoS Traffic ID.
Definition: mmwlan.h:2717
enum mmwlan_vif vif
The virtual interface that the packet was received on.
Definition: mmwlan.h:2714
const uint8_t * ta
Transmitter Address (TA) of the received packet.
Definition: mmwlan.h:2720
A list of S1G channels supported by a given regulatory domain.
Definition: mmwlan.h:179
unsigned num_channels
The number of channels in the list.
Definition: mmwlan.h:183
uint8_t country_code[MMWLAN_COUNTRY_CODE_LEN]
Two character country code (null-terminated) used to identify the regulatory domain.
Definition: mmwlan.h:181
const struct mmwlan_s1g_channel * channels
The channel data.
Definition: mmwlan.h:185
Regulatory domain information about an S1G channel.
Definition: mmwlan.h:149
int8_t max_tx_eirp_dbm
Maximum transmit power (EIRP in dBm).
Definition: mmwlan.h:165
uint32_t airtime_min_us
The minimum packet airtime duration to trigger spacing (in microseconds).
Definition: mmwlan.h:169
int16_t s1g_operating_class
S1G operating class.
Definition: mmwlan.h:159
int16_t global_operating_class
Global operating class.
Definition: mmwlan.h:157
uint32_t airtime_max_us
The maximum allowable packet airtime duration (in microseconds).
Definition: mmwlan.h:171
uint32_t centre_freq_hz
Center frequency of the channel (in Hz).
Definition: mmwlan.h:151
bool duty_cycle_omit_ctrl_resp
Boolean indicating whether to omit control response frames from duty cycle.
Definition: mmwlan.h:155
uint16_t duty_cycle_sta
STA Duty Cycle (in 100th of %).
Definition: mmwlan.h:153
uint8_t s1g_chan_num
S1G channel number.
Definition: mmwlan.h:161
uint32_t pkt_spacing_us
The length of time to close the tx window between packets (in microseconds).
Definition: mmwlan.h:167
uint8_t bw_mhz
Channel operating bandwidth (in MHz).
Definition: mmwlan.h:163
Structure to hold scan arguments.
Definition: mmwlan.h:819
uint8_t * extra_ies
Extra Information Elements to include in Probe Request frames.
Definition: mmwlan.h:831
uint8_t ssid[MMWLAN_SSID_MAXLEN]
SSID used for scan.
Definition: mmwlan.h:838
uint32_t dwell_on_home_ms
Time to dwell on home channel in between channels during a scan, to allow traffic to still pass.
Definition: mmwlan.h:846
size_t extra_ies_len
Length of extra_ies.
Definition: mmwlan.h:833
uint16_t ssid_len
Length of the SSID.
Definition: mmwlan.h:840
uint32_t dwell_time_ms
Minimum time to dwell on a channel waiting for probe responses/beacons.
Definition: mmwlan.h:826
Scan configuration data structure.
Definition: mmwlan.h:745
bool ndp_probe_enabled
Boolean value indicating whether NDP probe support should be enabled.
Definition: mmwlan.h:765
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...
Definition: mmwlan.h:773
uint32_t dwell_time_ms
Set the per-channel dwell time to use for scans that are requested internally within the mmwlan drive...
Definition: mmwlan.h:752
Structure to hold arguments specific to a given instance of a scan.
Definition: mmwlan.h:872
mmwlan_scan_rx_cb_t scan_rx_cb
Scan response receive callback.
Definition: mmwlan.h:874
void * scan_cb_arg
Opaque argument to be passed to the callbacks.
Definition: mmwlan.h:878
mmwlan_scan_complete_cb_t scan_complete_cb
Scan complete callback.
Definition: mmwlan.h:876
struct mmwlan_scan_args args
Scan arguments to be used mmwlan_scan_args.
Definition: mmwlan.h:880
Result of the scan request.
Definition: mmwlan.h:698
uint8_t ssid_len
Length of the SSID (ssid).
Definition: mmwlan.h:714
uint8_t bw_mhz
Bandwidth, in MHz, where the frame was received.
Definition: mmwlan.h:718
const uint8_t * ies
Pointer to the start of the Information Elements within the Probe Response frame.
Definition: mmwlan.h:706
uint16_t capability_info
Value of the Capability Information field.
Definition: mmwlan.h:710
uint16_t ies_len
Length of the Information Elements (ies).
Definition: mmwlan.h:712
const uint8_t * bssid
Pointer to the BSSID field within the Probe Response frame.
Definition: mmwlan.h:702
uint32_t channel_freq_hz
Center frequency in Hz of the channel where the frame was received.
Definition: mmwlan.h:716
uint16_t beacon_interval
Value of the Beacon Interval field.
Definition: mmwlan.h:708
uint64_t tsf
TSF timestamp in the Probe Response frame.
Definition: mmwlan.h:727
uint8_t op_bw_mhz
Operating bandwidth, in MHz, of the access point.
Definition: mmwlan.h:720
int16_t rssi
RSSI of the received frame.
Definition: mmwlan.h:700
int8_t noise_dbm
Background noise measured by the chip on the channel at the time the probe response was received.
Definition: mmwlan.h:725
const uint8_t * ssid
Pointer to the SSID within the SSID IE of the Probe Response frame.
Definition: mmwlan.h:704
Structure for storing WNM sleep extended arguments.
Definition: mmwlan.h:2042
bool wnm_sleep_enabled
Boolean indicating whether WNM sleep is enabled.
Definition: mmwlan.h:2044
bool chip_powerdown_enabled
Boolean indicating whether chip should be powered down during WNM sleep.
Definition: mmwlan.h:2046
Arguments data structure for mmwlan_sta_enable().
Definition: mmwlan.h:1067
mmwlan_scan_rx_cb_t scan_rx_cb
Optional callback for scan results which are received during the connection process.
Definition: mmwlan.h:1126
int bgscan_signal_threshold_dbm
Background scan signal strength threshold that switches between short and long intervals.
Definition: mmwlan.h:1113
int16_t raw_sta_priority
Priority used by the AP to assign a STA to a Restricted Access Window (RAW) group.
Definition: mmwlan.h:1089
int sae_owe_ec_groups[MMWLAN_MAX_EC_GROUPS]
Preference list of enabled elliptic curve groups for SAE and OWE.
Definition: mmwlan.h:1096
uint16_t scan_interval_base_s
The base scan interval (in seconds) to use when (re)connecting.
Definition: mmwlan.h:1138
uint8_t ssid[MMWLAN_SSID_MAXLEN]
SSID of the AP to connect to.
Definition: mmwlan.h:1069
char passphrase[MMWLAN_PASSPHRASE_MAXLEN+1]
Passphrase (only used if security_type is MMWLAN_SAE, otherwise ignored.
Definition: mmwlan.h:1080
enum mmwlan_4addr_mode use_4addr
Whether the station should use Linux 4-address mode.
Definition: mmwlan.h:1175
enum mmwlan_pmf_mode pmf_mode
Protected Management Frame mode to use (802.11w)
Definition: mmwlan.h:1084
mmwlan_sta_event_cb_t sta_evt_cb
STA event callback with a user-defined opaque parameter.
Definition: mmwlan.h:1162
uint8_t * extra_assoc_ies
Extra Information Elements to include in association request frames.
Definition: mmwlan.h:1153
enum mmwlan_security_type security_type
Type of security to use.
Definition: mmwlan.h:1078
uint16_t passphrase_len
Length of passphrase.
Definition: mmwlan.h:1082
uint16_t bgscan_long_interval_s
Background scan long interval, measured in seconds.
Definition: mmwlan.h:1124
uint16_t bgscan_short_interval_s
Background scan short interval, measured in seconds.
Definition: mmwlan.h:1109
enum mmwlan_cac_mode cac_mode
Whether Centralized Authentication Controlled is enabled on the STA.
Definition: mmwlan.h:1098
uint8_t bssid[MMWLAN_MAC_ADDR_LEN]
BSSID of the AP to connect to.
Definition: mmwlan.h:1076
void * scan_rx_cb_arg
Opaque argument to be passed to scan_rx_cb.
Definition: mmwlan.h:1128
size_t extra_assoc_ies_len
Length of extra_assoc_ies.
Definition: mmwlan.h:1155
uint16_t ssid_len
Length of the SSID.
Definition: mmwlan.h:1071
void * sta_evt_cb_arg
STA event callback argument to be passed to sta_evt_cb.
Definition: mmwlan.h:1170
uint16_t scan_interval_limit_s
The maximum interval between scan attempts when (re)connecting.
Definition: mmwlan.h:1146
enum mmwlan_station_type sta_type
S1G non-AP STA type.
Definition: mmwlan.h:1091
Argument passed to the STA event callback.
Definition: mmwlan.h:1039
enum mmwlan_sta_event event
The event that triggered the callback.
Definition: mmwlan.h:1041
Standby mode configuration parameters.
Definition: mmwlan.h:1954
uint16_t dst_port
Destination UDP Port for the standby status packets, also used the source port for outgoing UDP port ...
Definition: mmwlan.h:1965
uint32_t src_ip
Source IP address to use for the standby status packets.
Definition: mmwlan.h:1958
uint32_t bss_inactivity_before_snooze_s
Definition: mmwlan.h:1969
uint32_t snooze_period_s
The interval in seconds to wake periodically from snooze and check for beacons.
Definition: mmwlan.h:1975
uint32_t snooze_increment_s
The amount in seconds to increase successive snooze intervals.
Definition: mmwlan.h:1981
uint32_t dst_ip
Destination IP address for the standby status packets.
Definition: mmwlan.h:1960
uint32_t snooze_max_s
The maximum time in seconds to snooze for after increments.
Definition: mmwlan.h:1983
uint32_t notify_period_s
Interval in seconds for transmitting Standby status packets.
Definition: mmwlan.h:1956
Arguments for mmwlan_standby_enter.
Definition: mmwlan.h:1817
mmwlan_standby_exit_cb_t standby_exit_cb
Callback function to call when we exit standby mode.
Definition: mmwlan.h:1819
void * standby_exit_arg
Arguments to pass to callback function.
Definition: mmwlan.h:1821
Arguments for mmwlan_standby_set_status_payload.
Definition: mmwlan.h:1867
uint8_t payload[MMWLAN_STANDBY_STATUS_FRAME_USER_PAYLOAD_MAXLEN]
User data to append to the standby status packets.
Definition: mmwlan.h:1869
uint32_t payload_len
The length of the payload in bytes.
Definition: mmwlan.h:1874
Arguments for mmwlan_standby_set_wake_filter.
Definition: mmwlan.h:1909
uint8_t filter[MMWLAN_STANDBY_WAKE_FRAME_USER_FILTER_MAXLEN]
Data to match with for filtering.
Definition: mmwlan.h:1911
uint32_t offset
The offset within the packet to search for the filter match.
Definition: mmwlan.h:1918
uint32_t filter_len
The length of the filter data in bytes.
Definition: mmwlan.h:1916
Data structure to contain all stats from the UMAC.
Definition: mmwlan_stats.h:48
Arguments data structure for TCP keep-alive arguments.
Definition: mmwlan.h:1586
uint16_t src_port
The source port for the keep alive packet.
Definition: mmwlan.h:1612
uint16_t period_s
The interval in seconds to send the keep alive in.
Definition: mmwlan.h:1596
uint32_t src_ip
The source IP for the keep alive packet.
Definition: mmwlan.h:1608
uint8_t retry_interval_s
The time to wait between retries in seconds.
Definition: mmwlan.h:1604
uint8_t set_cfgs
A bitmap specifying which configs to set.
Definition: mmwlan.h:1591
uint8_t retry_count
Number of times to retry before giving up.
Definition: mmwlan.h:1600
uint32_t dest_ip
The destination IP for the keep alive packet.
Definition: mmwlan.h:1616
uint16_t dest_port
The destination port for the keep alive packet.
Definition: mmwlan.h:1620
Structure for storing Target Wake Time (TWT) configuration arguments.
Definition: mmwlan.h:1341
enum mmwlan_twt_setup_command twt_setup_command
TWT setup command, mmwlan_twt_setup_command.
Definition: mmwlan.h:1363
uint64_t twt_wake_interval_us
TWT service period interval in micro seconds.
Definition: mmwlan.h:1349
uint32_t twt_min_wake_duration_us
Minimum TWT wake duration in micro seconds.
Definition: mmwlan.h:1361
uint8_t twt_wake_interval_exponent
TWT Wake interval exponent If non-zero, this parameter will be used to calculate twt_wake_interval_us...
Definition: mmwlan.h:1359
uint16_t twt_wake_interval_mantissa
TWT Wake interval mantissa If non-zero, this parameter will be used to calculate twt_wake_interval_us...
Definition: mmwlan.h:1354
enum mmwlan_twt_mode twt_mode
Target Wake Time (TWT) modes, mmwlan_twt_mode.
Definition: mmwlan.h:1343
Metadata for TX packets.
Definition: mmwlan.h:2807
const uint8_t * ra
Optional Receiver Address (RA).
Definition: mmwlan.h:2826
enum mmwlan_vif vif
VIF to transmit on.
Definition: mmwlan.h:2822
uint8_t tid
Traffic ID (TID) to use.
Definition: mmwlan.h:2812
Structure for retrieving version information from the mmwlan subsystem.
Definition: mmwlan.h:316
char morselib_version[MMWLAN_MORSELIB_VERSION_MAXLEN]
Morselib version string.
Definition: mmwlan.h:318
char morse_chip_id_string[MMWLAN_CHIP_ID_STRING_MAXLEN]
Morse transceiver chip ID user-friendly string.
Definition: mmwlan.h:324
char morse_fw_version[MMWLAN_FW_VERSION_MAXLEN]
Morse transceiver firmware version string.
Definition: mmwlan.h:320
uint32_t morse_chip_id
Morse transceiver chip ID.
Definition: mmwlan.h:322
VIF state used by mmwlan_vif_state_cb_t.
Definition: mmwlan.h:2623
enum mmwlan_vif vif
The VIF that this applies to.
Definition: mmwlan.h:2625
enum mmwlan_link_state link_state
The current link state of the VIF.
Definition: mmwlan.h:2627