wlanMACFrame
Generate WLAN MAC frame (MPDU or A-MPDU)
Syntax
Description
[
generates frame
,frameLength
] = wlanMACFrame(cfgMAC
)frame
, a WLAN medium access control (MAC) frame for the
specified MAC frame configuration object. The function generates a MAC protocol data unit
(MPDU) or an aggregate MPDU (A-MPDU), depending on the property values of the
cfgMAC
input. The function also returns
frameLength
, the total length of the generated MAC frame.
[
generates a WLAN MAC frame containing MAC service data units (MSDUs)
frame
,frameLength
] = wlanMACFrame(payload
,cfgMAC
)payload
. For the MAC frame to contain the MSDUs, you must set the
FrameType
property of the cfgMAC
input to
'Data'
or 'QoS Data'
. Otherwise, the function
ignores payload
.
[
generates a WLAN MAC frame for the physical layer (PHY) format and transmission parameters
specified in frame
,frameLength
] = wlanMACFrame(payload
,cfgMAC
,cfgPHY
)cfgPHY
. To generate A-MPDUs in high-efficiency (HE), very
high throughput (VHT) high-throughput (HT), or extremely high throughput single user (EHT
SU) frame formats, use this syntax.
[
generates a WLAN MAC trigger frame for the specified MAC and PHY configurations. To create a
MAC trigger frame, the frame
,frameLength
] = wlanMACFrame(cfgMAC
,cfgPHY
)cfgPHY
input must be a wlanNonHTConfig
object, and you must set the FrameType
property of the cfgMAC
input to 'Trigger'
.
[
specifies the data format of the generated frame in addition to any input argument
combination from previous syntaxes.frame
,frameLength
] = wlanMACFrame(___,OutputFormat=format
)
Examples
Input Arguments
Output Arguments
References
[1] IEEE Std 802.11™-2020 (Revision of IEEE Std 802.11-2016). “Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications.” IEEE Standard for Information Technology — Telecommunications and Information Exchange between Systems — Local and Metropolitan Area Networks — Specific Requirements.
[2] IEEE® Std 802.11ax™-2021 (Amendment to IEEE Std 802.11-2020). “Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications. Amendment 1: Enhancements for High Efficiency WLAN.” IEEE Standard for Information Technology — Telecommunications and Information Exchange between Systems. Local and Metropolitan Area Networks — Specific Requirements.
Extended Capabilities
Version History
Introduced in R2018b
See Also
Objects
wlanHTConfig
|wlanVHTConfig
|wlanHESUConfig
|wlanMACFrameConfig
|wlanMACManagementConfig
|wlanEHTMUConfig