%% Generate HT-Format A-MPDU
% Create MAC and physical layer (PHY) configuration objects, which are required to generate a high-throughput-format (HT-format) aggregated MAC protocol data unit (A-MPDU).

macConfig = wlanMACFrameConfig('FrameType','QoS Data','FrameFormat','HT-Mixed', ...
                                       'MPDUAggregation',true);
phyConfig = wlanHTConfig('MCS',4);

% Generate an HT-format A-MPDU containing the specified MAC service data unit (MSDU) payloads.

payload = {'00576000103afffe80','020000fffe00001ff0','002c0b0fffe000001f'};
[frame,frameLength] = wlanMACFrame(payload,macConfig,phyConfig);

% Display the frame length.

disp(frameLength)

% Copyright 2018 The MathWorks, Inc.