Wifi does not always work on Samsung Origen

Bug #937392 reported by Zach Pfeffer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Fix Released
High
Chengjie HE
linaro-landing-team-samsung
Invalid
Undecided
Unassigned

Bug Description

Zach Pfeffer (pfefferz)
Changed in linaro-android:
importance: Undecided → High
assignee: nobody → Chengjie HE (chengjie-he)
milestone: none → 12.03
tags: added: linaro-android
tags: added: wifi
tags: added: origen-staging
Changed in linaro-android:
status: New → Confirmed
status: Confirmed → In Progress
description: updated
Revision history for this message
Chengjie HE (chengjie-he) wrote :

I talked with Sangwook on this, here is some update:
1) for origen board, there are two versions, the chipset of ath6kl differs on the two versions. I use the new version, so it will use "hw 2.1.1 fw 3.1.1.609" as its firmware, so could you check which firmware your chipset uses? If you still use the old version of board, I am not sure I am debugging the same issue as yours.
2) here for my board, sometimes you can turn on the wifi, sometimes you can't. Is this the same bug as to your board?

Revision history for this message
vishal (vishalbhoj) wrote :

The wifi is not stable on origen build:
https://android-build.linaro.org/builds/~linaro-android/origen-ics-gcc46-samsunglt-stable-blob-12.03-release/#build=5 . works some time and sometimes when we turn on wifi from GUI we see this kernel messges:

root@android:/ # mmc2: queuing unknown CIS tuple 0x01 (3 bytes)
mmc2: queuing unknown CIS tuple known CIS tuple 0x1b (8 bytes)
mmc2: queuing unknown CIS tuple 0x14 (0 bytes)
mmc2: queuing unknown CIS tuple 0x80 (1 bytes)
mmc2: queuing unknown CIS tuple 0x81 (1 bytes)
mmc2: queuing unknown CIS tuple 0x82 (1 bytes)
mmc2: new high speed SDIO card at address 0001
ath6kl: temporary war to avoid sdio crc error
ath6kl: hw 2.0 fw 3.1.1.149
ath6kl: tx error, status: 0xffffff83
ath6kl: tx error, status: 0xffffff83
mmc2: card 0001 removed

Revision history for this message
Alexander Sack (asac) wrote :

this should have been forwarded to the origen LT, no?

Changed in linaro-landing-team-samsung:
status: New → Confirmed
Changed in linaro-landing-team-samsung:
assignee: nobody → Sangwook Lee (sangwook)
importance: Undecided → High
Revision history for this message
Sangwook Lee (sangwook) wrote :

OK, please let me produce this problem and then will update.

Revision history for this message
Sangwook Lee (sangwook) wrote :

Turn on/off WLAN looks like:
Turn on WLAN => $ insmod /system/modules/ath6kl.ko
Turn off WLAN => $ rmmod ath6kl

If I repeat the following in adb console,
 $ insmod /system/modules/ath6kl.ko
 & rmmod ath6kl
mostly it works fine.

If I turn off/on WLAN UI, it makes errors:

For example
<4>mmc2: queuing unknown CIS tuple 0x01 (3 bytes)
mmc2: queuing unknown CIS tuple 0x01 (3 bytes)
<4>mmc2: queuing unknown CIS tuple 0x1a (5 bytes)
mmc2: queuing unknown CIS tuple 0x1a (5 bytes)
<4>mmc2: queuing unknown CIS tuple 0x1b (8 bytes)
mmc2: queuing unknown CIS tuple 0x1b (8 bytes)
<4>mmc2: queuing unknown CIS tuple 0x14 (0 bytes)
mmc2: queuing unknown CIS tuple 0x14 (0 bytes)
<4>mmc2: queuing unknown CIS tuple 0x80 (1 bytes)
mmc2: queuing unknown CIS tuple <x80 (1 bytes)
4>mmc2: queuing unknown CIS tuple 0x81 (1 bytes)
mmc2: queuing unknown CIS tuple <x81 (1 bytes)
4>mmc2: queuing unknown CIS tuple 0x82 (1 bytes)
mmc2: queuing unknown CIS tuple 0x82 (1 bytes)
<6>mmc2: new high speed SDIO card at address 0001
mmc2: new high speed SDIO card at address 0001
<6>mmc2: card 0001 removed
mmc2: card 0001 removed

Last two lines are quite strange
As soon as WLAN is turned on from UI, I guess it doesn't wait till driver is loaded
and then return error. How about the waiting condition till loading driver in platform code ?

Hmm.. let me see more others.

Please ignore the below.
This is a packet error, being flushed out.
ath6kl: tx error, status: 0xffffff83

