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.

WL1831 disconnect network and FW is recovered frequently

Other Parts Discussed in Thread: WL1831, WL1271

Hi TI,

We got a question about WL1831. They alway disconnected the AP, and in kernel we found the firmware is recovered frequently.

Could you give us some suggestions? Is it related to power-saving mode? How to don't let WL1831 enter into power-saving mode? Is core.conn.sta_sleep_auth (in wl18xx-conf.bin) related to power-saving mode? And how to set it?

Please see the log below for detail:

[ 3197.500885] wlcore: Beacon loss detected. roles:0x1
[ 3197.774322] wlcore: ERROR SW watchdog interrupt received! starting recovery.
[ 3197.781921] ------------[ cut here ]------------
[ 3197.787048] WARNING: at /home/gancai/shared/workspace/release_nemo_platform/omap/android4470/hardware/ti/wlan/mac80211/compat_wl18xx/drivers/net/wireless/ti/wlcore/main.c:820 wl12xx_queue_recovery_work+0x6c/0x74 [wlcore]()
[ 3197.808197] Modules linked in: wlcore_sdio(O) wl18xx(O) wl12xx(O) wlcore(O) mac80211(O) cfg80211(O) compat(O) pvrsrvkm_sgx544_112(O)
[ 3197.821777] Backtrace:
[ 3197.824584] [<c0017b74>] (dump_backtrace+0x0/0x10c) from [<c064a548>] (dump_stack+0x18/0x1c)
[ 3197.833709] r6:00000334 r5:bf14ce74 r4:00000000 r3:c090f604
[ 3197.840148] [<c064a530>] (dump_stack+0x0/0x1c) from [<c0045498>] (warn_slowpath_common+0x54/0x6c)
[ 3197.849731] [<c0045444>] (warn_slowpath_common+0x0/0x6c) from [<c00454d4>] (warn_slowpath_null+0x24/0x2c)
[ 3197.860046] r8:d5729d40 r7:d51df800 r6:d5729b9c r5:d5729bb4 r4:d5729b60

