Initial scrambler state of the data scrambler for each packet generated, specified as an
integer, a binary vector, a
1-by-N
U integer row vector, or
a 7-by-N
U binary matrix.
N
U is the number of users,
from 1 to 4. If specified as an integer or binary vector, the setting
applies to all users. If specified as a row vector or binary matrix, the
setting for each user is specified in the corresponding column, as an
integer in the interval [1, 127] or the corresponding binary vector.
The
scrambler initialization used on the transmission data follows the process described in
IEEE® Std 802.11™-2012, Section 18.3.5.5 and IEEE Std 802.11ad™-2012, Section 21.3.9. The header and data fields that follow the scrambler
initialization field (including data padding bits) are scrambled by XORing each bit with a
length-127 periodic sequence generated by the polynomial S(x) =
x7+x4+1. The octets of the PSDU (Physical Layer Service Data Unit) are placed into a
bit stream, and within each octet, bit 0 (LSB) is first and bit 7 (MSB) is last. The generation
of the sequence and the XOR operation are shown in this figure:
Conversion from integer to bits uses left-MSB orientation. For the
initialization of the scrambler with decimal 1
, the bits are mapped to the
elements shown.
Element | X7 | X6 | X5 | X4 | X3 | X2 | X1 |
---|
Bit Value | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
To generate the bit stream equivalent to a decimal, use de2bi
. For example, for decimal
1
:
de2bi(1,7,'left-msb')
ans =
0 0 0 0 0 0 1
Example: [1;0;1;1;1;0;1]
conveys the scrambler
initialization state of 93 as a binary vector.
Data Types: double
| int8