wlanMPDUDecode
can be used to decode an MPDU. This function processes the given MPDU and a physical layer configuration object to output the decoded MAC parameters.wlanMACFrame
. The created MPDU is passed to the wlanMPDUDecode
function and the outputs are observed.wlanMACFrame
. The following inputs are required to form a Non-HT format QoS Data frame containing a 40-octet payload:txFrameCfg
: A MAC frame configuration object of type wlanMACFrameConfig
.txMSDU
: A 40-octet payload (MSDU) to be included in the QoS Data frame.wlanMPDUDecode
consumes an MPDU, a PHY configuration object of type wlanNonHTConfig
, wlanHTConfig
, wlanVHTConfig
, or wlanHESUConfig
and optionally a (Name, Value) pair for DataFormat
specifying the input format of the MPDU. Since the MPDU generated using wlanMACFrame
is in terms of octets, DataFormat
is set to octets
. wlanMPDUDecode
decodes the MPDU and outputs the following information:rxFrameCfg
: A MAC frame configuration object of type wlanMACFrameConfig
, containing the decoded MAC parameters.rxMSDU
: A cell array, where each element is an n-by-2 character array representing the decoded MSDU. Multiple MSDUs are returned when the MPDU contains an aggregated MSDU (A-MSDU) as the payload.status
: An enumeration of type status, which indicates whether the MPDU decoding was successful.wlanAMPDUDeaggregate
can be used to deaggregate an A-MPDU. This function processes the given A-MPDU and the corresponding physical layer configuration object to output the deaggregated list of MPDUs. wlanAMPDUDeaggregate
is capable of decoding HT (High Throughput), VHT (Very High Throughput), HE-SU (High Efficiency Single User) and HE-EXT-SU (High Efficiency Extended Range Single User) format A-MPDUs as specified in [ 1 ] and [ 2 ].wlanMACFrame
. The created A-MPDU is passed to the wlanAMPDUDeaggregate
function and the outputs are observed.txFrameCfg
: A MAC frame configuration object of type wlanMACFrameConfig
.txMSDUList
: A five element cell array containing payload (MSDU) for five MPDUs. Since MSDUAggregation
is set to false in the txFrameCfg
, a separate MPDU is created for each MSDU.phyCfg
: A physical layer configuration object of type wlanHESUConfig
.wlanAMPDUDeaggregate
consumes an A-MPDU, a PHY configuration object of type wlanHTConfig
, wlanVHTConfig
, or wlanHESUConfig
and optionally a (Name, Value) pair for DataFormat
specifying the input format of the A-MPDU. It finds and validates the MPDU delimiters, extracts the MPDUs and outputs the following information that can be used for further processing the MPDUs:mpduList
: A cell array containing the list of MPDUs extracted from the A-MPDU.delimCRCFails
: A logical row vector representing delimiter CRC validity for the corresponding index in mpduList
. A value of true represents that the MPDU present in mpduList
at the corresponding index may not be properly extracted.ampduStatus
: An enumeration of type status, which indicates whether the A-MPDU deaggregation was successful.mpduList
contains the list of MPDUs extracted from the A-MPDU. Each of the MPDUs present in the list can be decoded separately. However, if the delimCRCFails
contains any true
values, the MPDU present in mpduList
at the corresponding index can be considered invalid as it may not be properly extracted because of the delimiter CRC failure.