NXP Semiconductors
UM11490
Feature Configuration Guide for NXP-based Wireless Modules on i.MX 8M Quad EVK
2.9 ED-MAC and Tx power enable
This section provides the guidelines to enable energy detection (ED) for the adaptivity
test and to load the converted Tx power table.
2.9.1 ED-MAC enable
This section provides the instructions to edit the configuration file and enable ED-MAC
configuration.
Step 1 - Edit the configuration file
The path to
ed_mac_ctrl_V3_8987.conf
file is as follows:
/usr/share/nxp_wireless/bin_mxm_wifiex/config/
Edit the
.conf
file to set
ed_ctrl_2g.enable:2 = 0x01
to enable energy detection for
the adaptivity test. In the configuration file, the offset values of
ed_ctrl_2g.offset:2
and
ed_ctrl_5g.offset:2
parameters are used to adjust the ED threshold during the
EU adaptivity test.
ed_mac_ctrl_v3={
CmdCode=0x0130 #Command code, DO NOT change this line
ed_ctrl_2g.enable:2=0x1 # 0 - disable EU adaptivity for 2.4GHz band
# 1 - enable EU adaptivity for 2.4GHz band
ed_ctrl_2g.offset:2=0x6 # 0 - Default Energy Detect threshold
#offset value range: 0x80 to 0x7F
ed_ctrl_5g.enable:2=0x1 # 0 - disable EU adaptivity for 5GHz band
# 1 - enable EU adaptivity for 5GHz band
ed_ctrl_5g.offset:2=0x6 # 0 - Default Energy Detect threshold
#offset value range: 0x80 to 0x7F
ed_ctrl_txq_lock:4=0xFF #DO NOT Change this line
}
Step 2 - Convert the configuration file to a binary format
The ED-MAC configuration file
ed_mac_ctrl_V3_8987.conf
file must be converted to
a binary format (
.bin
) so the wireless driver can use it. The following command uses
mlanutl
utility to convert the configuration file to a binary format.
mlanutl
utility is stored at
the following location:
/usr/share/nxp_wireless/bin_mxm_wifiex/
mlanutl <wireless interface> hostcmd <conf_file_name> generate_raw
<bin_file_name>
Where:
Command parameter
Description
wireless interface
Name of the wireless interface used in the system, for example mlan0
conf_file_name
Name of ED-MAC configuration file
bin_file_name
Name of the output binary file to be generated
Example
root@imx8mqevk:~# ./mlanutl mlan0 hostcmd config/
ed_mac_ctrl_V3_8987.conf generate_raw ed_mac.bin
Copy the newly generated binary file
ed_mac.bin
and paste into the wireless firmware
directory.
UM11490
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2021. All rights reserved.
User manual
Rev. 2 — 29 January 2021
38 / 88