Snowball: Bluetooth and WiFi functionality broken on "snowball-ics-gcc46-igloo-stable-blob"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IglooCommunity |
In Progress
|
Critical
|
Mridul Jain | ||
Linaro Android |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Description:
-------------
On Android build for snowball:
https:/
WiFi and BT are not working as expected.
Bluetooth:
Turn ON Bluetooth
Turn OFF Bluetooth
Now Turn ON fails for any further attempts.
WiFi:
Fails to turn on after bootup.
Reproducible:
-----------------
Yes
Steps:
---------
Go to Settings->Blutooth
1. Turn ON Bluetooth
2. Turn OFF Bluetooth
3. Again turn ON Bluetooth after step-2 is completed.
Issue:Now Turn ON fails for any further attempts.
Go TO Settings->WiFi
1. Turn On WiFi
Issue: WiFI does not turns ON,
Logs: Mention about WiFi driver loading failure
----------
[ 107.948608] platform cw1200_wlan: cw1200_clk_ctrl: Failed to sys_clk_out clk enable: -5
E/WifiStateMachine( 1576): Failed to load driver!
E/WifiStateMachine( 1576): DriverFailedState
Logs:
------
Serial logs/logcat attached.
Changed in igloocommunity: | |
milestone: | none → 2012.07 |
importance: | Undecided → Critical |
Changed in igloocommunity: | |
assignee: | nobody → Mridul Jain (mridul-jain-2) |
Changed in igloocommunity: | |
milestone: | 2012.07 → 2012.08 |
Changed in igloocommunity: | |
milestone: | 2012.08 → 2012.09 |
Changed in igloocommunity: | |
status: | New → In Progress |
Changed in igloocommunity: | |
milestone: | 2012.09 → none |
Changed in linaro-android: | |
importance: | Undecided → Medium |
Changed in linaro-android: | |
milestone: | backlog → none |
status: | In Progress → Triaged |
assignee: | Patrik Ryd (patrik-ryd) → nobody |
I made a initial analysis on the issue:
1) Wifi works perfectly without any issue.
2) Switching ON Bluetooth works, but Switchin OFF Bluetooth gives a crash, and sometimes hci0 timeout error and sometimes, it deregisters the cg2900. (It seems, bluetooth is highly unstable), and sometimes, bluetooth never switches on back...
When deregistering of cg2900 happens, switching on WLAN, fails ( I guess, this is because, the wlan driver depends on cg2900 module), so, the the wlan driver is not able to find the necessary clock structure which is provided/registered by cg2900.
So, depending on the bluetooth state on bootup.. wlan fails.
Bluetooth errors:
-------------------
Error1:
-------
Attachment: bluetooth_log1.txt
Error2: (sometimes, when switching on bluetooth, hci0 timeout error)
-------
[ 293.308746] Bluetooth: hci0 command tx timeout
[ 294.308776] Bluetooth: hci0 command tx timeout
[ 295.308746] Bluetooth: hci0 command tx timeout
Error3: (deregistering of cg2900 - bluetooth) fm_switch_ off: Invalid state of FM Driver = 0
------
[ 101.379028] cg2900-uart cg2900-uart.0: Set chip power: ENABLE
[ 102.028625] cg2900-uart cg2900-uart.0: Set chip power: DISABLE
[ 103.193237] cg2900-uart cg2900-uart.0: UART closed
[ 103.198150] Bluetooth: Unregistering CG2900
[ 103.728668]
[ 103.728668] [4fe4ad29:0a8d28fe] CG2900_FM_Driver: cg2900_
[ 103.739624]
[ 103.739624] [4fe4ad29:0b34cc56] CG2900_FM_Driver: cg2900_fm_deinit: Already de-Initialized
[ 103.758056] cg2900-audiobt cg2900-audiobt.0: CG2900 Audio driver removed
[ 103.766448] cg2900_audio: CG2900 Audio device removed
[ 103.797271] cg2900-uart cg2900-uart.0: Transport disconnected
In the 3rd error case, Wlan doesn't work, giving error,
platform cw1200_wlan: cw1200_clk_ctrl: Failed to get clk 'sys_clk_out': -2 --> when we switch wlan, the cw1200_wlan module gives this error, hence the module doesn't get inserted in to the kernel & fails.
I feel, once, Bluetooth is fixed and stable, the wlan issue will get fixed automatically...