Hello TI Team,
Our device uses TIWL1831MOD running i.mx28 processor with Linux kernel v3.18.21.
I am facing issue generating TX tone from the chip using PLT mode. Following the directions from link: processors.wiki.ti.com/.../WL18xx_Calibration_Process (PLT Mode) executing following commands:
1) Generating wl18xx-conf.bin file using script:
root@imx28evk:~# /usr/bin/wlconf/configure-device.sh wl1831
2) Creates file under /lib/firmware/ti-connectivity/wl18xx-conf.bin
3) Ran command on console:
root@imx28evk:~# calibrator wlan0 plt power_mode on
root@imx28evk:~#calibrator wlan0 wl18xx_plt set_tx_power 16125 0 0 1 0 0 0 0 0 0 0 0
root@imx28evk:~# calibrator wlan0 wl18xx_plt tune_channel 1 0 0 /// This command fails with error and cannot execute further command for generating tone.
Please find the command log below. Could you please share if I am missing anything or point to the issue? I have previously executed these command successfully on Rev 8.8.0.0.13.
Regards,
Ankur
Console Output:
root@imx28evk:~# calibrator wlan0 plt power_mode on
[ 363.260498] wlcore: power up
[ 364.407642] wlcore: PHY firmware version: Rev 8.2.0.0.231
[ 364.426483] wlcore: firmware booted in PLT mode PLT_ON (Rev 8.9.0.0.44)
root@imx28evk:~# calibrator wlan0 wl18xx_plt set_tx_power 16125 0 0 1 0 0 0 0 0 0 0 0
root@imx28evk:~# calibrator wlan0 wl18xx_plt tune_channel 1 0 0
[ 373.913120] wlcore: ERROR command complete timeout
[ 373.917972] ------------[ cut here ]------------
[ 373.923016] WARNING: CPU: 0 PID: 424 at /home/ankur/radar/hpc-linux/build/tmp/work/imx28evk-poky-linux-gnueabi/ti-compat-wireless-wl18xx/r8.a9.14-r0b/compat-wireless/drivers/net/wireless/ti/wlcore/main.c:829 wl12xx_queue_recovery_work.part.31+0x64/0x70 [wlcore]()
[ 373.946458] Modules linked in: btwilink wl18xx(O) wlcore(O) mac80211(O) cfg80211(O) wlcore_sdio(O) compat(O)
[ 373.956707] CPU: 0 PID: 424 Comm: calibrator Tainted: G W O 3.18.12-hpc_1.0 #62
[ 373.965084] [<c000e38c>] (unwind_backtrace) from [<c000c594>] (show_stack+0x10/0x14)
[ 373.973014] [<c000c594>] (show_stack) from [<c0019938>] (warn_slowpath_common+0x6c/0x8c)
[ 373.981249] [<c0019938>] (warn_slowpath_common) from [<c00199f4>] (warn_slowpath_null+0x1c/0x24)
[ 373.990393] [<c00199f4>] (warn_slowpath_null) from [<bf1501f8>] (wl12xx_queue_recovery_work.part.31+0x64/0x70 [wlcore])
[ 374.001651] [<bf1501f8>] (wl12xx_queue_recovery_work.part.31 [wlcore]) from [<bf154b08>] (wlcore_cmd_send_failsafe+0x80/0x4e8 [wlcore])
[ 374.014274] [<bf154b08>] (wlcore_cmd_send_failsafe [wlcore]) from [<bf154fe0>] (wl1271_cmd_test+0x4c/0x9c [wlcore])
[ 374.025230] [<bf154fe0>] (wl1271_cmd_test [wlcore]) from [<bf165ac8>] (wl1271_tm_cmd+0x1b4/0x5a8 [wlcore])
[ 374.035816] [<bf165ac8>] (wl1271_tm_cmd [wlcore]) from [<bf027efc>] (nl80211_testmode_do+0x9c/0x150 [cfg80211])
[ 374.046627] [<bf027efc>] (nl80211_testmode_do [cfg80211]) from [<c03e2ab4>] (genl_rcv_msg+0x228/0x384)
[ 374.056149] [<c03e2ab4>] (genl_rcv_msg) from [<c03e204c>] (netlink_rcv_skb+0xb4/0xd8)
[ 374.064138] [<c03e204c>] (netlink_rcv_skb) from [<c03e2878>] (genl_rcv+0x20/0x34)
[ 374.071683] [<c03e2878>] (genl_rcv) from [<c03e19c8>] (netlink_unicast+0x14c/0x1cc)
[ 374.079495] [<c03e19c8>] (netlink_unicast) from [<c03e1db8>] (netlink_sendmsg+0x2b8/0x39c)
[ 374.087935] [<c03e1db8>] (netlink_sendmsg) from [<c03a88a4>] (sock_sendmsg+0x84/0xa8)
[ 374.095947] [<c03a88a4>] (sock_sendmsg) from [<c03a9cf0>] (___sys_sendmsg.part.28+0x284/0x290)
[ 374.104752] [<c03a9cf0>] (___sys_sendmsg.part.28) from [<c03aacb0>] (__sys_sendmsg+0x4c/0x7c)
[ 374.113505] [<c03aacb0>] (__sys_sendmsg) from [<c00095e0>] (ret_fast_syscall+0x0/0x44)
[ 374.121472] ---[ end trace e470002511d26a1c ]---
[ 374.126302] wlcore: WARNING TEST command failed
[ 374.130882] wlcore: WARNING testmode cmd test failed: -110
command failed: Connection timed out (-110)
root@imx28evk:~# calibrator wlan0 wl18xx_plt tx_tone_start 2 -5 0 4
Calibrator:: Starting TX Tone (mode=2, bin_index=-5, ant_mode=0, gain_index=4)
command failed: Invalid argument (-22)
root@imx28evk:~#