LILY-W1 series - System integration manual
UBX-15027600 - R09
Software
Page 39 of 64
C1 - Public
Listing 6: Example transmit power limit configuration for channel 1
The format for the parameters is described in Table 23.
Field name
Type
Description
TLVStartFreq
UINT16
Starting frequency of the band for this channel:
2407, 2414 or 2400 for 2.4 GHz
TLVChanWidth
UINT8
Channel width in MHz (20)
TLVChanNum
UINT8
Logical 5 MHz channel number (1-255)
TLVPwr
UINT8[]
Specifies the transmit power limits for specific modulations as a list of (ModulationGroup,
Power) settings, where
Power specifies the Tx power limit in dBm
ModulationGroup specifies the mapping for the modulation as follows:
0 – CCK (1, 2, 5.5, 11 Mbps)
1 – OFDM (6, 9, 12, 18 Mbps)
2 – OFDM (24, 36 Mbps)
3 – OFDM (48, 54 Mbps)
4 – HT20 (MCS 0, 1, 2)
5 – HT20 (MCS 3, 4)
6 – HT20 (MCS 5, 6, 7)
7 – HT40 (MCS 0, 1, 2)
1
8 – HT40 (MCS 3, 4)
1
9 – HT40 (MCS 5, 6, 7)
1
1
Not supported on LILY-W1
Table 23: Transmit power limit configuration parameters
The example in Listing 6 configures the following transmit power limits for channel 1 in the 2.4 GHz
band:
•
16 dBm for 802.11b rates (BPSK, QPSK, CCK)
•
14 dBm for 802.11g OFDM (6-54 Mbps)
•
13 dBm for 802.11n HT20 (MCS 0-7)
3.9.3
Applying the transmit power limit configuration
The configuration file txpwrlimit_cfg.conf contains a section for setting the transmit power limits for
the 2.4 band. This can be applied using the mlanutl tool, as shown in the following example:
The driver will also look for a binary file (actually a text file with hex values) on the filesystem with the
transmit power limit configuration, whenever the regulatory domain is changed. The file name for this
should be txpower_XX.bin, where XX is the ISO/IEC 3166 alpha2 country code. The file is expected in
the same folder as the firmware. The binary configuration files can be generated from the
txpwrlimit_cfg.conf files via the mlanutl tool:
ChanTRPC.TlvType:2=0x0189
ChanTRPC.TlvLength:2={
TLVStartFreq:2=2407
TLVChanWidth:1=20
TLVChanNum:1=1
TLVPwr:20='0,1
6,1,14,2,14,3,14,4,13,5,13,6,13,7,13,8,13,9,13
'
}
mlan
utl mlan0 hostcmd txpwrlimit_cfg.conf
txpwrlimit_2g_cfg_set
mlanutl mlan0 hostcmd txpwrlimit_cfg.conf generate_raw <txpower_XX.bin>