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.

Linux/WL1835MOD: Concurrent Wifi and Bluetooth Scan

Part Number: WL1835MOD
Other Parts Discussed in Thread: WL1835, WL1271

Tool/software: Linux

Hi All,

I have successfully interfaced WL1835 module with my custom imx6 development board running on Android 5.0. I am able to port Wifi and Bluetooth drivers and everything seems to be working fine. In my application, I initiate both Wifi and Bluetooth Scan at the same time. With this implementation, it seems that wifi scan process completes unsuccessfully causing Wifi Driver to reload the firmware. Once I disable Bluetooth, I do not face this issue.

Kernel dmesg -

wlcore: Scan completed due to error.
[ 1187.331501] ------------[ cut here ]------------
[ 1187.336125] WARNING: at /home/teddy/wifisource/linux_module_drivers/wl12xx/drivers/net/wireless/ti/wlcore/main.c:808 wl12xx_queue_recovery_work.p)
[ 1187.354698] Modules linked in: wl18xx(O) wlcore_sdio(O) wlcore(O) mac80211(O) cfg80211(O) compat(O) tegra_usb_oc_detect_module tegra_usb_otg_switching tegra_camera videobuf2_dma_contg
[ 1187.371243] CPU: 1 PID: 1910 Comm: kworker/u8:1 Tainted: G W O 3.10.40-gf204eae-dirty #15
[ 1187.380116] Workqueue: phy0 wl1271_scan_complete_work [wlcore]
[ 1187.385961] [<c00166c0>] (unwind_backtrace+0x0/0x13c) from [<c0012f18>] (show_stack+0x18/0x1c)
[ 1187.394559] [<c0012f18>] (show_stack+0x18/0x1c) from [<c0064974>] (warn_slowpath_common+0x5c/0x74)
[ 1187.403502] [<c0064974>] (warn_slowpath_common+0x5c/0x74) from [<c0064a40>] (warn_slowpath_null+0x24/0x2c)
[ 1187.413141] [<c0064a40>] (warn_slowpath_null+0x24/0x2c) from [<bf20eee4>] (wl12xx_queue_recovery_work.part.36+0x78/0x7c [wlcore])
[ 1187.424779] [<bf20eee4>] (wl12xx_queue_recovery_work.part.36+0x78/0x7c [wlcore]) from [<bf2239b4>] (wl1271_scan_complete_work+0x120/0x124 [wlcore])
[ 1187.437975] [<bf2239b4>] (wl1271_scan_complete_work+0x120/0x124 [wlcore]) from [<c0084708>] (process_one_work+0x13c/0x454)
[ 1187.449000] [<c0084708>] (process_one_work+0x13c/0x454) from [<c008545c>] (worker_thread+0x140/0x3dc)
[ 1187.458204] [<c008545c>] (worker_thread+0x140/0x3dc) from [<c008ba40>] (kthread+0xe0/0xe4)
[ 1187.466454] [<c008ba40>] (kthread+0xe0/0xe4) from [<c000f058>] (ret_from_fork+0x14/0x20)
[ 1187.474527] ---[ end trace b4823d3dbbb30566 ]---
[ 1187.479156] wlcore: Hardware recovery in progress. FW ver: Rev 8.9.0.0.70
[ 1187.486300] wlcore: pc: 0x0, hint_sts: 0x00000020 count: 3
[ 1187.492141] wlcore: down
[ 1187.495963] ieee80211 phy0: Hardware restart was requested
[ 1187.573406] SDIO Vendor ID:0097 and SDIO Device ID: 4076
[ 1187.835991] wlcore: PHY firmware version: Rev 8.2.0.0.237
[ 1187.871813] wlcore: firmware booted (Rev 8.9.0.0.70)

I would like to have initiate Bluetooth and Wifi Scan process at the same time. Did I missed anything in my configuration?

Regards,

Teddy