%% Generate Beacon MAC Frame with Service Set Identifier (SSID)
% Create a wlanMACManagementConfig configuration object, specifying the SSID as 'demo SSID'.

mgmtConfig = wlanMACManagementConfig('SSID','demo SSID');

% Create a wlanMACFrameConfig configuration object, specifying the management frame-body configuration object as mgmtConfig and a beacon MAC frame.

macConfig = wlanMACFrameConfig('FrameType','Beacon','ManagementConfig',mgmtConfig);

% Generate the beacon MAC frame with the specified SSID.

[macFrame,frameLength] = wlanMACFrame(macConfig);

%
% Display the frame length.

frameLength

% Copyright 2018 The MathWorks, Inc.