This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Wl18xx: Fails to Set Channel under PLT mode

Other Parts Discussed in Thread: WL1831, WL1271

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:~#

  • HI,

    Can you let me know the calibrator version (calibrator -v). Also, please refer to: processors.wiki.ti.com/.../WL18xx_TX_Testing page instead of the one that you mentioned.

    Regards,
    Gigi Joseph.
  • Hello Gigi,

    Calibrator verson is 0.78. I did tried following the steps from the link you suggested but still fails with same error. Please find the below console output for reference:

    root@emberpulse:~# calibrator -v

    calibrator version 0.78

    root@emberpulse:~# calibrator wlan0 plt power_mode on
    [  183.917906] wlcore: power up
    [  185.121974] wlcore: PHY firmware version: Rev 8.2.0.0.231
    [  185.130241] wlcore: firmware booted in PLT mode PLT_ON (Rev 8.9.0.0.44)

    root@emberpulse:~# calibrator wlan0 wl18xx_plt tune_channel 1 0 0

    [  197.163236] wlcore: ERROR command complete timeout
    [  197.168091] ------------[ cut here ]------------
    [  197.173142] WARNING: CPU: 0 PID: 580 at /var/lib/jenkins/workspace/BP_YOCTO/build/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]()
    [  197.197845] Modules linked in: btwilink wl18xx(O) wlcore(O) mac80211(O) cfg80211(O) wlcore_sdio(O) compat(O)
    [  197.207993] CPU: 0 PID: 580 Comm: calibrator Tainted: G           O   3.18.12-hpc_1.0 #61
    [  197.216370] [<c000e38c>] (unwind_backtrace) from [<c000c594>] (show_stack+0x10/0x14)
    [  197.224341] [<c000c594>] (show_stack) from [<c0019938>] (warn_slowpath_common+0x6c/0x8c)
    [  197.232514] [<c0019938>] (warn_slowpath_common) from [<c00199f4>] (warn_slowpath_null+0x1c/0x24)
    [  197.241652] [<c00199f4>] (warn_slowpath_null) from [<bf1561f8>] (wl12xx_queue_recovery_work.part.31+0x64/0x70 [wlcore])
    [  197.253228] [<bf1561f8>] (wl12xx_queue_recovery_work.part.31 [wlcore]) from [<bf15ab08>] (wlcore_cmd_send_failsafe+0x80/0x4e8 [wlcore])
    [  197.265886] [<bf15ab08>] (wlcore_cmd_send_failsafe [wlcore]) from [<bf15afe0>] (wl1271_cmd_test+0x4c/0x9c [wlcore])
    [  197.276846] [<bf15afe0>] (wl1271_cmd_test [wlcore]) from [<bf16bac8>] (wl1271_tm_cmd+0x1b4/0x5a8 [wlcore])
    [  197.287432] [<bf16bac8>] (wl1271_tm_cmd [wlcore]) from [<bf02cefc>] (nl80211_testmode_do+0x9c/0x150 [cfg80211])
    [  197.298241] [<bf02cefc>] (nl80211_testmode_do [cfg80211]) from [<c03e2ab4>] (genl_rcv_msg+0x228/0x384)
    [  197.307758] [<c03e2ab4>] (genl_rcv_msg) from [<c03e204c>] (netlink_rcv_skb+0xb4/0xd8)
    [  197.315759] [<c03e204c>] (netlink_rcv_skb) from [<c03e2878>] (genl_rcv+0x20/0x34)
    [  197.323408] [<c03e2878>] (genl_rcv) from [<c03e19c8>] (netlink_unicast+0x14c/0x1cc)
    [  197.331129] [<c03e19c8>] (netlink_unicast) from [<c03e1db8>] (netlink_sendmsg+0x2b8/0x39c)
    [  197.339565] [<c03e1db8>] (netlink_sendmsg) from [<c03a88a4>] (sock_sendmsg+0x84/0xa8)
    [  197.347577] [<c03a88a4>] (sock_sendmsg) from [<c03a9cf0>] (___sys_sendmsg.part.28+0x284/0x290)
    [  197.356362] [<c03a9cf0>] (___sys_sendmsg.part.28) from [<c03aacb0>] (__sys_sendmsg+0x4c/0x7c)
    [  197.365083] [<c03aacb0>] (__sys_sendmsg) from [<c00095e0>] (ret_fast_syscall+0x0/0x44)
    [  197.373136] ---[ end trace 10464467f5447c55 ]---
    [  197.378939] wlcore: WARNING TEST command failed
    [  197.383662] wlcore: WARNING testmode cmd test failed: -110
    command failed: Connection timed out (-110)

    Please share if you need any information.

    Regards,

    Ankur.

  • Hi Ankur,

    Connection timed out usually means some issue on the SDIO bus.
    Your step seems correct, I could execute the same steps without any error on my setup. But I was using the latest calibrator version (0.80).

    Can you please try with the latest version and see if it helps? It is available at: git://git.ti.com/wilink8-wlan/18xx-ti-utils.git (git tag: "R8.5")

    Regards,
    Gigi Joseph.
  • You picked it correctly!!. The problem is gone with Calibrator: 0.8 version using link above.

    Thanks and Cheers,
    Ankur