We have problem running the calibration process using calibrator tool, see attached log.
3404.calibrator2.txt
Our system setup is:
SnowballModule: WL1273 HDK Interface: SPI@12MHz
Linux kernel 3.2.1WL12xx driver: compat-wireless release 2012-02-21wl1271-nvs.bin generated with calibrator using TQS_D_1.7.ini.
Driver module loads without problem.It is possible to bring up and down interface with ifconfig several times.We can perform scan on both 2.4 and 5GHz band, associate and transfer data.
We have also seen the same problem on the following configuration:
Beagleboard XMModule: WL1273 HDK Interface: SPI@12MHz
Linux kernel 3.0.17WL12xx driver: compat-wireless release 2012-02-21
Firmware:wl1271-nvs.bin (MD5: 170b227c9cc5f3020ae58ce25eb93f21)wl127x-fw-3.bin (MD5: f0fdc227f7f90f016c4fbb4fde6c6fae)
Any support is greatly appreciated!
Hi,
I think you were right. Yesterday we had some progress using older firmwares. It is now possible to enter and use PLT mode on the SPI module. Still not sure exactly how different versions but we are doing some tests. At the moment I'm having some difficulties with continuous TX on 5GHz channels. I only get 6Mbit data rate no matter what settings I'm using.
/PH
Hi PH,
Please send me the instructions that you run.
Regards,
Eyal
OK, some things I have noticed:
root@linaro-ubuntu-desktop:~# modprobe wl12xx_spiroot@linaro-ubuntu-desktop:~# calibrator wlan0 plt power_mode onroot@linaro-ubuntu-desktop:~# calibrator wlan0 plt tune_channel 0 11root@linaro-ubuntu-desktop:~# calibrator wlan0 plt tx_cont 2000 1 100 0 5000 0 3 0 0 0 0 0 1 1 11:22:11:22:11:22DE:AD:BE:EF:00:00root@linaro-ubuntu-desktop:~# calibrator wlan0 plt tx_stop
Above is OK, will get 1Mbit packets (with broken 802.11 header) on channel 11.
root@linaro-ubuntu-desktop:~# calibrator wlan0 plt tx_cont 2000 64 100 0 5000 0 3 0 0 4 0 0 1 1 11:22:11:22:11:22DE:AD:BE:EF:00:00root@linaro-ubuntu-desktop:~# calibrator wlan0 plt tx_stop
Above is OK, will get 12Mbit packets (still broken headers though).
root@linaro-ubuntu-desktop:~# calibrator wlan0 plt tx_cont 2000 8192 100 0 5000 0 3 0 0 6 0 0 1 1 11:22:11:22:11:22DE:AD:BE:EF:00:00root@linaro-ubuntu-desktop:~# calibrator wlan0 plt tx_stop
Above not OK, see packets in channel utilization tool but not on capture device.
root@linaro-ubuntu-desktop:~# calibrator wlan0 plt tx_cont 2000 8192 100 0 5000 0 3 0 0 7 0 0 1 1 11:22:11:22:11:22DE:AD:BE:EF:00:00root@linaro-ubuntu-desktop:~# calibrator wlan0 plt tx_stop
Above not OK, see packets in channel utilization tool and on capture device but packets are interpreted to random data rates etc.
Guess I'm just missed something simple. Firmware is "wl12xx: firmware booted in PLT mode (Rev 6.1.5.50.74)"
Our WLAN solution doesn't support SPI bus communication.Can you please elaborate on which SPI driver you are using?
Thanks,Alon.S
You may not officially support WL1273 on SPI but the drivers are still there and are working fine. Referring to the linux-wireless drivers (also in kernel, /drivers/net/wireless/wl12xx). Still, the firmware for SPI and SDIO is the same and should work the same. Therefore I'm still a bit wondering about the N rates and other questions in my previous post.
SPI might work however it is not maintained and might have issues, as for the TX continuous please see more information in our WiKi page in http://processors.wiki.ti.com/index.php/OMAP_Wireless_Connectivity_Tx_Continuous
As i described in my previous posts, I follow the documentation in the Wiki but encounter problems. To me it seems a bit strange that the transport layer (SPI vs. SDIO) whould effect the PLT commands. PLT commands are one layer up in the Wilink communication protocol.
In case SPI works fine then the calibration process should work, however the comapt that you are using is 5 month old and maybe that release has issues, since as far as i remember i also saw issues with the function of TX continuous of older releases, would you consider moving to a newer release?
in case you can, i suggest moving to our latest release which is R5.00.18 , were you can find a build scripts in the wiki page under http://processors.wiki.ti.com/index.php/OMAP_Wireless_Connectivity_mac80211_WLAN_build_scripts
OK, we will try a newer release within a week or two. Let's hope that will sort out the problems!
Thanks, let me know how it works
I'm running into a similar error with the calibrator tool:
[ 120.787475] ------------[ cut here ]------------
[ 120.792480] WARNING: at drivers/net/wireless/wl12xx/cmd.c:107 wl1271_cmd_send+0x1e6/0x214 [wl12xx]()
[ 120.802062] Modules linked in: wl12xx_sdio arc4 wl12xx mac80211 cfg80211 rfkill spidev ip_tables x_tables ipv6 [last unloaded: wl12xx_sdio]
[ 120.815307] [<c0010001>] (unwind_backtrace+0x1/0xb0) from [<c002e0cf>] (warn_slowpath_common+0x33/0x48)
[ 120.825164] [<c002e0cf>] (warn_slowpath_common+0x33/0x48) from [<c002e0f3>] (warn_slowpath_null+0xf/0x10)
[ 120.835266] [<c002e0f3>] (warn_slowpath_null+0xf/0x10) from [<bf94f383>] (wl1271_cmd_send+0x1e6/0x214 [wl12xx])
[ 120.845977] [<bf94f383>] (wl1271_cmd_send+0x1e6/0x214 [wl12xx]) from [<bf94fd0d>] (wl1271_cmd_test+0x3c/0x5c [wl12xx])
[ 120.857360] [<bf94fd0d>] (wl1271_cmd_test+0x3c/0x5c [wl12xx]) from [<bf95a513>] (wl1271_tm_cmd+0x92/0x2a7 [wl12xx])
[ 120.868591] [<bf95a513>] (wl1271_tm_cmd+0x92/0x2a7 [wl12xx]) from [<bf921511>] (ieee80211_testmode_cmd+0x18/0x20 [mac80211])
[ 120.880645] [<bf921511>] (ieee80211_testmode_cmd+0x18/0x20 [mac80211]) from [<bf8bdf63>] (nl80211_testmode_do+0x2e/0x42 [cfg80211])
[ 120.893127] [<bf8bdf63>] (nl80211_testmode_do+0x2e/0x42 [cfg80211]) from [<c029389b>] (genl_rcv_msg+0x113/0x144)
[ 120.903900] [<c029389b>] (genl_rcv_msg+0x113/0x144) from [<c029311f>] (netlink_rcv_skb+0x2b/0x68)
[ 120.913208] [<c029311f>] (netlink_rcv_skb+0x2b/0x68) from [<c029377d>] (genl_rcv+0x11/0x1c)
[ 120.921966] [<c029377d>] (genl_rcv+0x11/0x1c) from [<c0292d53>] (netlink_unicast+0x175/0x1de)
[ 120.930908] [<c0292d53>] (netlink_unicast+0x175/0x1de) from [<c0292f0d>] (netlink_sendmsg+0x151/0x1b4)
[ 120.940673] [<c0292f0d>] (netlink_sendmsg+0x151/0x1b4) from [<c0275dbb>] (sock_sendmsg+0x57/0x68)
[ 120.950164] [<c0275dbb>] (sock_sendmsg+0x57/0x68) from [<c0275f4f>] (__sys_sendmsg+0x123/0x180)
[ 120.959350] [<c0275f4f>] (__sys_sendmsg+0x123/0x180) from [<c0276bab>] (sys_sendmsg+0x23/0x34)
[ 120.968475] [<c0276bab>] (sys_sendmsg+0x23/0x34) from [<c000ca41>] (ret_fast_syscall+0x1/0x44)
[ 120.977539] ---[ end trace e401768f73e1b3c1 ]---
It looks the PLT firmware is no longer loaded directly:
~/linux-3.2.0-psp04.06.00.08.sdk/drivers/net/wireless/wl12xx$ grep FW_NAME *.h
wl12xx.h:#define WL127X_FW_NAME "ti-connectivity/wl127x-fw-3.bin"
wl12xx.h:#define WL128X_FW_NAME "ti-connectivity/wl128x-fw-3.bin"
Is this expected (i.e. has the PLT firmware been combined?) or a problem with the latest PSP?