Zach Pfeffer (pfefferz)
Changed in linaro-android:
milestone: 12.03 → 12.04
Revision history for this message
Sangwook Lee (sangwook) wrote :

@vishal

I downloaded today's version android ( 28 March 2012) And after building image, I turned on/of UI again.
It seems to works fine. At first glance, there seems to be an blocking mechanism to prievent turning off suddenly
during turning-on process. Please try it with the latest version Linaro Android, let us see it again.

Revision history for this message
Chengjie HE (chengjie-he) wrote :

added some delay in HAL to let the module be loaded successfully

Changed in linaro-android:
status: In Progress → Fix Committed
Revision history for this message
vishal (vishalbhoj) wrote :

Jackh,

Can you point out the change you did ?

Sangwook,

I tried https://android-build.linaro.org/builds/~linaro-android/origen-ics-gcc46-samsunglt-stable-blob/#build=238 . I found that it happens when we turnoff and turn on the wifi quickly . This is a corner case,but once this happens we need to reboot the board to have wifi working.

Revision history for this message
Chengjie HE (chengjie-he) wrote : Re: [Bug 937392] Re: Wifi does not always work on Samsung Origen

only one line of code change:

http://review.android.git.linaro.org/#change,1725

On 30 March 2012 00:14, vishal <email address hidden> wrote:

> Jackh,
>
> Can you point out the change you did ?
>
> Sangwook,
>
> I tried https://android-build.linaro.org/builds/~linaro-android/origen-
> ics-gcc46-samsunglt-stable-blob/#build=238 . I found that it happens
> when we turnoff and turn on the wifi quickly . This is a corner
> case,but once this happens we need to reboot the board to have wifi
> working.
>
> --
> You received this bug notification because you are a bug assignee.
> Matching subscriptions: all-android-bugs
> https://bugs.launchpad.net/bugs/937392
>
> Title:
> Wifi does not always work on Samsung Origen
>
> Status in Linaro Android:
> Fix Committed
> Status in Linaro Samsung Landing Team Project:
> Confirmed
>
> Bug description:
> I booted up
>
> https://android-build.linaro.org/builds/~linaro-android/origen-ics-gcc46-samsunglt-stable-blob-12.02-release/#build=1
> 3 times.
> I enabled WiFi each time.
> It only worked the 3rd time.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linaro-android/+bug/937392/+subscriptions
>

Changed in linaro-landing-team-samsung:
milestone: none → 2012.04
Changed in linaro-landing-team-samsung:
status: Confirmed → Invalid
milestone: 2012.04 → none
assignee: Sangwook Lee (sangwook) → nobody
importance: High → Undecided
Revision history for this message
Botao (botao-sun) wrote :
Download full text (3.6 KiB)

On build:

https://android-build.linaro.org/builds/~linaro-android/origen-ics-gcc47-samsunglt-stable-blob-12.04-release/#build=2

DNS can't be set automatically, thus, the board can't access Internet except manually set DNS server.

root@android:/ # ping www.google.com
ping: unknown host www.google.com

root@android:/ # setprop net.dns1 10.0.0.138
root@android:/ # ping www.google.com
PING www.l.google.com (74.125.237.115) 56(84) bytes of data.
64 bytes from syd01s12-in-f19.1e100.net (74.125.237.115): icmp_seq=1 ttl=52 tims
64 bytes from syd01s12-in-f19.1e100.net (74.125.237.115): icmp_seq=2 ttl=52 tims
64 bytes from syd01s12-in-f19.1e100.net (74.125.237.115): icmp_seq=3 ttl=53 tims
64 bytes from syd01s12-in-f19.1e100.net (74.125.237.115): icmp_seq=4 ttl=53 tims
^C
--- www.l.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 34.249/92.298/146.781/44.739 ms
root@android:/ #

Also, the WiFi enabling was failed at the first time, but succeeded after several tries. It means the WiFi enabling doesn't not always work, as this bug title described.

mmc2: queuing unknown CIS tuple 0x01 (3 bytes)
mmc2: queuing unknown CIS tuple 0x1a (5 bytes)
mmc2: queuing unknown CIS tuple 0x1b (8 bytes)
mmc2: queuing unknown CIS tuple 0x14 (0 bytes)
mmc2: queuing unknown CIS tuple 0x80 (1 bytes)
mmc2: queuing unknown CIS tuple 0x81 (1 bytes)
mmc2: queuing unknown CIS tuple 0x82 (1 bytes)
mmc2: new high speed SDIO card at address 0001
ath6kl: temporary war to avoid sdio crc error
ath6kl: hw 2.0 fw 3.1.1.149
ath6kl: tx error, status: 0xffffff83
ath6kl: tx error, status: 0xffffff83
mmc2: card 0001 removed
request_suspend_state: sleep (0->3) at 1063949196583 (2000-01-01 00:17:43.26435)
request_suspend_state: wakeup (3->0) at 1065186040424 (2000-01-01 00:17:44.5011)
mmc2: queuing unknown CIS tuple 0x01 (3 bytes)
mmc2: queuing unknown CIS tuple 0x1a (5 bytes)
mmc2: queuing unknown CIS tuple 0x1b (8 bytes)
mmc2: queuing unknown CIS tuple 0x14 (0 bytes)
mmc2: queuing unknown CIS tuple 0x80 (1 bytes)
mmc2: queuing unknown CIS tuple 0x81 (1 bytes)
mmc2: queuing unknown CIS ...

