Hello, i meet a problem of wifi, it is hard to clear it for me.
when we test the wifi fearture, there is a lot of wifi command timeout. this is also meet by using AM335xSDK 08_00_00_00 and AM335xSDK 06_00_00_00.
i think it maybe is our setup error.
set up as follow:
1. root@128:~# cat /proc/version
Linux version 3.14.29ltsi-rt22-WR7.0.0.0_preempt-rt (wrsadmin@pek-czou-d1) (gcc version 4.9.1 (Wind River Linux 4.9.1-8) ) #59 PREEMPT RT Thu May 21 17:44:54 CST 2015
2. root@128:~# iwlist wlan0 scanning ----> wifi scan work well.
wlan0 Scan completed :
Cell 01 - Address: 24:DE:C6:76:4C:40
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=60/70 Signal level=-50 dBm
Encryption key:on
ESSID:"wind"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=00000013fcc10494
Extra: Last beacon: 30ms ago
IE: Unknown: 000477696E64
IE: Unknown: 010882840B162430486C
IE: Unknown: 030101
IE: Unknown: 2A0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : 802.1x
IE: Unknown: 32040C121860
IE: Unknown: 2D1AAD1917FFFFFF0000000000000000000000000000000000000000
IE: Unknown: 3D1601080400000000000000000000000000000000000000
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: Unknown: 7F080500080000000040
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
Cell 02 - Address: 24:DE:C6:76:4C:41
Channel:1
Frequency:2.412 GHz (Channel 1)
3. root@am335xEVMRT:/opt/wr-test/testcases/bts/wifi_ad_hoc# sshpass -proot ssh -o StrictHostKeyChecking=no root@128.224.163.158 'ifconfig wlan0 down'
Warning: Permanently added '128.224.163.158' (ECDSA) to the list of known hosts.
root@am335xEVMRT:/opt/wr-test/testcases/bts/wifi_ad_hoc# sshpass -proot ssh -o StrictHostKeyChecking=no root@128.224.163.158 'iwconfig wlan0 mode Ad-hoc'
root@am335xEVMRT:/opt/wr-test/testcases/bts/wifi_ad_hoc# sshpass -proot ssh -o StrictHostKeyChecking=no root@128.224.163.158 "iwconfig wlan0 essid ad_hoc_testhost"
root@am335xEVMRT:/opt/wr-test/testcases/bts/wifi_ad_hoc# sshpass -proot ssh -o StrictHostKeyChecking=no root@128.224.163.158 "ifconfig wlan0 192.168.0.1 up"
root@am335xEVMRT:/opt/wr-test/testcases/bts/wifi_ad_hoc# sshpass -proot ssh -o StrictHostKeyChecking=no root@128.224.163.158 'ifconfig wlan0'
wlan0 Link encap:Ethernet HWaddr 3c:46:d8:14:07:fc
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@am335xEVMRT:/opt/wr-test/testcases/bts/wifi_ad_hoc# dd if=/dev/zero of=wifi_f.test bs=512k count=20
20+0 records in
20+0 records out
10485760 bytes (10 MB) copied, 2.04693 s, 5.1 MB/s
<<start setup client ad-hoc wifi>>
********************
root@am335xEVMRT:/opt/wr-test/testcases/bts/wifi_ad_hoc# ifconfig wlan0 down
wlcore: down
[ 403.469704] wlcore: down
root@am335xEVMRT:/opt/wr-test/testcases/bts/wifi_ad_hoc# iwconfig wlan0 mode Ad-hoc
root@am335xEVMRT:/opt/wr-test/testcases/bts/wifi_ad_hoc# ifconfig wlan0 up
wlcore: firmware booted (Rev 6.3.10.0.133)
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 406.487756] wlcore: firmware booted (Rev 6.3.10.0.133)
[ 406.529017] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
root@am335xEVMRT:/opt/wr-test/testcases/bts/wifi_ad_hoc# iwlist wlan0 scanning | grep "ad_hoc_testhost" -A 30 -B 5
root@am335xEVMRT:/opt/wr-test/testcases/bts/wifi_ad_hoc# iwconfig wlan0 essid "ad_hoc_testhost"
root@am335xEVMRT:/opt/wr-test/testcases/bts/wifi_ad_hoc# ifconfig wlan0 192.168.0.60 up
wlan0: Trigger new scan to find an IBSS to join
[ 414.072705] wlan0: Trigger new scan to find an IBSS to join
root@am335xEVMRT:/opt/wr-test/testcases/bts/wifi_ad_hoc# route add default gw 192.168.0.1
wlan0: Trigger new scan to find an IBSS to join
wlan0: Creating new IBSS network, BSSID b2:ae:36:d6:c5:e3
wlcore: ERROR command complete timeout
------------[ cut here ]------------
WARNING: CPU: 0 PID: 460 at /buildarea2/dxyw/BTS-ti-am335x-std-glibc_std/lxbuilds/TI-AM335x-EVM_platform_up/ti-am335x-standard-glibc-std/wrlinux/bitbake_build/tmp/work-shared/ti)
Modules linked in:
CPU: 0 PID: 460 Comm: kworker/u2:1 Not tainted 3.14.29ltsi-WR7.0.0.0_standard #1
Workqueue: phy0 ieee80211_iface_work
[<c0015a04>] (unwind_backtrace) from [<c001230c>] (show_stack+0x20/0x24)
[<c001230c>] (show_stack) from [<c07f9a78>] (dump_stack+0x20/0x28)
[<c07f9a78>] (dump_stack) from [<c0038de4>] (warn_slowpath_common+0x7c/0x9c)
[<c0038de4>] (warn_slowpath_common) from [<c0038ec0>] (warn_slowpath_null+0x2c/0x34)
[<c0038ec0>] (warn_slowpath_null) from [<c04f3e90>] (wl12xx_queue_recovery_work+0x3c/0x80)
[<c04f3e90>] (wl12xx_queue_recovery_work) from [<c04f74e8>] (wlcore_cmd_send_failsafe+0x1f4/0x4b0)
[<c04f74e8>] (wlcore_cmd_send_failsafe) from [<c04f77d0>] (wl1271_cmd_send+0x2c/0x38)
[<c04f77d0>] (wl1271_cmd_send) from [<c04f87b4>] (wl12xx_cmd_role_start_ibss+0x168/0x1b4)
[<c04f87b4>] (wl12xx_cmd_role_start_ibss) from [<c04f2de4>] (wl1271_op_bss_info_changed+0x918/0xd7c)
[<c04f2de4>] (wl1271_op_bss_info_changed) from [<c07ae2bc>] (ieee80211_bss_info_change_notify+0x174/0x224)
[<c07ae2bc>] (ieee80211_bss_info_change_notify) from [<c07bb9fc>] (__ieee80211_sta_join_ibss+0x6cc/0x80c)
[<c07bb9fc>] (__ieee80211_sta_join_ibss) from [<c07bbfa8>] (ieee80211_sta_create_ibss+0xe4/0xf0)
[<c07bbfa8>] (ieee80211_sta_create_ibss) from [<c07bd814>] (ieee80211_ibss_work+0x244/0x3a0)
[<c07bd814>] (ieee80211_ibss_work) from [<c07bea68>] (ieee80211_iface_work+0x26c/0x280)
[<c07bea68>] (ieee80211_iface_work) from [<c0051800>] (process_one_work+0x294/0x44c)
[<c0051800>] (process_one_work) from [<c0052928>] (worker_thread+0x440/0x560)
[<c0052928>] (worker_thread) from [<c00580c0>] (kthread+0xd0/0xe4)
[<c00580c0>] (kthread) from [<c000e238>] (ret_from_fork+0x14/0x20)
---[ end trace 0fc6fc50e3523bcd ]---