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.

WiFi not working on AM335x

Other Parts Discussed in Thread: AM3354, WL1271

Hi,

We are developing the customized board using AM3354 processor. Here we are using the Wifi-BT WG7311 module. we are taking the AM335x EVM kernel as a base source for us. When we tried to up (that is "ifconfig wlan0 up") the wifi interface from the command line and it's worked. but we got the error message as shown in below when we tried to use the "iwlist wlan0 scan" or "ifconfig wlan0 down".

===================

root@am335x-evm:~# dmesg | grep wl12xx
[    7.451812] wl12xx: driver version: ol_R5.00.17
[    7.456573] wl12xx: compilation time: Thu May 17 05:25:00 2012
[    7.889129] wl12xx: loaded
root@am335x-evm:~# ifconfig wlan0 up
[  970.447509] wl12xx: open_count=0, add=1, current_fw=0
[  970.452880] wl12xx: state: 0
[  970.940979] wl12xx: firmware booted (Rev 6.3.8.0.111_1)
[  970.946441] wl12xx: Driver version: R5_00_18
root@am335x-evm:~# ifconfig wlan0 down
[  982.108062] wl12xx: ERROR ELP wakeup timeout!
[  982.112640] wl12xx: Reading FW panic log
[  982.116729] ------------[ cut here ]------------
[  982.121643] WARNING: at /home/hudson/amsdk-nightly-build/cortex-A8/arago-tmp/work/am335x-evm-arago-linux-gnueabi/ti-compat-wireless-wl12xx-0.20120515r518-r30d/compat-wireless/drivers/net/wireless/wl12xx/cmd.c:66 wl1271_cmd_send+0x3c8/0x3ec [wl12xx]()
[  982.144775] Modules linked in: g_mass_storage wl12xx(O) mac80211(O) cfg80211(O) wl12xx_sdio(O)
[  982.153778] Backtrace:
[  982.156341] [<c0017978>] (dump_backtrace+0x0/0x110) from [<c0421ab4>] (dump_stack+0x18/0x1c)
[  982.165161]  r6:bf0c05f8 r5:00000042 r4:00000000 r3:c05fb6c8
[  982.171112] [<c0421a9c>] (dump_stack+0x0/0x1c) from [<c003daa4>] (warn_slowpath_common+0x5c/0x6c)
[  982.180389] [<c003da48>] (warn_slowpath_common+0x0/0x6c) from [<c003dad8>] (warn_slowpath_null+0x24/0x2c)
[  982.190368]  r8:bf0a40b0 r7:cefb7180 r6:ce0ed7ac r5:ce0ed780 r4:ce0ed780
[  982.197174] r3:00000009
[  982.199951] [<c003dab4>] (warn_slowpath_null+0x0/0x2c) from [<bf0a654c>] (wl1271_cmd_send+0x3c8/0x3ec [wl12xx])
[  982.210510] [<bf0a6184>] (wl1271_cmd_send+0x0/0x3ec [wl12xx]) from [<bf0a90fc>] (wl12xx_cmd_stop_fwlog+0x78/0xb8 [wl12xx])
[  982.222076] [<bf0a9084>] (wl12xx_cmd_stop_fwlog+0x0/0xb8 [wl12xx]) from [<bf0a42f0>] (wl1271_recovery_work+0x240/0x334 [wl12xx])
[  982.234130]  r5:ce0ed780 r4:ce0ed964
[  982.237884] [<bf0a40b0>] (wl1271_recovery_work+0x0/0x334 [wl12xx]) from [<c0050538>] (process_one_work+0x124/0x384)
[  982.248779] [<c0050414>] (process_one_work+0x0/0x384) from [<c00523b0>] (worker_thread+0x15c/0x330)
[  982.258239] [<c0052254>] (worker_thread+0x0/0x330) from [<c00563c8>] (kthread+0x90/0x94)
[  982.266693] [<c0056338>] (kthread+0x0/0x94) from [<c0040b24>] (do_exit+0x0/0x67c)
[  982.274475]  r6:c0040b24 r5:c0056338 r4:cf81dee0
[  982.279327] ---[ end trace 2634cb5ce0990639 ]---
[  982.286529] wl12xx: Hardware recovery in progress. FW ver: Rev 6.3.8.0.111_1 pc: 0x0
[  982.294647] wl12xx: down
[  982.298675] ieee80211 phy0: Hardware restart was requested
root@am335x-evm:~# ethtool -k wlan0
Offload parameters for wlan0:
rx-checksumming: off
tx-checksumming: off
scatter-gather: off
tcp-segmentation-offload: off
udp-fragmentation-offload: off
generic-segmentation-offload: off
generic-receive-offload: on
large-receive-offload: off
ntuple-filters: off
receive-hashing: off
root@am33

========================

Why we are getting this error message?

Could you help me to solve this issue?

Thanks in advance,

Veera