Read more...

Revision history for this message
Zach Pfeffer (pfefferz) wrote :

Based on Botao's description this is still inprogress.

Changed in linaro-android:
status: Fix Committed → In Progress
Revision history for this message
Zach Pfeffer (pfefferz) wrote :

Moving it off the schedule due to 12.05 priorities and current resource levels.

Changed in linaro-android:
milestone: 12.04 → none
Revision history for this message
Botao (botao-sun) wrote :
Revision history for this message
Botao (botao-sun) wrote :
Revision history for this message
Botao (botao-sun) wrote :
Revision history for this message
Sangwook Lee (sangwook) wrote :

@Chenglie, others?

I can see this issue with android tracking branch. DNS is not set up automatically .
Do you have any idea ?

Revision history for this message
Chengjie HE (chengjie-he) wrote :

On 05/22/2012 10:09 PM, Sangwook Lee wrote:
> @Chenglie, others?
>
> I can see this issue with android tracking branch. DNS is not set up automatically .
> Do you have any idea ?
>
I think what the reporter said is the enable fail bug still exists there.

Revision history for this message
Chengjie HE (chengjie-he) wrote :

On 05/22/2012 10:09 PM, Sangwook Lee wrote:
> @Chenglie, others?
>
> I can see this issue with android tracking branch. DNS is not set up automatically .
> Do you have any idea ?
>
I will try to reproduce it with the latest build

Revision history for this message
Sangwook Lee (sangwook) wrote :

SUMMARY:
In this bug reports, there were two issues:

1) When turning off/ on quickly
  The patch was added in Android platform source code by Chengjie.
  Simple this is to prevent user from pressing quickly untill WLAN is completely loaded.
  This issues has no relation to run-time operation.

2) DNS issues.
 Android platform code have to try DNS setting properly once WLAN is connected to Access Point.

Revision history for this message
Botao (botao-sun) wrote :
Revision history for this message
Botao (botao-sun) wrote :
Revision history for this message
Annamalai Lakshmanan (annamalai-lakshmanan) wrote :

Hi Sangwook,

Could the DNS setting be automated in Android, So User can be free from setting Config,

Botao,

Your comments on this.

Revision history for this message
Sangwook Lee (sangwook) wrote :

@Annamalai
Please look into Android stack related to DNS or DHCP. Android platform must take initiate these connection. It might be related to init xx.rc file or somewhere.

On 6 Jun 2012, at 12:16, Annamalai Lakshmanan <email address hidden> wrote:

> Hi Sangwook,
>
> Could the DNS setting be automated in Android, So User can be free from
> setting Config,
>
> Botao,
>
> Your comments on this.
>
> --
> You received this bug notification because you are a member of Linaro
> Landing Team: Samsung, which is subscribed to linaro-landing-team-
> samsung.
> https://bugs.launchpad.net/bugs/937392
>
> Title:
> Wifi does not always work on Samsung Origen
>
> Status in Linaro Android:
> In Progress
> Status in Linaro Samsung Landing Team Project:
> Invalid
>
> Bug description:
> I booted up
> https://android-build.linaro.org/builds/~linaro-android/origen-ics-gcc46-samsunglt-stable-blob-12.02-release/#build=1
> 3 times.
> I enabled WiFi each time.
> It only worked the 3rd time.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linaro-android/+bug/937392/+subscriptions

Revision history for this message
Annamalai Lakshmanan (annamalai-lakshmanan) wrote :

OK, Thanks!, Shall compare the 1202 Origen Hangout and 1205 to see the init.rc changes, probably something is missing there..

Changed in linaro-android:
milestone: none → 12.06
Revision history for this message
Botao (botao-sun) wrote :
Revision history for this message
Fathi Boudra (fboudra) wrote :

Closing the initial issue: wifi doesn't always work on Origen.
Separate issue created to track the DNS problem:
https://bugs.launchpad.net/linaro-android/+bug/1012542

Changed in linaro-android:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.