wlanHTSIG

Generate HT-SIG waveform

Description

example

y = wlanHTSIG(cfg) generates an HT-SIG[1] time-domain waveform for HT-mixed format transmissions given the parameters specified in cfg.

example

[y,bits] = wlanHTSIG(cfg) returns the information bits, bits, that comprise the HT-SIG field.

Examples

collapse all

Generate an HT-SIG waveform for a single transmit antenna.

Create an HT configuration object. Specify a 40 MHz channel bandwidth.

cfg = wlanHTConfig;
cfg.ChannelBandwidth = 'CBW40'
cfg = 
  wlanHTConfig with properties:

       ChannelBandwidth: 'CBW40'
    NumTransmitAntennas: 1
    NumSpaceTimeStreams: 1
         SpatialMapping: 'Direct'
                    MCS: 0
          GuardInterval: 'Long'
          ChannelCoding: 'BCC'
             PSDULength: 1024
         AggregatedMPDU: 0
     RecommendSmoothing: 1

Generate the HT-SIG waveform. Determine the size of the waveform.

y = wlanHTSIG(cfg);
size(y)
ans = 1×2

   320     1

The function returns a waveform having a complex output of 320 samples corresponding to two 160-sample OFDM symbols.

Generate an HT-SIG waveform and display the MCS information. Change the MCS and display the updated information.

Create a wlanHTConfig object having two spatial streams and two transmit antennas. Specify an MCS value of 8, corresponding to BPSK modulation and a coding rate of 1/2.

cfg = wlanHTConfig('NumSpaceTimeStreams',2,'NumTransmitAntennas',2,'MCS',8);

Generate the information bits from the HT-SIG waveform.

[~,sigBits] = wlanHTSIG(cfg);

Extract the MCS field from sigBits and convert it to its decimal equivalent. The MCS information is contained in bits 1-7.

 mcsBits = sigBits(1:7);
 bi2de(mcsBits')
ans = int8
    8

The MCS matches the specified value.

Change the MCS to 13, which corresponds to 64-QAM modulation with a 2/3 coding rate. Generate the HT-SIG waveform.

cfg.MCS = 13;
[~,sigBits] = wlanHTSIG(cfg);

Verify that the MCS bits are the binary equivalent of 13.

mcsBits = sigBits(1:7);
bi2de(mcsBits')
ans = int8
    13

Input Arguments

collapse all

Format configuration, specified as a wlanHTConfig object.

Output Arguments

collapse all

HT-SIG waveform, returned as an NS-by-NT matrix. NS is the number of time-domain samples, and NT is the number of transmit antennas.

Data Types: double
Complex Number Support: Yes

HT-SIG information bits, returned as a 48-by-1 vector.

Data Types: int8

More About

collapse all

HT-SIG

The high throughput signal (HT-SIG) field is located between the L-SIG field and HT-STF and is part of the HT-mixed format preamble. It is composed of two symbols, HT-SIG1 and HT-SIG2.

HT-SIG carries information used to decode the HT packet, including the MCS, packet length, FEC coding type, guard interval, number of extension spatial streams, and whether there is payload aggregation. The HT-SIG symbols are also used for auto-detection between HT-mixed format and legacy OFDM packets.

For a detailed description of the HT-SIG field, see Section 19.3.9.4.3 of IEEE® Std 802.11™-2016.

HT-mixed

As described in IEEE Std 802.11-2012, Section 20.1.4, high throughput mixed (HT-mixed) format packets contain a preamble compatible with IEEE Std 802.11-2012, Section 18 and Section 19 receivers. Non-HT (Section 18 and Section19) STAs can decode the non-HT fields (L-STF, L-LTF, and L-SIG). The remaining preamble fields (HT-SIG, HT-STF, and HT-LTF) are for HT transmission, so the Section 18 and Section 19 STAs cannot decode them. The HT portion of the packet is described in IEEE Std 802.11-2012, Section 20.3.9.4. Support for the HT-mixed format is mandatory.

References

[1] IEEE Std 802.11™-2012 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.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced in R2015b

[1] IEEE Std 802.11-2012 Adapted and reprinted with permission from IEEE. Copyright IEEE 2012. All rights reserved.