Verifying the Wi-Fi regulatory data (CLM) using “wl curpower” - KBA234192
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Community Translation: 「wl curpower」を使用してWi-Fi規制データ(CLM)を検証する – KBA234192
You can request a per-product clm_blob from Infineon, with all necessary information as mentioned in the CLM regulatory manual [1]. Later, when you receive the blob, you can verify the CLM data (power numbers which are provided by you through CLM Excel templates) by using the wl curpower command, which prints the current transmit power settings.
The output shows the regulatory limits (derived from the CLM data (.clm_blob file)), board limits (derived from the NVRAM), and the target powers (computed from the regulatory limit and target power; usually equal to the minimum of the regulatory and board limits, minus 1.5 dB).
For each class of limits, the rates (or rate groups) are named using the standard naming scheme. If a rate is not supported for a particular channel, the rate is listed with power '-'.
Note
The curpower command can be performed only if the manufacturing WLAN firmware (mfg-test firmware) is used. See the following screenshot. The wl ver command outputs the firmware version currently being used; CY WLTEST means the manufacturing test firmware is being used.
The following error indicates that the mfg-test firmware is not loaded. Therefore, you must load the mfg-test firmware to avoid this error.
WL commands to be used
Commands |
Description |
wl country US/0 |
Set the country code. |
wl mpc 0 |
Disables the minimum power consumption |
wl up |
Turn ON the radio |
wl channel X |
Set the channel whose regulatory data is to be checked (X = 1-13, 36-48, 52-64, 100-140, 144, 165) |
wl curpower |
Outputs the curpower data |
Output
- Set the country to US/0 and channel 1:
Here, after passing the wl commands, you can see that various parameters are being set.
For example:
Current channel = 1 : Current channel set to Channel 1
Channel width = 20MHz : Bandwidth for Channel 1 set as 20 MHz
SROM Antgain 2G = 2.5 dBm : Antenna gain for the 2.4-GHz band set to 2.5 dBm - Regulatory limits
The Regulatory Limits output shows the power numbers (in dBm) which are stored in the .clm_blob file for respective rates. The Chains entry indicates the antenna chain used for transmission and/or reception. - Board limits
The Board Limits output shows the power limits (in dBm) which are stored in the NVRAM file for respective rates. - Power Target
The Power Target output shows the final maximum output power that the radio can transmit. It is calculated as the min(Regulatory limit, Board limit) – 1.5. Here, the Power Target for DSSS = min(19, 18.5) – 1.5 = 18.5 – 1.5 = 17 dBm.
-
For 40- or 80-MHz channels
Here, run the wl chanspecs command. This will list all the channels (20-, 40-, and 80-MHz) and select a 40-/80-MHz channel as one of the following:
wl chanspec 36/80 (this will set the channel to 80-MHz channel 42)
wl chanspec 36l (this will select the 40-MHz channel 38)The following image shows the setting of an 80-MHz channel and its corresponding curpower output.
Note: The listed chanspec is set for a particular country code (US/0). This may vary for different countries.
- At the bottom of the curpower output, you can see the following:
The “Maximum Power Target among all rates” is the maximum power value amongst all the rates (DSSS, OFDM, MCS0, etc.) of the Power Target output. In this case, 17 dBm is the maximum power number amongst all the rates.
The “Power Target for the current rate” is the power value of the Power Target output for a selected rate. Here, rate MCS1 is selected (see screenshot of point 1 - Current rate: [MCS1] ht mcs 1 Tx Exp 0 BW 20), and therefore, 7.5 dBm is displayed.
Reference
- AN225347 – Wi-Fi CLM Regulatory Manual