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

MAC related definitions. More...

`#include "mac.h"`
`#include "hal_desc.h"`

Go to the source code of this file.

## Functions
uint32_t | mac_paid_gid_sta_compute (struct mac_addr const *mac_addr)
| Compute the PAID/GID to be put in the THD for frames that need to be sent to an AP or a Mesh peer.
uint32_t | mac_paid_gid_ap_compute (struct mac_addr const *mac_addr, uint16_t aid)
| Compute the PAID/GID to be put in the THD for frames that need to be sent to a STA connected to an AP or a TDLS peer.
enum mac_akm_suite | mac_akm_suite_value (uint32_t akm_suite)
| Convert IEE802.11 AKM suite into enum mac_akm_suite.
enum mac_cipher_suite | mac_cipher_suite_value (uint32_t cipher_suite)
| Convert IEE802.11 Cipher suite into enum mac_cipher_suite.
## Variables
const uint8_t | mac_tid2ac [TID_MAX]
| Array converting a TID to its associated AC.
const uint8_t | mac_ac2uapsd [AC_MAX]
| Array converting an AC to its corresponding bit in the QoS Information field.
const uint8_t | mac_aci2ac [AC_MAX]
| Array converting an ACI to its corresponding AC. See Table 9-136 in 802.11-2016.
const uint8_t | mac_ac2aci [AC_MAX]
| Array converting an AC to its corresponding ACI. See Table 9-136 in 802.11-2016.
const uint8_t | mac_id2rate [MAC_RATESET_LEN]
| Array converting a MAC HW rate id into its corresponding standard rate value.
struct mac_addr | mac_addr_bcst = {{0xFFFF, 0xFFFF, 0xFFFF}}
| Constant value corresponding to the Broadcast MAC address.

## Detailed Description

MAC related definitions.

Copyright (C) RivieraWaves 2011-2019

Definition in file mac.c.