Snowball: Bluetooth and WiFi functionality broken on "snowball-ics-gcc46-igloo-stable-blob"

Bug #1017949 reported by Abhishek Paliwal on 2012-06-26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mridul Jain
Linaro Android
Won't Fix

Bug Description

On Android build for snowball:

WiFi and BT are not working as expected.

Turn ON Bluetooth
Turn OFF Bluetooth
Now Turn ON fails for any further attempts.

Fails to turn on after bootup.


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

Serial logs/logcat attached.

summary: - Snowball: Bluetooth and WiFi broken on "snowball-ics-gcc46-igloo-stable-
- blob"
+ Snowball: Bluetooth and WiFi functionality broken on "snowball-ics-gcc46
+ -igloo-stable-blob"
Changed in igloocommunity:
milestone: none → 2012.07
importance: Undecided → Critical

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:

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)
[ 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_fm_switch_off: Invalid state of FM Driver = 0
[ 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...

Changed in igloocommunity:
assignee: nobody → Mridul Jain (mridul-jain-2)
Paul Larson (pwlars) wrote :

quick update, I'm trying this on the 12.06 release image and noticed that, as stated in the bug, turning on wifi does not seem to work. However, on a later reboot after I had enabled wifi, it seemed that wifi *was* active, and I was able to associate with an access point.

Amit Khare (amit-khare) wrote :

observed on snowball build

wifi never turns on

log in minicom:

[ 4915.640624] platform cw1200_wlan: cw1200_clk_ctrl: Failed to get clk 'sys_clk_out': -2
[ 4958.023803] cw1200_wlan: module is from the staging directory, the quality is unknown, you have been warned.

Amit Khare (amit-khare) wrote :

This is how it worked for me.
1. switch wifi on
2. wait or some time
3. reboot the board.

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
Patrik Ryd (patrik-ryd) wrote :

Waiting for delivery from the Snowball team

Changed in linaro-android:
assignee: nobody → Patrik Ryd (patrik-ryd)
milestone: none → 12.10
status: New → In Progress
Zach Pfeffer (pfefferz) on 2012-10-09
Changed in linaro-android:
importance: Undecided → Medium
Zach Pfeffer (pfefferz) wrote :

This will miss this month. Snowball team has not completed patch selection.

Changed in linaro-android:
milestone: 12.10 → backlog
Fathi Boudra (fboudra) on 2012-12-03
Changed in linaro-android:
milestone: backlog → none
status: In Progress → Triaged
assignee: Patrik Ryd (patrik-ryd) → nobody
Milosz Wasilewski (mwasilew) wrote :

ICS is not supported anymore.

Changed in linaro-android:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers