%% Decode MPDU in Octet Form.
% Create a WLAN MAC frame configuration object for a QoS data frame, then generate the QoS data MPDU in octet form.

txCfgMAC =  wlanMACFrameConfig('FrameType','QoS Data');
mpdu = wlanMACFrame(randi([0 255],1,40),txCfgMAC);

% Create a non-HT-format configuration object with default settings.

cfgPHY = wlanNonHTConfig;

% Return the MSDUs by decoding the MPDU for the specified PHY format configuration.

[rxCfgMAC,payload,status] = wlanMPDUDecode(mpdu,cfgPHY,'DataFormat','octets');

% Copyright 2018 The MathWorks, Inc.