[88W8997] WLAN RF Test Hello, we want to perform the WIFI/BT regulatory compliance test for the 88W8997 module, which is assembled on the Toradex imx8mp SOM. We are following the instructions described here: https://www.nxp.com/docs/en/application-note/AN14114.pdf For building the driver we were following the UM11675 document, where it refers to https://github.com/nxp-imx/mwifiex (driver) and https://github.com/nxp-imx/imx-firmware (related firmware packages). I build and installed the driver and the firmware on my device and tried to get into the rf test mode. The mentioned driver offers me now the possibility to use the /proc/mwlan/adapter0 interface, where I tried to switch to test mode with the echo "rf_test_mode=1" > /proc/mwlan/adapter0/config" command. Unfortunately, the driver prints Could not set RF test mode. Why is it not possible to switch directly to test mode? After further investigation I figured out that if I change the drv_mode to 2 (drv_mode=2 > config), I am able to switch to test mode with "rf_test_mode=1" command. Is this correct? Shouldn't it be possible to get into the mode with the default drv_mode value (default: drv_mode=7)? However, I continued the documents where I entered the described commands: echo "tx_frame=0" > /proc/mwlan/adapter0/config echo "tx_antenna=2" > /proc/mwlan/adapter0/config echo "band=0" > /proc/mwlan/adapter0/config echo "bw=0" > /proc/mwlan/adapter0/config echo "channel=" + str(channel)) echo "tx_power=10 0 1" > /proc/mwlan/adapter0/config echo "tx_frame=1 0x3 0xB496DEB6 0x400 1 100 0 0 0 0 0 0 0 -1 -1 -1 -1 -1 -1 -1 -1 {MAC_ADDRESS}" > /proc/mwlan/adapter0/config When I check the results on the spectrum analyzer, I cannot see any change there. Is there another possibility to check the test mode is working? Another strange thing is, that as MAC address it always shows 00:00:00:00:00, even though I am setting it with tx_frame. hardware_status=0 netlink_num=31 drv_mode=2 hssetpara=7,0xff,200,400 sdcmd52rw=0 0x0 0x00 rf_test_mode=1 tx_antenna=1 rx_antenna=1 band=0 bw=0 channel= radio_mode[0]= radio_mode[1]= total rx pkt count=0 rx multicast/broadcast pkt count=0 rx fcs error pkt count=0 tx_power= tx_continuous=0 tx_frame=0 he_tb_tx=0 trigger_frame=0 otp_mac_add_rd_wr= 00:00:00:00:00:00 antcfg=0x3 0x3 Further notes: I read somewhere, that a mfg firmware must be used. When I add this firmware to /lib/firmware/nxp, modify the wifi_mod_para.conf file (Replaced the fw_name with the mfg firmware and added mfg_mode=1 to the SD8997 section) and reloaded the driver (rmmod moal.ko; insmod moal.ko mod_para=nxp/wifi_mod_para.conf. The driver prints that the firmware is already running. When I use echo "fw_reload=1" > /proc/mwlan/adapterX/config, the driver prints the download of FW failed. A reboot is then required. Can you help me out here? Thanks Re: [88W8997] WLAN RF Test @sportzfy we want to perform the WIFI/BT regulatory compliance test for the 88W8997 module, which is assembled on the Toradex imx8mp SOM. We are following the instructions described here: https://www.nxp.com/docs/en/application-note/AN14114.pdf For building the driver we were following the UM11675 document, where it refers to https://github.com/nxp-imx/mwifiex (driver) and https://github.com/nxp-imx/imx-firmware (related firmware packages). I build and installed the driver and the firmware on my device and tried to get into the rf test mode. The mentioned driver offers me now the possibility to use the /proc/mwlan/adapter0 interface, where I tried to switch to test mode with the echo "rf_test_mode=1" > /proc/mwlan/adapter0/config" command. Unfortunately, the driver prints Could not set RF test mode. Why is it not possible to switch directly to test mode? After further investigation I figured out that if I change the drv_mode to 2 (drv_mode=2 > config), I am able to switch to test mode with "rf_test_mode=1" command. Is this correct? Shouldn't it be possible to get into the mode with the default drv_mode value (default: drv_mode=7)? However, I continued the documents where I entered the described commands: echo "tx_frame=0" > /proc/mwlan/adapter0/config echo "tx_antenna=2" > /proc/mwlan/adapter0/config echo "band=0" > /proc/mwlan/adapter0/config echo "bw=0" > /proc/mwlan/adapter0/config echo "channel=" + str(channel)) echo "tx_power=10 0 1" > /proc/mwlan/adapter0/config echo "tx_frame=1 0x3 0xB496DEB6 0x400 1 100 0 0 0 0 0 0 0 -1 -1 -1 -1 -1 -1 -1 -1 {MAC_ADDRESS}" > /proc/mwlan/adapter0/config When I check the results on the spectrum analyzer, I cannot see any change there. Is there another possibility to check the test mode is working? Another strange thing is, that as MAC address it always shows 00:00:00:00:00, even though I am setting it with tx_frame. hardware_status=0 netlink_num=31 drv_mode=2 hssetpara=7,0xff,200,400 sdcmd52rw=0 0x0 0x00 rf_test_mode=1 tx_antenna=1 rx_antenna=1 band=0 bw=0 channel= radio_mode[0]= radio_mode[1]= total rx pkt count=0 rx multicast/broadcast pkt count=0 rx fcs error pkt count=0 tx_power= tx_continuous=0 tx_frame=0 he_tb_tx=0 trigger_frame=0 otp_mac_add_rd_wr= 00:00:00:00:00:00 antcfg=0x3 0x3 Further notes: I read somewhere, that a mfg firmware must be used. When I add this firmware to /lib/firmware/nxp, modify the wifi_mod_para.conf file (Replaced the fw_name with the mfg firmware and added mfg_mode=1 to the SD8997 section) and reloaded the driver (rmmod moal.ko; insmod moal.ko mod_para=nxp/wifi_mod_para.conf. The driver prints that the firmware is already running. When I use echo "fw_reload=1" > /proc/mwlan/adapterX/config, the driver prints the download of FW failed. A reboot is then required. Can you help me out here? Have you tried checking whether the correct manufacturing firmware and mfg_mode=1 settings are enabled for the 88W8997? I’d also verify the supported drv_mode and RF test commands for your driver version. Re: [88W8997] WLAN RF Test Hello, We are using now the toradex wifi layer (https://github.com/toradex/meta-toradex-wifi/tree/kirkstone-6.x.y) and utilizes the integrated labtool utility. Additionally, we used the toradex reference image instead of our official one. With this setup it seems to work now. Thanks. Re: [88W8997] WLAN RF Test Hello @joschi2804
After further investigation I figured out that if I change the drv_mode to 2 (drv_mode=2 > config), I am able to switch to test mode with "rf_test_mode=1" command. Is this correct? Shouldn't it be possible to get into the mode with the default drv_mode value (default: drv_mode=7)?
--> drv_mode = 1;3;7 is fine, just make sure mlan0 interface enable.
When I check the results on the spectrum analyzer, I cannot see any change there. Is there another possibility to check the test mode is working?
--> Could you share output of "cat /proc/mwlan/adapter0/config" after tx_frame = 1? You should make sure all parameters are configured correctly. You may also share spectrum output to us as well. Also make sure spectrum configured well.
I read somewhere, that a mfg firmware must be used. When I add this firmware to /lib/firmware/nxp, modify the wifi_mod_para.conf file (Replaced the fw_name with the mfg firmware and added mfg_mode=1 to the SD8997 section) and reloaded the driver (rmmod moal.ko; insmod moal.ko mod_para=nxp/wifi_mod_para.conf. The driver prints that the firmware is already running. When I use echo "fw_reload=1" > /proc/mwlan/adapterX/config, the driver prints the download of FW failed. A reboot is then required.
--> this is another way for rf test, please refer to UM11675 only.
Re: [88W8997] WLAN RF Test Hello, I am using the latest branch of this repository.https://github.com/nxp-imx/imx-firmware/tree/lf-6.6.3_1.0.0/nxp/FwImage_8997_SD The wifi_mod_param.conf file refers to the sdiouart8997_combo_v4.bin firmware. Re: [88W8997] WLAN RF Test Hello @joschi2804
Could you share driver and firmware version?
Best Regards
Shaun
View full article