[ 3197.870635] [<c00454b0>] (warn_slowpath_null+0x0/0x2c) from [<bf14ce74>] (wl12xx_queue_recovery_work+0x6c/0x74 [wlcore])
[ 3197.882446] [<bf14ce08>] (wl12xx_queue_recovery_work+0x0/0x74 [wlcore]) from [<bf14cf5c>] (wlcore_irq+0xe0/0xe4 [wlcore])
[ 3197.894165] r4:d5729b60 r3:00000300
[ 3197.898315] [<bf14ce7c>] (wlcore_irq+0x0/0xe4 [wlcore]) from [<c00a889c>] (irq_thread+0xdc/0x178)
[ 3197.907928] [<c00a87c0>] (irq_thread+0x0/0x178) from [<c0065408>] (kthread+0x90/0x9c)
[ 3197.916320] [<c0065378>] (kthread+0x0/0x9c) from [<c00493ac>] (do_exit+0x0/0x804)
[ 3197.924407] r6:c00493ac r5:c0065378 r4:d543bb0c
[ 3197.929626] Board Information:
[ 3197.929656] Revision : 0020
[ 3197.929656] Serial : 0000000000000000
[ 3197.929656] SoC Information:
[ 3197.929656] CPU : OMAP4470
[ 3197.929656] Rev : ES1.0
[ 3197.929656] Type : GP
[ 3197.929656] Production ID: 0002B975-000000F0
[ 3197.929687] Die ID : 743E0000-50002FFF-014E083E-1200A00C
[ 3197.929687]
[ 3197.964019] ---[ end trace 0174bfcb707e0f03 ]---
[ 3197.969177] wlcore: Reading FW panic log
[ 3197.975128] wlcore: Hardware recovery in progress. FW ver: Rev 8.5.0.0.53
[ 3197.982788] wlcore: pc: 0x118850, hint_sts: 0x00000000 count: 1
[ 3197.989685] wlcore: down
[ 3197.992462] wlcore: down
[ 3197.997558] ieee80211 phy0: Hardware restart was requested
[ 3198.420928] wlcore: PHY firmware version: Rev 8.2.0.0.163
[ 3198.514709] wlcore: firmware booted (Rev 8.5.0.0.53)
[ 3198.536865] wlcore: is_sta: 1 old:0 new:1
[ 3198.541748] wlcore: is_sta: 1 old:1 new:2
[ 3198.546508] wlcore: is_sta: 1 old:2 new:3
[ 3198.550994] wlcore: is_sta: 1 old:3 new:4
[ 3198.565917] wlcore: JOIN while associated.
[ 3198.575500] wlcore: Association completed.
[ 3321.419006] wlcore: ERROR SW watchdog interrupt received! starting recovery.
[ 3321.426696] ------------[ cut here ]------------
[ 3321.431732] WARNING: at /home/gancai/shared/workspace/release_nemo_platform/omap/android4470/hardware/ti/wlan/mac80211/compat_wl18xx/drivers/net/wireless/ti/wlcore/main.c:820 wl12xx_queue_recovery_work+0x6c/0x74 [wlcore]()
[ 3321.452880] Modules linked in: wlcore_sdio(O) wl18xx(O) wl12xx(O) wlcore(O) mac80211(O) cfg80211(O) compat(O) pvrsrvkm_sgx544_112(O)
[ 3321.466491] Backtrace:
r5:bf14ce74 r4:00000000 r3:c090f604
[ 3321.484863] [<c064a530>] (dump_stack+0x0/0x1c) from [<c0045498>] (warn_slowpath_common+0x54/0x6c)
[ 3321.494476] [<c0045444>] (warn_slowpath_common+0x0/0x6c) from [<c00454d4>] (warn_slowpath_null+0x24/0x2c)
[ 3321.504821] r8:d5729d40 r7:d51df800 r6:d5729b9c r5:d5729bb4 r4:d5729b60
[ 3321.512115] r3:00000009
[ 3321.515258] [<c00454b0>] (warn_slowpath_null+0x0/0x2c) from [<bf14ce74>] (wl12xx_queue_recovery_work+0x6c/0x74 [wlcore])
[ 3321.527038] [<bf14ce08>] (wl12xx_queue_recovery_work+0x0/0x74 [wlcore]) from [<bf14cf5c>] (wlcore_irq+0xe0/0xe4 [wlcore])
[ 3321.538848] r4:d5729b60 r3:00000300
[ 3321.542968] [<bf14ce7c>] (wlcore_irq+0x0/0xe4 [wlcore]) from [<c00a889c>] (irq_thread+0xdc/0x178)
[ 3321.552581] [<c00a87c0>] (irq_thread+0x0/0x178) from [<c0065408>] (kthread+0x90/0x9c)
[ 3321.561035] [<c0065378>] (kthread+0x0/0x9c) from [<c00493ac>] (do_exit+0x0/0x804)
[ 3321.569122] r6:c00493ac r5:c0065378 r4:d543bb0c
[ 3321.574432] Board Information:
[ 3321.574432] Revision : 0020
[ 3321.574462] Serial : 0000000000000000
[ 3321.574462] SoC Information:
[ 3321.574462] CPU : OMAP4470
[ 3321.574462] Rev : ES1.0
[ 3321.574462] Type : GP
[ 3321.574462] Production ID: 0002B975-000000F0
[ 3321.574462] Die ID : 743E0000-50002FFF-014E083E-1200A00C
[ 3321.574493]
[ 3321.608734] ---[ end trace 0174bfcb707e0f04 ]---
[ 3321.613891] wlcore: Reading FW panic log
[ 3323.020172] ------------[ cut here ]------------
[ 3323.025207] WARNING: at /home/gancai/shared/workspace/release_nemo_platform/omap/android4470/hardware/ti/wlan/mac80211/compat_wl18xx/drivers/net/wireless/ti/wlcore/sdio.c:106 wl12xx_sdio_raw_read+0xb0/0x130 [wlcore_sdio]()
[ 3323.046600] Modules linked in: wlcore_sdio(O) wl18xx(O) wl12xx(O) wlcore(O) mac80211(O) cfg80211(O) compat(O) pvrsrvkm_sgx544_112(O)
[ 3323.061401] Backtrace:
[ 3323.073333] r6:0000006a r5:bf1a2300 r4:00000000 r3:c090f604
[ 3323.079864] [<c064a530>] (dump_stack+0x0/0x1c) from [<c0045498>] (warn_slowpath_common+0x54/0x6c)
[ 3323.089385] [<c0045444>] (warn_slowpath_common+0x0/0x6c) from [<c00454d4>] (warn_slowpath_null+0x24/0x2c)
[ 3323.099639] r8:00000110 r7:d28ada00 r6:d63d4208 r5:00000000 r4:d6181a00
[ 3323.107055] r3:00000009
[ 3323.110107] [<c00454b0>] (warn_slowpath_null+0x0/0x2c) from [<bf1a2300>] (wl12xx_sdio_raw_read+0xb0/0x130 [wlcore_sdio])
[ 3323.122009] [<bf1a2250>] (wl12xx_sdio_raw_read+0x0/0x130 [wlcore_sdio]) from [<bf14d748>] (wl1271_recovery_work+0x464/0x4f4 [wlcore])
[ 3323.134918] r8:d60e9ee0 r7:ecd0f1ca r6:d5729e1c r5:d5729b60 r4:00000110
[ 3323.142730] [<bf14d2e4>] (wl1271_recovery_work+0x0/0x4f4 [wlcore]) from [<c0060480>] (process_one_work+0x134/0x4ac)
[ 3323.154022] [<c006034c>] (process_one_work+0x0/0x4ac) from [<c0060984>] (worker_thread+0x18c/0x3d8)
[ 3323.163818] [<c00607f8>] (worker_thread+0x0/0x3d8) from [<c0065408>] (kthread+0x90/0x9c)
[ 3323.172515] [<c0065378>] (kthread+0x0/0x9c) from [<c00493ac>] (do_exit+0x0/0x804)
[ 3323.180725] r6:c00493ac r5:c0065378 r4:d60adec4
[ 3323.186035] Board Information:
[ 3323.186035] Revision : 0020
[ 3323.186035] Serial : 0000000000000000
[ 3323.186035] SoC Information:
[ 3323.186035] CPU : OMAP4470
[ 3323.186035] Rev : ES1.0
[ 3323.186035] Type : GP
[ 3323.186035] Production ID: 0002B975-000000F0
[ 3323.186065] Die ID : 743E0000-50002FFF-014E083E-1200A00C
[ 3323.221008] ---[ end trace 0174bfcb707e0f05 ]---
[ 3323.226104] wl1271_sdio mmc1:0001:2: sdio read failed (-110)
[ 3323.232391] wlcore: Hardware recovery in progress. FW ver: Rev 8.5.0.0.53
[ 3323.239868] wlcore: down
[ 3323.242645] wlcore: down
[ 3323.248016] ieee80211 phy0: Hardware restart was requested
[ 3323.676208] wlcore: PHY firmware version: Rev 8.2.0.0.163
[ 3323.772003] wlcore: firmware booted (Rev 8.5.0.0.53)
[ 3323.792053] wlcore: is_sta: 1 old:0 new:1
[ 3323.796844] wlcore: is_sta: 1 old:1 new:2
[ 3323.804870] wlcore: is_sta: 1 old:2 new:3
[ 3323.809234] wlcore: is_sta: 1 old:3 new:4
[ 3323.826721] wlcore: JOIN while associated.
[ 3323.835998] wlcore: Association completed.
<3>[ 5480.770385] wlcore: ERROR SW watchdog interrupt received! starting recovery.
<4>[ 5480.777984] ------------[ cut here ]------------
<4>[ 5480.782958] WARNING: at /home/wwli/workspace/nemo/omap/android4470/hardware/ti/wlan/mac80211/compat_wl18xx/drivers/net/wireless/ti/wlcore/main.c:820 wl12xx_queue_recovery_work+0x6c/0x74 [wlcore]()
<4>[ 5480.801666] Modules linked in: wlcore_sdio(O) wl18xx(O) wl12xx(O) wlcore(O) mac80211(O) pvrsrvkm_sgx544_112(O) cfg80211(O) compat(O)
<4>[ 5480.814971] Backtrace:
<4>[ 5480.817657] [<c0017b74>] (dump_backtrace+0x0/0x10c) from [<c064a548>] (dump_stack+0x18/0x1c)
<4>[ 5480.826751] r6:00000334 r5:bf14cbe4 r4:00000000 r3:c090f604
<4>[ 5480.833068] [<c064a530>] (dump_stack+0x0/0x1c) from [<c0045498>] (warn_slowpath_common+0x54/0x6c)
<4>[ 5480.842590] [<c0045444>] (warn_slowpath_common+0x0/0x6c) from [<c00454d4>] (warn_slowpath_null+0x24/0x2c)
<4>[ 5480.852813] r8:d5fb5d40 r7:d5b1b780 r6:d5fb5b9c r5:d5fb5bb4 r4:d5fb5b60
<4>[ 5480.860076] r3:00000009
<4>[ 5480.863067] [<c00454b0>] (warn_slowpath_null+0x0/0x2c) from [<bf14cbe4>] (wl12xx_queue_recovery_work+0x6c/0x74 [wlcore])
<4>[ 5480.874755] [<bf14cb78>] (wl12xx_queue_recovery_work+0x0/0x74 [wlcore]) from [<bf14cccc>] (wlcore_irq+0xe0/0xe4 [wlcore])
<4>[ 5480.886505] r4:d5fb5b60 r3:00000300
<4>[ 5480.890502] [<bf14cbec>] (wlcore_irq+0x0/0xe4 [wlcore]) from [<c00a889c>] (irq_thread+0xdc/0x178)
<4>[ 5480.900024] [<c00a87c0>] (irq_thread+0x0/0x178) from [<c0065408>] (kthread+0x90/0x9c)
<4>[ 5480.908447] [<c0065378>] (kthread+0x0/0x9c) from [<c00493ac>] (do_exit+0x0/0x804)
<4>[ 5480.916412] r6:c00493ac r5:c0065378 r4:d5f1db0c
<4>[ 5480.921569] Board Information:
<4>[ 5480.921569] Revision : 0020
<4>[ 5480.921569] Serial : 0000000000000000
<4>[ 5480.921600] SoC Information:
<4>[ 5480.921600] CPU : OMAP4470
<4>[ 5480.921600] Rev : ES1.0
<4>[ 5480.921600] Type : GP
<4>[ 5480.921600] Production ID: 0002B975-000000F0
<4>[ 5480.921600] Die ID : 61B80000-50002FFF-014E083E-1100E00E
<4>[ 5480.921600]
<4>[ 5480.955596] ---[ end trace 3e58986f3f42d48d ]---
<6>[ 5480.960662] wlcore: Reading FW panic log
<4>[ 5482.364776] ------------[ cut here ]------------
<4>[ 5482.369842] WARNING: at /home/wwli/workspace/nemo/omap/android4470/hardware/ti/wlan/mac80211/compat_wl18xx/drivers/net/wireless/ti/wlcore/sdio.c:106 wl12xx_sdio_raw_read+0xb0/0x130 [wlcore_sdio]()
<4>[ 5482.388519] Modules linked in: wlcore_sdio(O) wl18xx(O) wl12xx(O) wlcore(O) mac80211(O) pvrsrvkm_sgx544_112(O) cfg80211(O) compat(O)
<4>[ 5482.401885] Backtrace:
<4>[ 5482.404632] [<c0017b74>] (dump_backtrace+0x0/0x10c) from [<c064a548>] (dump_stack+0x18/0x1c)
<4>[ 5482.413879] r6:0000006a r5:bf1a4300 r4:00000000 r3:c090f604
<4>[ 5482.420257] [<c064a530>] (dump_stack+0x0/0x1c) from [<c0045498>] (warn_slowpath_common+0x54/0x6c)
<4>[ 5482.429748] [<c0045444>] (warn_slowpath_common+0x0/0x6c) from [<c00454d4>] (warn_slowpath_null+0x24/0x2c)
<4>[ 5482.440063] r8:00000110 r7:d5df2c00 r6:d5c2d808 r5:00000000 r4:d61a6e00
<4>[ 5482.447296] r3:00000009
<4>[ 5482.450256] [<c00454b0>] (warn_slowpath_null+0x0/0x2c) from [<bf1a4300>] (wl12xx_sdio_raw_read+0xb0/0x130 [wlcore_sdio])
<4>[ 5482.461914] [<bf1a4250>] (wl12xx_sdio_raw_read+0x0/0x130 [wlcore_sdio]) from [<bf14d508>] (wl1271_recovery_work+0x4b0/0x540 [wlcore])
<4>[ 5482.474761] r8:d5fb5e1c r7:d546dee0 r6:d5fb5b60 r5:4fffe92d r4:00000110
<4>[ 5482.482299] [<bf14d058>] (wl1271_recovery_work+0x0/0x540 [wlcore]) from [<c0060480>] (process_one_work+0x134/0x4ac)
<4>[ 5482.493499] [<c006034c>] (process_one_work+0x0/0x4ac) from [<c0060984>] (worker_thread+0x18c/0x3d8)
<4>[ 5482.503173] [<c00607f8>] (worker_thread+0x0/0x3d8) from [<c0065408>] (kthread+0x90/0x9c)
<4>[ 5482.511871] [<c0065378>] (kthread+0x0/0x9c) from [<c00493ac>] (do_exit+0x0/0x804)
<4>[ 5482.519927] r6:c00493ac r5:c0065378 r4:d3643ec4
<4>[ 5482.525054] Board Information:
<4>[ 5482.525054] Revision : 0020
<4>[ 5482.525054] Serial : 0000000000000000
<4>[ 5482.525054] SoC Information:
<4>[ 5482.525054] CPU : OMAP4470
<4>[ 5482.525054] Rev : ES1.0
<4>[ 5482.525085] Type : GP
<4>[ 5482.525085] Production ID: 0002B975-000000F0
<4>[ 5482.525085] Die ID : 61B80000-50002FFF-014E083E-1100E00E
<4>[ 5482.525085]
<4>[ 5482.559143] ---[ end trace 3e58986f3f42d48e ]---
<3>[ 5482.564086] wl1271_sdio mmc1:0001:2: sdio read failed (-110)
<6>[ 5482.570220] wlcore: Hardware recovery in progress. FW ver: Rev 8.6.0.0.17
<6>[ 5482.577514] wlcore: down
<6>[ 5482.580261] wlcore: down
<6>[ 5482.585601] ieee80211 phy0: Hardware restart was requested
<6>[ 5483.024963] wlcore: PHY firmware version: Rev 8.2.0.0.178
<6>[ 5483.123016] wlcore: firmware booted (Rev 8.6.0.0.17)
<6>[ 5483.139221] wlcore: is_sta: 1 old:0 new:1
<6>[ 5483.143951] wlcore: is_sta: 1 old:1 new:2
<6>[ 5483.150299] wlcore: is_sta: 1 old:2 new:3
<6>[ 5483.154632] wlcore: is_sta: 1 old:3 new:4
<6>[ 5483.167388] wlcore: JOIN while associated.
<6>[ 5483.175964] wlcore: Association completed.

