# /space/home/slher/rel/Beken/v6_4_5/macsw/modules/mac/src/mac_types.h File Reference

MAC related types. More...

`#include "co_int.h"`
`#include "co_bool.h"`
`#include "co_bit.h"`

Go to the source code of this file.

## Data Structures
struct | mac_addr
| MAC address structure. More...
struct | mac_ssid
| SSID. More...
struct | mac_chan_def
| Primary Channel definition. More...
struct | mac_chan_op
| Operating Channel. More...
struct | mac_scan_result
| Scan result element, parsed from beacon or probe response frames. More...
struct | mac_rateset
| Structure containing the legacy rateset of a station. More...
struct | mac_sec_key
| Structure defining a security key. More...
struct | mac_htcapability
| MAC HT capability information element. More...
struct | mac_vhtcapability
| MAC VHT capability information element. More...
struct | mac_he_mcs_nss_supp
| Structure listing the per-NSS, per-BW supported MCS combinations. More...
struct | mac_hecapability
| MAC HE capability information element. More...
## Defines
#define | MAC_ADDR_LEN 6
| MAC address length in bytes.
#define | MAC_SSID_LEN 32
| SSID maximum length.
#define | MAC_DOMAINCHANNEL_24G_MAX 14
| max number of channels in the 2.4 GHZ band
#define | MAC_DOMAINCHANNEL_5G_MAX 28
| max number of channels in the 5 GHZ band
#define | MAC_RATESET_LEN 12
| MAC rateset maximum length.
#define | MAC_SEC_KEY_LEN 32
| MAC Security Key maximum length.
#define | MAX_MCS_LEN 16
| MCS bitfield maximum size (in bytes).
#define | MAC_HE_MAC_CAPA_LEN 6
| Length (in bytes) of the MAC HE capability field.
#define | MAC_HE_PHY_CAPA_LEN 11
| Length (in bytes) of the PHY HE capability field.
#define | MAC_HE_PPE_THRES_MAX_LEN 25
| Maximum length (in bytes) of the PPE threshold data.
## Enumerations
enum | mac_vif_type { VIF_STA, VIF_IBSS, VIF_AP, VIF_MESH_POINT, VIF_MONITOR, VIF_UNKNOWN }
| Interface types. More...
enum | mac_bss_type { INFRASTRUCTURE_MODE = 1, INDEPENDENT_BSS_MODE, ANY_BSS_MODE }
| BSS type.
enum | mac_chan_band { PHY_BAND_2G4, PHY_BAND_5G, PHY_BAND_MAX }
| Channel Band. More...
enum | mac_chan_bandwidth { PHY_CHNL_BW_20, PHY_CHNL_BW_40, PHY_CHNL_BW_80, PHY_CHNL_BW_160, PHY_CHNL_BW_80P80, PHY_CHNL_BW_OTHER }
| Operating Channel Bandwidth. More...
enum | mac_chan_flags { CHAN_NO_IR = CO_BIT(0), CHAN_DISABLED = CO_BIT(1), CHAN_RADAR = CO_BIT(2) }
| Channel Flag. More...
enum | mac_cipher_suite { MAC_CIPHER_WEP40 = 0, MAC_CIPHER_TKIP = 1, MAC_CIPHER_CCMP = 2, MAC_CIPHER_WEP104 = 3, MAC_CIPHER_WPI_SMS4 = 4, MAC_CIPHER_BIP_CMAC_128 = 5, MAC_CIPHER_GCMP_128, MAC_CIPHER_GCMP_256, MAC_CIPHER_CCMP_256, MAC_CIPHER_BIP_GMAC_128, MAC_CIPHER_BIP_GMAC_256, MAC_CIPHER_BIP_CMAC_256, MAC_CIPHER_INVALID = 0xFF }
| Cipher suites (order is important as it is used by MACHW). More...
enum | mac_akm_suite { MAC_AKM_NONE, MAC_AKM_PRE_RSN, MAC_AKM_8021X, MAC_AKM_PSK, MAC_AKM_FT_8021X, MAC_AKM_FT_PSK, MAC_AKM_8021X_SHA256, MAC_AKM_PSK_SHA256, MAC_AKM_TDLS, MAC_AKM_SAE, MAC_AKM_FT_OVER_SAE, MAC_AKM_8021X_SUITE_B, MAC_AKM_8021X_SUITE_B_192, MAC_AKM_FILS_SHA256, MAC_AKM_FILS_SHA384, MAC_AKM_FT_FILS_SHA256, MAC_AKM_FT_FILS_SHA384, MAC_AKM_OWE, MAC_AKM_WAPI_CERT, MAC_AKM_WAPI_PSK }
| Authentication and Key Management suite. More...
enum | mac_legacy_rates { MAC_RATE_1MBPS = 2, MAC_RATE_2MBPS = 4, MAC_RATE_5_5MBPS = 11, MAC_RATE_6MBPS = 12, MAC_RATE_9MBPS = 18, MAC_RATE_11MBPS = 22, MAC_RATE_12MBPS = 24, MAC_RATE_18MBPS = 36, MAC_RATE_24MBPS = 48, MAC_RATE_36MBPS = 72, MAC_RATE_48MBPS = 96, MAC_RATE_54MBPS = 108 }
| Legacy rate 802.11 definitions. More...
enum | mac_bss_membership { MAC_BSS_MEMBERSHIP_HT_PHY = 127, MAC_BSS_MEMBERSHIP_VHT_PHY = 126 }
| BSS Membership Selector definitions. More...
enum | mac_ac { AC_BK = 0, AC_BE, AC_VI, AC_VO, AC_MAX }
| Access Category enumeration. More...
enum | mac_tid { TID_0, TID_1, TID_2, TID_3, TID_4, TID_5, TID_6, TID_7, TID_MGT, TID_MAX }
| Traffic ID enumeration. More...
enum | mac_sta_flags { STA_QOS_CAPA = CO_BIT(0), STA_HT_CAPA = CO_BIT(1), STA_VHT_CAPA = CO_BIT(2), STA_MFP_CAPA = CO_BIT(3), STA_OPMOD_NOTIF = CO_BIT(4), STA_HE_CAPA = CO_BIT(5) }
| Station flags. More...
enum | mac_connection_flags { CONTROL_PORT_HOST = CO_BIT(0), CONTROL_PORT_NO_ENC = CO_BIT(1), DISABLE_HT = CO_BIT(2), WPA_WPA2_IN_USE = CO_BIT(3), MFP_IN_USE = CO_BIT(4) }
| Connection flags. More...

## Detailed Description

MAC related types.

This file should contains all types, definitions that would be required for MACSW firmware integration.

Copyright (C) RivieraWaves 2011-2019

Definition in file mac_types.h.