Update MAC management frame configuration object with specified IE



macmgmtconfig = addIE(macmgmtconfig,id,information) appends the specified information element (IE) to the InformationElements property in wlanMACManagementConfig.


collapse all

Add the DSSS Parameter Set information element to a WLAN MAC management frame-body configuration object by using the addIE object function. The element ID for this information element is 3. The information is '0b', representing the current channel (11) in hexadecimal format.

config = wlanMACManagementConfig('FrameType','Beacon');
id = 3;
information = '0b'
information = 
config = addIE(config,id,information);

Display the information elements of the frame-body configuration object by using the displayIEs object function.

Element ID: 0, Information: 0x64656661756C742053534944
Element ID: 1, Information: 0x8C98B0
Element ID: 3, Information: 0x0B

Input Arguments

collapse all

MAC management frame configuration, specified as a wlanMACManagementConfig object.

IE ID field, specified as a nonnegative integer in the interval [0,255]. For more information, refer to Table 9-77 in [1]

Data Types: double

Value of information field in hexadecimal format, specified as a character vector or string scalar of hexadecimal octets. Refer to Section 9.4.2 in [1].

Data Types: char | string

Output Arguments

collapse all

MAC management frame-body configuration with updated IE, returned as a wlanMACManagementConfig object.


[1] IEEE Std 802.11™-2016 IEEE Standard for Information technology — Telecommunications and information exchange between systems — Local and metropolitan area networks — Specific requirements — Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications.

Introduced in R2018b