Main Content

wlanLSIG

Generate L-SIG waveform

Description

[y,bits] = wlanLSIG(cfgFormat) generates an L-SIG1 time-domain waveform using the specified transmission parameters.

Note

When you specify cfgFormat as a wlanNonHTConfig object, the function supports only OFDM modulation.

example

[y,bits] = wlanLSIG(cfgFormat,OversamplingFactor=osf) generates an oversampled HT-LTF waveform with the specified oversampling factor. For more information about oversampling, see FFT-Based Oversampling.

example

Examples

collapse all

Create a non-HT configuration object. The default modulation and coding scheme (MCS) is 0.

cfg = wlanNonHTConfig;

Generate the L-SIG waveform and information bits. Extract the rate from the returned bits.

[~,bits] = wlanLSIG(cfg);

Display the first four bits, which contain the rate information. As defined in Table 18-6 of IEEE Std 802.11™-2012, a value of [1 1 0 1] corresponds to a rate of 6 Mbps for 20 MHz channel spacing.

disp(bits(1:4)')
   1   1   0   1

Change the MCS to 7 then generate the corresponding L-SIG waveform and information bits. Extract the rate from the returned bits and analyze. The rate information is contained in the first four bits.

cfg.MCS = 7;
[y,bits] = wlanLSIG(cfg);

Display the first four bits. As defined in IEEE Std 802.11-2012, Table 18-6, a value of [0 0 1 1] corresponds to a rate of 54 Mbps for 20 MHz channel spacing.

disp(bits(1:4)')
   0   0   1   1

Configure an 80 MHz VHT transmission.

cfgVHT = wlanVHTConfig(ChannelBandwidth="CBW80");

Specify an oversampling rate and generate the L-SIG waveform.

osf = 2;
[y,bits] = wlanLSIG(cfgVHT,OversamplingFactor=osf);
size(y)
ans = 1×2

   640     1

Input Arguments

collapse all

Transmission parameters, specified as a wlanVHTConfig, wlanHTConfig, or wlanNonHTConfig object.

Oversampling factor, specified as a scalar greater than or equal to 1. The oversampled cyclic prefix length must be an integer number of samples.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

Output Arguments

collapse all

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

NS is proportional to the channel bandwidth.

ChannelBandwidthNS
'CBW5', 'CBW10', 'CBW20'80
'CBW40'160
'CBW80'320
'CBW160'640

Data Types: double
Complex Number Support: Yes

Signaling bits from the legacy signal field, returned as a 24-by-1 bit column vector. See L-SIG for the bit field description.

Data Types: int8

More About

collapse all

Algorithms

collapse all

References

[1] IEEE Std 802.11ac™-2013 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 — Amendment 4: Enhancements for Very High Throughput for Operation in Bands below 6 GHz.

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

Extended Capabilities

expand all

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

Version History

Introduced in R2015b


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