<6>[ 7339.605865] wlan0: deauthenticating from c4:04:15:1b:c8:94 by local choice (reason=3)
<6>[ 7339.705596] wlcore: is_sta: 1 old:4 new:3
<6>[ 7339.709960] wlcore: is_sta: 1 old:3 new:2
<6>[ 7339.714385] wlcore: is_sta: 1 old:2 new:1
<6>[ 7339.718688] wlcore: is_sta: 1 old:1 new:0
<6>[ 7339.730834] cfg80211: Calling CRDA to update world regulatory domain
<6>[ 7339.748077] cfg80211: World regulatory domain updated:
<6>[ 7339.753875] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
<6>[ 7339.766723] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
<6>[ 7339.775238] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
<6>[ 7339.787902] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
<6>[ 7339.796447] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
<6>[ 7339.804962] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
<6>[ 7342.360290] wlcore: scan size: 672
<6>[ 7344.153869] wlan0: authenticate with c4:04:15:1b:c8:94
<6>[ 7344.165771] wlcore: is_sta: 1 old:0 new:1
<6>[ 7344.171447] wlan0: direct probe to c4:04:15:1b:c8:94 (try 1/3)
<6>[ 7344.377288] wlan0: direct probe to c4:04:15:1b:c8:94 (try 2/3)
<6>[ 7344.580413] wlan0: direct probe to c4:04:15:1b:c8:94 (try 3/3)
<6>[ 7344.783538] wlan0: authentication with c4:04:15:1b:c8:94 timed out
<6>[ 7344.790313] wlcore: is_sta: 1 old:1 new:0
<3>[ 7346.799255] wlcore: ERROR command complete timeout
<4>[ 7346.804534] ------------[ cut here ]------------
<4>[ 7346.809753] WARNING: at /home/wwli/workspace/nemo/omap/android4470/hardware/ti/wlan/mac80211/compat_wl18xx/drivers/net/wireless/ti/wlcore/main.c:820 wl12xx_queue_recovery_work+0x6c/0x74 [wlcore]()
<4>[ 7346.831420] Modules linked in: wlcore_sdio(O) wl18xx(O) wl12xx(O) wlcore(O) mac80211(O) cfg80211(O) compat(O) pvrsrvkm_sgx544_112(O) [last unloaded: wlcore_sdio]
<4>[ 7346.850463] Backtrace:
<4>[ 7346.853271] [<c0017b74>] (dump_backtrace+0x0/0x10c) from [<c064a548>] (dump_stack+0x18/0x1c)
<4>[ 7346.865295] r6:00000334 r5:bf14cbe4 r4:00000000 r3:c090f604
<4>[ 7346.871948] [<c064a530>] (dump_stack+0x0/0x1c) from [<c0045498>] (warn_slowpath_common+0x54/0x6c)
<4>[ 7346.884307] [<c0045444>] (warn_slowpath_common+0x0/0x6c) from [<c00454d4>] (warn_slowpath_null+0x24/0x2c)
<4>[ 7346.897430] r8:000dc365 r7:c09160c0 r6:000000b1 r5:ca0447c0 r4:d5e4db60
<4>[ 7346.904876] r3:00000009
<4>[ 7346.907928] [<c00454b0>] (warn_slowpath_null+0x0/0x2c) from [<bf14cbe4>] (wl12xx_queue_recovery_work+0x6c/0x74 [wlcore])
<4>[ 7346.922485] [<bf14cb78>] (wl12xx_queue_recovery_work+0x0/0x74 [wlcore]) from [<bf14f320>] (wlcore_cmd_send_failsafe+0x7c/0x3e0 [wlcore])
<4>[ 7346.935791] r4:d5e4db60 r3:c090f604
<4>[ 7346.940002] [<bf14f2a4>] (wlcore_cmd_send_failsafe+0x0/0x3e0 [wlcore]) from [<bf14f6a8>] (wl1271_cmd_send+0x24/0x30 [wlcore])
<4>[ 7346.952331] [<bf14f684>] (wl1271_cmd_send+0x0/0x30 [wlcore]) from [<bf152378>] (wl12xx_croc+0x88/0x120 [wlcore])
<4>[ 7346.963470] [<bf1522f0>] (wl12xx_croc+0x0/0x120 [wlcore]) from [<bf14e93c>] (wl12xx_op_sta_state+0x290/0x4c8 [wlcore])
<4>[ 7346.975097] r8:d3715a58 r7:d5e4db60 r6:d3715500 r5:00000000 r4:bf168e04
<4>[ 7346.983215] [<bf14e6ac>] (wl12xx_op_sta_state+0x0/0x4c8 [wlcore]) from [<bf0aee9c>] (__sta_info_destroy+0x1c0/0x3f8 [mac80211])
<4>[ 7346.995941] [<bf0aecdc>] (__sta_info_destroy+0x0/0x3f8 [mac80211]) from [<bf0af2a4>] (sta_info_destroy_addr+0x30/0x48 [mac80211])
<4>[ 7347.008911] [<bf0af274>] (sta_info_destroy_addr+0x0/0x48 [mac80211]) from [<bf0e0da8>] (ieee80211_destroy_auth_data+0x28/0x60 [mac80211])
<4>[ 7347.022308] r5:d5c46b00 r4:d3715500
<4>[ 7347.026733] [<bf0e0d80>] (ieee80211_destroy_auth_data+0x0/0x60 [mac80211]) from [<bf0e5e5c>] (ieee80211_sta_work+0x7bc/0xc68 [mac80211])
<4>[ 7347.040039] r5:d5e4cba0 r4:d3715500
<4>[ 7347.044403] [<bf0e56a0>] (ieee80211_sta_work+0x0/0xc68 [mac80211]) from [<bf0b93a8>] (ieee80211_iface_work+0x240/0x2c4 [mac80211])
<4>[ 7347.057281] [<bf0b9168>] (ieee80211_iface_work+0x0/0x2c4 [mac80211]) from [<c0060480>] (process_one_work+0x134/0x4ac)
<4>[ 7347.068817] [<c006034c>] (process_one_work+0x0/0x4ac) from [<c0060984>] (worker_thread+0x18c/0x3d8)
<4>[ 7347.078704] [<c00607f8>] (worker_thread+0x0/0x3d8) from [<c0065408>] (kthread+0x90/0x9c)
<4>[ 7347.087524] [<c0065378>] (kthread+0x0/0x9c) from [<c00493ac>] (do_exit+0x0/0x804)
<4>[ 7347.095733] r6:c00493ac r5:c0065378 r4:d60adec4
<4>[ 7347.101013] Board Information:
<4>[ 7347.101043] Revision : 0020
<4>[ 7347.101043] Serial : 0000000000000000
<4>[ 7347.101043] SoC Information:
<4>[ 7347.101043] CPU : OMAP4470
<4>[ 7347.101043] Rev : ES1.0
<4>[ 7347.101043] Type : GP
<4>[ 7347.101043] Production ID: 0002B975-000000F0
<4>[ 7347.101074] Die ID : 61B80000-50002FFF-014E083E-1100E00E
<4>[ 7347.101074]
<4>[ 7347.135772] ---[ end trace 415bb29d280dca99 ]---
<3>[ 7347.140777] wlcore: ERROR failed to send ROC command
<4>[ 7347.674163] wlcore: WARNING Unable to flush all TX buffers, timed out (timeout 500 ms
<4>[ 7348.213226] wlcore: WARNING Unable to flush all TX buffers, timed out (timeout 500 ms
<6>[ 7348.222656] wlcore: Reading FW panic log
<6>[ 7348.229858] wlcore: Hardware recovery in progress. FW ver: Rev 8.6.0.0.17
<6>[ 7348.241455] wlcore: pc: 0x11dd6e, hint_sts: 0x00000000 count: 1
<6>[ 7348.248077] wlcore: down
<6>[ 7348.251007] wlcore: down
<6>[ 7348.259887] ieee80211 phy31: Hardware restart was requested
<6>[ 7348.714996] wlcore: PHY firmware version: Rev 8.2.0.0.178
<6>[ 7348.818817] wlcore: firmware booted (Rev 8.6.0.0.17)
<6>[ 7349.799957] request_suspend_state: wakeup (3->0) at 7349797698975 (2015-01-27 09:29:33.063366454 UTC)
<4>[ 7350.002349] Gt9xx send powerkey
<6>[ 7350.034698] DSSCOMP: dsscomp_late_resume
<6>[ 7351.199371] wlan0: authenticate with c4:04:15:1b:c8:94
<6>[ 7351.207397] wlcore: is_sta: 1 old:0 new:1
<6>[ 7351.213745] wlan0: send auth to c4:04:15:1b:c8:94 (try 1/3)
<6>[ 7351.225463] wlan0: authenticated
<6>[ 7351.229156] wlcore: is_sta: 1 old:1 new:2
<6>[ 7351.236816] wlan0: associate with c4:04:15:1b:c8:94 (try 1/3)
<6>[ 7351.247009] wlan0: RX AssocResp from c4:04:15:1b:c8:94 (capab=0x411 status=0 aid=11)
<6>[ 7351.259643] wlcore: is_sta: 1 old:2 new:3
<6>[ 7351.271759] wlan0: associated
<6>[ 7351.275390] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
<6>[ 7351.444152] wlcore: is_sta: 1 old:3 new:4
<6>[ 7351.449066] wlcore: Association completed

  • Hi Li,

    The release version that you are using is very old (more then 1.5 years old)
    Please see our latest SW release in the following link

    From the SW Release that you are using to the latest one we had many stability and robustness fixes, and we do recommend to upgrade to that latest release first.

    www.ti.com/.../wilink-sw

    Shahar
  • Hi Shahar,

    The latest driver is based on Kernel version 3.14.0, but our kernel version is 3.4.0. It is a big gap. It is not easy to move to the latest driver, as there are so many differences in kernel files. If we move it, could you give us some suggestion?
    We also found this problem on WL1271. Is it related to our configs or network settings? Please see below:
    [73238.740631] wl12xx: Beacon loss detected.
    [73239.917327] wlan0: deauthenticating from 00:25:86:a7:a3:46 by local choice (reason=3)
    [73239.986877] wlan0: moving STA 00:25:86:a7:a3:46 to state 2
    [73239.986877] wlan0: moving STA 00:25:86:a7:a3:46 to state 1
    [73239.986877] wlan0: moving STA 00:25:86:a7:a3:46 to state 0
    [73240.043945] cfg80211: Calling CRDA to update world regulatory domain
    [73240.065643] cfg80211: World regulatory domain updated:
    [73240.071197] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [73240.080444] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [73240.089080] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [73240.097595] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [73240.106262] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [73240.114807] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [73243.388854] binder: 391:699 transaction failed 29189, size 76-0
    [73244.816192] binder: 659:677 transaction failed 29189, size 240-0
    [73253.377532] wlan0: authenticate with 00:25:86:a7:a3:46 (try 1)
    [73253.379882] wlan0: authenticated
    [73253.408996] wlan0: associate with 00:25:86:a7:a3:46 (try 1)
    [73253.411926] wlan0: RX AssocResp from 00:25:86:a7:a3:46 (capab=0x431 status=0 aid=2)
    [73253.411956] wlan0: associated
    [73253.411956] wlan0: moving STA 00:25:86:a7:a3:46 to state 1
    [73253.411956] wlan0: moving STA 00:25:86:a7:a3:46 to state 2
    [73253.433166] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [73254.029602] wl12xx: Association completed.
    [73254.034576] wlan0: moving STA 00:25:86:a7:a3:46 to state 3
    [73264.939819] wlan0: no IPv6 routers present
  • Hi Li,

    for the WL127x issue, please open a new note and we will try to provide the information there.

    for the Kernel issue,
    all of our releases support Backports and Compat option
    the build script will allow you to build the SW release with almost any Kernel you want (just add the correct Kernel into the script path)
    Please also not that R8.4 (previous release) was released with Kernel 3.2 and 3.12, so if needed you can port to R8.4 Release (in the NLCP releases there is a link to previous release) and to upgrade the FW to R8.4 SP
  • Hi Shahar,

    Thank you very much for your quick reply.
    The Backports seems good. Could you give me a guide/example for using it?
  • Li,

    You should use the build script for that:
    processors.wiki.ti.com/.../WL18xx_System_Build_Scripts
    please note that in the section of "Step 2: create setup-env file" you need to provide the Kernel you use

    Shahar
  • Hi Shahar,

    It seems very helpful. I'll have a try. Thank you very much!
  • HI Shahar,

    I followed the steps to build, but there are two questions:

    1. When I use './build_wl18xx.sh modules', it only outputs compat.ko and cfg80211.ko. There is no WL18xx.ko and so on. Why?

    2. When I use './sudo_build_wl18xx.sh update R8.5', I got below error. Could you kindly tell me why? Is it related to my ubuntu environment?

    ****** *******
    making all in crypto...
    make[1]: Entering directory `/home/wwli/workspace/wifi_fw/build-utilites/src/openssl/crypto'
    ( echo "#ifndef MK1MF_BUILD"; \
    echo ' /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
    echo ' #define CFLAGS "arm-eabi-gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIO -O3 -fomit-frame-pointer -Wall"'; \
    echo ' #define PLATFORM "linux-generic32"'; \
    echo " #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
    echo '#endif' ) >buildinf.h
    arm-eabi-gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIO -O3 -fomit-frame-pointer -Wall -c -o cryptlib.o cryptlib.c
    In file included from cryptlib.c:117:0:
    cryptlib.h:62:20: fatal error: stdlib.h: No such file or directory
    compilation terminated.
    make[1]: *** [cryptlib.o] Error 1
    make[1]: Leaving directory `/home/wwli/workspace/wifi_fw/build-utilites/src/openssl/crypto'
    make: *** [build_crypto] Error 1
    ****** ERROR 0 *******

  • Hi,

    With regards to (1), can you check if "CONFIG_CRYPTO_CCM" is enabled in your kernel config file? If not, can you enable it and see if the modules are getting built?

    Regards,
    Gigi Joseph.
  • HI Shahar,

    I enabled "CONFIG_CRYPTO_CCM", but the result is same. I also got the same error prints. My kernel version is 3.4.48 and used in OMAP4. The kernel is in the release of 4AJ.2.5P2 OMAP4 Jelly Bean Release.
    Do you have any suggestions for this?
  • Hi,

    I built out the new driver kernel, and use the wl18xx-conf-defalut.bin. And it seems the drivers can't run. Wifi module can't be enabled.

    The kernel log is below:

    <6>[   28.151641] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    <6>[   28.163482] wlcore: loaded
    <6>[   28.166656] wlcore: driver version: R8.5
    <6>[   28.171051] wlcore: compilation time: Thu Jan 29 16:52:20 2015
    <6>[   33.746154] adb_release
    <6>[   33.746459] mtp_bind_config
    <6>[   33.746459] adb_bind_config
    <6>[   33.746520] mtp_release
    <6>[   33.747741] adb_open
    <3>[   33.761291] init: untracked pid 123 exited
    <6>[   34.748260] adb_open
    <6>[   34.750701] mtp_bind_config
    <6>[   34.753906] adb_bind_config
    <6>[   34.886810] android_work: sent uevent USB_STATE=DISCONNECTED
    <6>[   35.013763] android_work: sent uevent USB_STATE=CONNECTED
    <6>[   35.020660]  gadget: high-speed config #1: android
    <6>[   35.026123] android_work: sent uevent USB_STATE=CONFIGURED
    <6>[   35.037597] mtp_open
    <6>[   36.675567] EXT4-fs (mmcblk0p8): re-mounted. Opts: (null)
    <6>[  194.034454] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    <6>[  194.047515] wlcore: loaded
    <6>[  194.050506] wlcore: driver version: R8.5
    <6>[  194.054779] wlcore: compilation time: Thu Jan 29 16:52:20 2015
    <6>[  493.650604] request_suspend_state: sleep (0->3) at 493640533450 (2014-11-05 02:31:36.767730713 UTC)
    <6>[  493.661132] DSSCOMP: dsscomp_early_suspend
    <6>[  493.676086] DSSCOMP: blanked screen
    <6>[  494.355010] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    <6>[  494.368499] wlcore: loaded
    <6>[  494.371826] wlcore: driver version: R8.5
    <6>[  494.376373] wlcore: compilation time: Thu Jan 29 16:52:20 2015
    <6>[  875.308868] request_suspend_state: wakeup (3->0) at 875298797026 (2014-11-05 02:37:58.425994289 UTC)
    <4>[  875.510101] Gt9xx send powerkey
    <6>[  875.534576] DSSCOMP: dsscomp_late_resume
    <6>[  876.018890] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    <6>[  876.030364] wlcore: loaded
    <6>[  876.033355] wlcore: driver version: R8.5
    <6>[  876.037689] wlcore: compilation time: Thu Jan 29 16:52:20 2015
    <6>[ 1175.746185] request_suspend_state: sleep (0->3) at 1175736145022 (2014-11-05 02:42:58.863311767 UTC)
    <6>[ 1175.756713] DSSCOMP: dsscomp_early_suspend
    <6>[ 1175.772857] DSSCOMP: blanked screen
    <6>[ 2595.513916] request_suspend_state: wakeup (3->0) at 2595503876033 (2014-11-05 03:06:38.631042778 UTC)
    <4>[ 2595.721038] Gt9xx send powerkey
    <6>[ 2595.745513] DSSCOMP: dsscomp_late_resume
    <6>[ 2596.198486] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    <6>[ 2596.209899] wlcore: loaded
    <6>[ 2596.212860] wlcore: driver version: R8.5
    <6>[ 2596.217346] wlcore: compilation time: Thu Jan 29 16:52:20 2015
    <6>[ 2598.495422] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    <6>[ 2598.506958] wlcore: loaded
    <6>[ 2598.509979] wlcore: driver version: R8.5
    <6>[ 2598.514312] wlcore: compilation time: Thu Jan 29 16:52:20 2015

  • And when I use the Wlconf, it seems got errors:
    root@android:/ # wlconf -i /etc/firmware/ti-connectivity/wl18xx-conf.bin -g
    incompatible binary file
    expected 0x10e100ca 0x00060006
    got 0x10e100ca 0x00060007
  • And when I use the Wlconf, it seems got errors:
    root@android:/ # wlconf -i /etc/firmware/ti-connectivity/wl18xx-conf.bin -g
    incompatible binary file
    expected 0x10e100ca 0x00060006
    got 0x10e100ca 0x00060007
  • The modules are been insmod, but the wifi can't run, why?
    root@android:/ # lsmod
    wl18xx 87488 0 - Live 0x00000000 (O)
    wl12xx 53339 0 - Live 0x00000000 (O)
    wlcore 184929 2 wl18xx,wl12xx, Live 0x00000000 (O)
    mac80211 559287 3 wl18xx,wl12xx,wlcore, Live 0x00000000 (O)
    cfg80211 494079 3 wl18xx,wlcore,mac80211, Live 0x00000000 (O)
    pvrsrvkm_sgx544_112 343734 58 - Live 0x00000000 (O)
    compat 15560 4 wl18xx,wl12xx,mac80211,cfg80211, Live 0x00000000 (O)
  • Hi,

    Please rmmod wl12xx, and insmod wlcore_sdio and see if it helps.

    Regards,
    Gigi Joseph.
  • I had a try, but it seems not work.

    root@android:/ # lsmod
    wlcore_sdio 5084 0 - Live 0x00000000 (O)
    wl18xx 87488 0 - Live 0x00000000 (O)
    wlcore 184929 1 wl18xx, Live 0x00000000 (O)
    mac80211 559287 2 wl18xx,wlcore, Live 0x00000000 (O)
    cfg80211 494079 3 wl18xx,wlcore,mac80211, Live 0x00000000 (O)
    compat 15560 4 wlcore_sdio,wl18xx,mac80211,cfg80211, Live 0x00000000 (O)
    pvrsrvkm_sgx544_112 343734 48 - Live 0x00000000 (O)
  • Hi Joseph,

    I had a try, but it seems not work.

    root@android:/ # lsmod
    wlcore_sdio 5084 0 - Live 0x00000000 (O)
    wl18xx 87488 0 - Live 0x00000000 (O)
    wlcore 184929 1 wl18xx, Live 0x00000000 (O)
    mac80211 559287 2 wl18xx,wlcore, Live 0x00000000 (O)
    cfg80211 494079 3 wl18xx,wlcore,mac80211, Live 0x00000000 (O)
    compat 15560 4 wlcore_sdio,wl18xx,mac80211,cfg80211, Live 0x00000000 (O)
    pvrsrvkm_sgx544_112 343734 48 - Live 0x00000000 (O)
  • Hi,

    After you insmod wlcore_sdio, the wlan0 interface should be created.
    Do you see that when you do "ifconfig -a" ?

    Regards,
    Gigi Joseph.
  • Hi Joseph,

    Yes. After insmod wlcore_sdio, the wlan0 interface is created. But it can't be up by 'ifconfig wlan0 up'.

    root@android:/ # busybox ifconfig -a
    ip6tnl0   Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
              NOARP  MTU:1452  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:0
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    lo        Link encap:Local Loopback 
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  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:0
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    sit0      Link encap:IPv6-in-IPv4 
              NOARP  MTU:1480  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:0
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    wlan0     Link encap:Ethernet  HWaddr 78:A5:04:2E:83:1C 
              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@android:/ #lsmod
    wlcore_sdio 5084 0 - Live 0x00000000 (O)
    wl18xx 87488 0 - Live 0x00000000 (O)
    wl12xx 53339 0 - Live 0x00000000 (O)
    wlcore 184841 2 wl18xx,wl12xx, Live 0x00000000 (O)
    mac80211 559287 3 wl18xx,wl12xx,wlcore, Live 0x00000000 (O)
    cfg80211 494079 3 wl18xx,wlcore,mac80211, Live 0x00000000 (O)
    compat 15560 5 wlcore_sdio,wl18xx,wl12xx,mac80211,cfg80211, Live 0x00000000 (O)
    pvrsrvkm_sgx544_112 343734 32 - Live 0x00000000 (O)

    After I use 'busybox ifconfig wlan0 up', the kernel messages are below:

    <6>[  266.674713] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    <6>[  266.687164] wlcore: loaded
    <6>[  266.690277] wlcore: driver version: R8.5
    <6>[  266.694671] wlcore: compilation time: Thu Jan 29 18:07:18 2015
    <6>[  283.649139] wlcore: PHY firmware version: Rev 8.2.0.0.224
    <6>[  283.757873] wlcore: firmware booted (Rev 8.9.0.0.31)
    <6>[  283.776458] ADDRCONF(NETDEV_UP): wlan0: link is not ready

    Could you give me some suggestions?

  • Hi Joseph,

    Yes. After insmod wlcore_sdio, the wlan0 interface is created. But it can't be up when 'ifconfig wlan0 up'.

    When do 'ifconfig wlan0 up' ,the kernel logs are below:
    <6>[ 266.674713] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
    <6>[ 266.687164] wlcore: loaded
    <6>[ 266.690277] wlcore: driver version: R8.5
    <6>[ 266.694671] wlcore: compilation time: Thu Jan 29 18:07:18 2015
    <6>[ 283.649139] wlcore: PHY firmware version: Rev 8.2.0.0.224
    <6>[ 283.757873] wlcore: firmware booted (Rev 8.9.0.0.31)
    <6>[ 283.776458] ADDRCONF(NETDEV_UP): wlan0: link is not ready
  • Hi Joseph,

    In Android, I see the log:
    E/WifiStateMachine( 358): Failed to load driver!
    E/WifiStateMachine( 358): DriverFailedState

    Is it the drivers loaded failed? But all wifi drivers are inmod ad below:
    255|root@android:/ # lsmod
    wlcore_sdio 5084 0 - Live 0x00000000 (O)
    wl18xx 87488 0 - Live 0x00000000 (O)
    wl12xx 53339 0 - Live 0x00000000 (O)
    wlcore 184841 2 wl18xx,wl12xx, Live 0x00000000 (O)
    mac80211 559287 3 wl18xx,wl12xx,wlcore, Live 0x00000000 (O)
    cfg80211 494079 3 wl18xx,wlcore,mac80211, Live 0x00000000 (O)
    compat 15560 5 wlcore_sdio,wl18xx,wl12xx,mac80211,cfg80211, Live 0x00000000 (O)
    pvrsrvkm_sgx544_112 343734 44 - Live 0x00000000 (O)
  • Hi,

    The log:
    <6>[ 283.776458] ADDRCONF(NETDEV_UP): wlan0: link is not ready

    is normal - I see it during boot up at my end too.
    From the logs that you have pasted, it looks to me that the wl18xx is up.

    Can you share me the results of "ifconfig -a" ?

    Regards,
    Gigi Joseph.
  • Hi Joseph,

    In Android, I saw the log:
    E/WifiStateMachine( 358): Failed to load driver!
    E/WifiStateMachine( 358): DriverFailedState
    It seems insmod failed, right?

    But all wifi modules drivers are insmoded as below:
    255|root@android:/ # lsmod
    wlcore_sdio 5084 0 - Live 0x00000000 (O)
    wl18xx 87488 0 - Live 0x00000000 (O)
    wl12xx 53339 0 - Live 0x00000000 (O)
    wlcore 184841 2 wl18xx,wl12xx, Live 0x00000000 (O)
    mac80211 559287 3 wl18xx,wl12xx,wlcore, Live 0x00000000 (O)
    cfg80211 494079 3 wl18xx,wlcore,mac80211, Live 0x00000000 (O)
    compat 15560 5 wlcore_sdio,wl18xx,wl12xx,mac80211,cfg80211, Live 0x00000000 (O)
    pvrsrvkm_sgx544_112 343734 44 - Live 0x00000000 (O)

    root@android:/ # busybox ifconfig -a
    ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
    NOARP MTU:1452 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    sit0 Link encap:IPv6-in-IPv4
    NOARP MTU:1480 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    wlan0 Link encap:Ethernet HWaddr 70:72:CF:09:00:63
    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)
  • Hi Joseph,

    In Android, I saw the log:
    E/WifiStateMachine( 358): Failed to load driver!
    E/WifiStateMachine( 358): DriverFailedState
    It seems Android insmod failed, right?

    But all wifi modules drivers are insmoded as below:
    255|root@android:/ # lsmod
    wlcore_sdio 5084 0 - Live 0x00000000 (O)
    wl18xx 87488 0 - Live 0x00000000 (O)
    wl12xx 53339 0 - Live 0x00000000 (O)
    wlcore 184841 2 wl18xx,wl12xx, Live 0x00000000 (O)
    mac80211 559287 3 wl18xx,wl12xx,wlcore, Live 0x00000000 (O)
    cfg80211 494079 3 wl18xx,wlcore,mac80211, Live 0x00000000 (O)
    compat 15560 5 wlcore_sdio,wl18xx,wl12xx,mac80211,cfg80211, Live 0x00000000 (O)
    pvrsrvkm_sgx544_112 343734 44 - Live 0x00000000 (O)

    root@android:/ # busybox ifconfig -a
    ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
    NOARP MTU:1452 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    sit0 Link encap:IPv6-in-IPv4
    NOARP MTU:1480 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    wlan0 Link encap:Ethernet HWaddr 70:72:CF:09:00:63
    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)
  • Hi Joseph,

    In Android, I saw the log:

    E/WifiStateMachine(  358): Failed to load driver!

    E/WifiStateMachine(  358): DriverFailedState

    It seems Android insmod failed, right?

    But all wifi modules drivers are insmoded as below:

    255|root@android:/ # lsmod

    wlcore_sdio 5084 0 - Live 0x00000000 (O)

    wl18xx 87488 0 - Live 0x00000000 (O)

    wl12xx 53339 0 - Live 0x00000000 (O)

    wlcore 184841 2 wl18xx,wl12xx, Live 0x00000000 (O)

    mac80211 559287 3 wl18xx,wl12xx,wlcore, Live 0x00000000 (O)

    cfg80211 494079 3 wl18xx,wlcore,mac80211, Live 0x00000000 (O)

    compat 15560 5 wlcore_sdio,wl18xx,wl12xx,mac80211,cfg80211, Live 0x00000000 (O)

    pvrsrvkm_sgx544_112 343734 44 - Live 0x00000000 (O)

    root@android:/ # busybox ifconfig -a

    ip6tnl0   Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  

             NOARP  MTU:1452  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:0

             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    lo        Link encap:Local Loopback  

             inet addr:127.0.0.1  Mask:255.0.0.0

             inet6 addr: ::1/128 Scope:Host

             UP LOOPBACK RUNNING  MTU:16436  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:0

             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    sit0      Link encap:IPv6-in-IPv4  

             NOARP  MTU:1480  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:0

             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    wlan0     Link encap:Ethernet  HWaddr 70:72:CF:09:00:63  

             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)

  • Hi Joseph,

    In Android, I saw the log:
    E/WifiStateMachine( 358): Failed to load driver!
    E/WifiStateMachine( 358): DriverFailedState
    It seems Android insmod failed, right?

    But all wifi modules drivers are insmoded as below:
    255|root@android:/ # lsmod
    wlcore_sdio 5084 0 - Live 0x00000000 (O)
    wl18xx 87488 0 - Live 0x00000000 (O)
    wl12xx 53339 0 - Live 0x00000000 (O)
    wlcore 184841 2 wl18xx,wl12xx, Live 0x00000000 (O)
    mac80211 559287 3 wl18xx,wl12xx,wlcore, Live 0x00000000 (O)
    cfg80211 494079 3 wl18xx,wlcore,mac80211, Live 0x00000000 (O)
    compat 15560 5 wlcore_sdio,wl18xx,wl12xx,mac80211,cfg80211, Live 0x00000000 (O)
    pvrsrvkm_sgx544_112 343734 44 - Live 0x00000000 (O)

    root@android:/ # busybox ifconfig -a
    ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
    NOARP MTU:1452 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    sit0 Link encap:IPv6-in-IPv4
    NOARP MTU:1480 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    wlan0 Link encap:Ethernet HWaddr 70:72:CF:09:00:63
    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)
  • Joseph,

    In my code, there is no 'iw'. There have wlconf and cabilitor.
    In Android, I saw the log:
    E/WifiStateMachine( 358): Failed to load driver!
    E/WifiStateMachine( 358): DriverFailedState
    It seems Android insmod failed, right?

    But all wifi modules drivers are insmoded as below:
    255|root@android:/ # lsmod
    wlcore_sdio 5084 0 - Live 0x00000000 (O)
    wl18xx 87488 0 - Live 0x00000000 (O)
    wl12xx 53339 0 - Live 0x00000000 (O)
    wlcore 184841 2 wl18xx,wl12xx, Live 0x00000000 (O)
    mac80211 559287 3 wl18xx,wl12xx,wlcore, Live 0x00000000 (O)
    cfg80211 494079 3 wl18xx,wlcore,mac80211, Live 0x00000000 (O)
    compat 15560 5 wlcore_sdio,wl18xx,wl12xx,mac80211,cfg80211, Live 0x00000000 (O)
    pvrsrvkm_sgx544_112 343734 44 - Live 0x00000000 (O)

    root@android:/ # busybox ifconfig -a
    ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
    NOARP MTU:1452 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    sit0 Link encap:IPv6-in-IPv4
    NOARP MTU:1480 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    wlan0 Link encap:Ethernet HWaddr 70:72:CF:09:00:63
    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)
  • Joseph,

    In my code, there is no 'iw'. There have wlconf and cabilitor.
    In Android, I saw the log:
    E/WifiStateMachine( 358): Failed to load driver!
    E/WifiStateMachine( 358): DriverFailedState
    It seems Android insmod failed, right?

    But all wifi modules drivers are insmoded as below:
    255|root@android:/ # lsmod
    wlcore_sdio 5084 0 - Live 0x00000000 (O)
    wl18xx 87488 0 - Live 0x00000000 (O)
    wl12xx 53339 0 - Live 0x00000000 (O)
    wlcore 184841 2 wl18xx,wl12xx, Live 0x00000000 (O)
    mac80211 559287 3 wl18xx,wl12xx,wlcore, Live 0x00000000 (O)
    cfg80211 494079 3 wl18xx,wlcore,mac80211, Live 0x00000000 (O)
    compat 15560 5 wlcore_sdio,wl18xx,wl12xx,mac80211,cfg80211, Live 0x00000000 (O)
    pvrsrvkm_sgx544_112 343734 44 - Live 0x00000000 (O)

    root@android:/ # busybox ifconfig -a
    wlan0 Link encap:Ethernet HWaddr 70:72:CF:09:00:63
    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)
  • Josepsh,

    root@android:/ # busybox ifconfig -a
    wlan0 Link encap:Ethernet HWaddr 70:72:CF:09:00:63
    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)

    In Android, I saw the log:
    E/WifiStateMachine( 358): Failed to load driver!
    E/WifiStateMachine( 358): DriverFailedState
    It seems Android insmod ko failed.

    But all wifi modules drivers are insmoded as below:
    255|root@android:/ # lsmod
    wlcore_sdio 5084 0 - Live 0x00000000 (O)
    wl18xx 87488 0 - Live 0x00000000 (O)
    wl12xx 53339 0 - Live 0x00000000 (O)
    wlcore 184841 2 wl18xx,wl12xx, Live 0x00000000 (O)
    mac80211 559287 3 wl18xx,wl12xx,wlcore, Live 0x00000000 (O)
    cfg80211 494079 3 wl18xx,wlcore,mac80211, Live 0x00000000 (O)
    compat 15560 5 wlcore_sdio,wl18xx,wl12xx,mac80211,cfg80211, Live 0x00000000 (O)
    pvrsrvkm_sgx544_112 343734 44 - Live 0x00000000 (O)
  • Joseph,

    root@android:/ # busybox ifconfig -a
    ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
    NOARP MTU:1452 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    sit0 Link encap:IPv6-in-IPv4
    NOARP MTU:1480 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:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    wlan0 Link encap:Ethernet HWaddr 70:72:CF:09:00:63
    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)

    In Android, I saw the log:
    E/WifiStateMachine( 358): Failed to load driver!
    E/WifiStateMachine( 358): DriverFailedState
    It seems Android insmod ko failed. Why?

    But all wifi modules drivers are insmoded as below:
    255|root@android:/ # lsmod
    wlcore_sdio 5084 0 - Live 0x00000000 (O)
    wl18xx 87488 0 - Live 0x00000000 (O)
    wl12xx 53339 0 - Live 0x00000000 (O)
    wlcore 184841 2 wl18xx,wl12xx, Live 0x00000000 (O)
    mac80211 559287 3 wl18xx,wl12xx,wlcore, Live 0x00000000 (O)
    cfg80211 494079 3 wl18xx,wlcore,mac80211, Live 0x00000000 (O)
    compat 15560 5 wlcore_sdio,wl18xx,wl12xx,mac80211,cfg80211, Live 0x00000000 (O)
    pvrsrvkm_sgx544_112 343734 44 - Live 0x00000000 (O)
  • Hi,

    Please see:

    wlan0 Link encap:Ethernet HWaddr 70:72:CF:09:00:63
    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)

    wlan0 is "UP"

    Do you get results if you do: "iw wlan0 scan | grep SSID" ?


    Regarding the error thrown by Android - "Failed to load driver!" - I think you need to check the integration (either the init.rc or the libhardware_legacy changes).

    Regards,
    Gigi Joseph.