JODY-W2 - System integration manual
UBX-18068879 - R14
Software
Page 45 of 84
C1 - Public
A sample of the configuration file for 5 GHz channels is shown below.
☞
Contrary to the configuration of 2.4 GHz band, the transmit-power-limit configurations for the
5 GHz band are not defined through a channel center frequency but must instead be specified
for all related 20 MHz channels. For example, the 40 MHz channel at the center frequency
5190 MHz (20 MHz channels 36+40) uses the transmit power limits from HT40 values in the
entry with
TLVChanNum=36
. These limits should be equal to the HT40 values in the entry with
TLVChanNum=40
.
For the exact power limits used in the u-blox reference design for the various certifications, see the
Appendix: Wi-Fi Tx output power limits
Applying the transmit power limit configuration
The configuration file
txpwrlimit_cfg.conf
contains separate sections for setting the transmit power
limits for 2.4 and 5 GHz. These can be applied using the
mlanutl
tool, as shown in the following
example:
The WLAN driver also looks for a binary file (text file with hex values) on the filesystem, with the
transmit power limit configuration, whenever the regulatory domain is changed. The file name of this
file should be
txpower_XX.bin
, where
“
XX
”
is the ISO/IEC 3166 alpha2 country code. The file is expected
to reside in the same folder as the firmware. The binary configuration files can be generated from the
txpwrlimit_cfg.conf
files using the
mlanutl
tool:
## 5G Tx power limit CFG
txpwrlimit_5g_cfg_set={
CmdCode=0x00fb # do NOT change this line
Action:2=1 # 1 - SET
RSVD:2=0 # do NOT change this line
ChanTRPC.TlvType:2=0x0189
ChanTRPC.TlvLength:2={
TLVStartFreq:2=5000
TLVChanWidth:1=20
TLVChanNum:1=36
TLVPwr:30='1,15,2,15,3,15,4,15,5,15,6,15,7,15,8,15,9,15,10,15,11,15,12,14,
13,14,14,14,15,14'
}
ChanTRPC.TlvType:2=0x0189
ChanTRPC.TlvLength:2={
TLVStartFreq:2=5000
TLVChanWidth:1=20
TLVChanNum:1=40
TLVPwr:30='1,15,2,15,3,15,4,15,5,15,6,15,7,15,8,15,9,15,10,15,11,15,12,14,
13,14,14,14,15,14'
}
…
}
mlanutl mlan0 hostcmd txpwrlimit_cfg.conf txpwrlimit_2g_cfg_set
mlanutl mlan0 hostcmd txpwrlimit_cfg.conf txpwrlimit_5g_cfg_set
mlanutl mlan0 hostcmd txpwrlimit_cfg.conf generate_raw <txpower_XX.bin>