Closed Bug 996743 Opened 10 years ago Closed 10 years ago

[B2G][WIFI][Tarako] If user toggles WIFI off, then on, WIFI signal isnt found

Categories

(Firefox OS Graveyard :: Vendcom, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.3T+, b2g-v1.3T verified)

VERIFIED FIXED
blocking-b2g 1.3T+
Tracking Status
b2g-v1.3T --- verified

People

(Reporter: jcastro, Assigned: jason.liu)

References

()

Details

(Whiteboard: [POVB][sprd295066][sprd can't reproduce])

Attachments

(2 files)

Attached file WIFI_fail_logcat2.txt
User went to settings and selected WIFI. User turned WIFI off, Then on again. The phone began to search for networks. The search finds none. There is a very strong WIFI signal in the area.

Repro Steps:
1) Update a tarako to BuildID: 20140414004001
2) Go to settings > bluetooth 
3) Switch is toggled on by default, user will see a list of WIFI in the area
4) Toggle bluetooth off > Toggle bluetooth on


Actual:
Phone never finds the WIFI signal, even though it is very strong in the area

Expected:
User can toggle WIFI on and the phone will find a signal if one is present.

1.3t Environmental Variables:
Device: tarako 1.3t MOZ
BuildID: 20140414004001
Gaia: 0e7f21e61625b75a9149480cd5a259211549f020
Gecko: 3b02811c314a
Version: 28.1
Firmware Version: v1.2-device.cfg

Repro frequency: 100%

See attached: Logcat and Firewatch logs

Video URL: https://www.youtube.com/watch?v=XR8IQkOpK7I
This might be a regression from bug 991499?  Not sure...
Updated/Correct Repro steps:

Repro Steps:
1) Update a tarako to BuildID: 20140414004001
2) Go to settings > WIFI
3) Switch is toggled on by default, user will see a list of WIFI in the area
4) Toggle WIFI off > Toggle WIFI on
blocking-b2g: --- → backlog
I am not sure if you hit the bug 989717 or not. I can't reproduce the bug following STR in comment 3. 

Can you reproduce the problem after reboot the device ?
Flags: needinfo?(jcastro)
Alt repro steps:
Repro Steps:
1) Update a tarako to BuildID: 20140414004001
2) Go to settings > WIFI > Manage Networks
3) Tap on a known/connected to network > confirm removal > back
4) Switch is toggled on by default, user will see a list of WIFI in the area
5) Toggle WIFI off > Toggle WIFI on
Flags: needinfo?(jcastro)
The STR here is very confusing here. Can we get a video here that showcases the entire set of steps used to reproduce the bug & an updated STR that was used?
Keywords: qawanted
I have uploaded another video
https://www.youtube.com/watch?v=6D_hOXg17as&feature=youtu.be

Repro Steps:
1) Update a tarako to BuildID: 20140414004001
2) Go to settings > WIFI
3) Switch is toggled on by default, user will see a list of WIFI in the area
4) Toggle WIFI off > Toggle WIFI on

Results: The list of available WIFI networks is empty

Actual: The list of available networks seen in step 2, is seen after step 4.
Keywords: qawanted
Can we confirm that this doesn't reproduce on 1.3?
Keywords: qawanted
(In reply to Jason Smith [:jsmith] from comment #8)
> Can we confirm that this doesn't reproduce on 1.3?

This issue cannot be reproduced on the latest 1.3 Buri. 
Following the STR from Comment 7, user witnessed available networks displayed 100 percent of the time (10/10).

Environmental Variables:
Device: Buri 1.3 MOZ
BuildID: 20140416004000
Gaia: 11d027ec28d8e8f09c76b35661222499e124abc8
Gecko: ab227cdd984c
Version: 28.0
Firmware Version: v1.2-device.cfg

Flashed to today's (4/17) 1.3Tarako and was unable to reproduce. 
After 10 attempts, the available network list appeared each time on this build. 

Environmental Variables:
Device: Tarako 1.3T MOZ
BuildID: 20140417004002
Gaia: a8d2d399f2939f4845abaa0df57abab241a2c782
Gecko: d97dad54cb61
Version: 28.1
Firmware version: sp8810

On yesterday's (4/16) 1.3Tarako build, easily able to reproduce the issue 10 out of 10 times.
Keywords: qawanted
Saw this during the bug bash - very easy to reproduce and extremely annoying. Basically, if you disable & enable wifi once, then it will no longer work while the settings app remains open.
blocking-b2g: backlog → 1.3T?
NI Ken, mind taking the first look here ?
Flags: needinfo?(kchang)
(In reply to Jason Smith [:jsmith] from comment #10)
> Saw this during the bug bash - very easy to reproduce and extremely
> annoying. Basically, if you disable & enable wifi once, then it will no
> longer work while the settings app remains open.

Does it show "No Network found" and success show network list if you push "Search again" button in settings app ?
I found that CTRL-EVENT-SCAN-RESULTS from wpa_supplicant may return empty network lists. That's the cause we see "No Network found" right after toggle wifi on. 

Xinhe yan, can we have your comment about this ?
Flags: needinfo?(kchang) → needinfo?(xinhe.yan)
Vincent is looking into this bug.

Sam, I wonder if you could analyze this problem from your side as well.
From following log, wpa get 0 scan result from driver.
.....
04-15 10:03:37.707: D/wpa_supplicant(754): wpa_driver_nl80211_driver_cmd OK len = 0, 2
04-15 10:03:38.507: D/wpa_supplicant(754): nl80211: Event message available
04-15 10:03:38.507: D/wpa_supplicant(754): nl80211: New scan results available
04-15 10:03:38.507: D/wpa_supplicant(754): Received scan results (0 BSSes)
....

It seems there are some problem in your driver/chips..
Flags: needinfo?(sam.hua)
Flags: needinfo?(sam.hua)
ni?xinhe is enough.
(In reply to Vincent Chang[:vchang] from comment #13)
> I found that CTRL-EVENT-SCAN-RESULTS from wpa_supplicant may return empty
> network lists. That's the cause we see "No Network found" right after toggle
> wifi on. 
> 
> Xinhe yan, can we have your comment about this ?

Actually there are two cases.

1 BT is enabled.
wifi can not get RF resouce in this case.

After enable wifi, controller will allocate Rf resouce to BT periodically. 10s later, RF resouce will return back to wifi.
That is why wifi can not receive pacakge durning first scanning. But wifi can send pacakge because rf resouce will be distribute to wifi temporarily.

2 BT is disabled.
I donot know why for this case. May be the same reason of BT is enabled, may be not.
Flags: needinfo?(xinhe.yan)
blocking-b2g: 1.3T? → 1.3T+
Hi! James,

According to comment #13, it looks like BSP issue. Could your team take this case? Thanks

--
Keven
Flags: needinfo?(james.zhang)
Loop Xinhe
Assignee: nobody → xinhe.yan
Flags: needinfo?(james.zhang) → needinfo?(xinhe.yan)
Partner owns this bug.
Component: Wifi → Vendcom
Jason, it's trout issue.
Assignee: xinhe.yan → jason.liu
Whiteboard: [POVB]
Whiteboard: [POVB] → [POVB][sprd295066]
This bug already fixed by update firmware.
device/sprd/partner/trout/bluetooth/bt_ram_code.bin

commit e547d6ddf01d7c73233586cb79439e356e1abc63
Author: Xinhe Yan <xinhe.yan@spreadtrum.com>
Date:   Fri Apr 25 09:28:30 2014 +0800

    Bug #295066 update bt firmware to controller 14.17
    
    [bug number  ]295066
    [root cause  ]not change rf resource to bt when open wifi only
    [changes     ]
    [side effects]no
    [self test   ]sp6821a
    [reviewers   ]leping.zhou
Flags: needinfo?(xinhe.yan)
We can't reproduce it now.
Whiteboard: [POVB][sprd295066] → [POVB][sprd295066][sprd can't reproduce]
(In reply to Xinhe Yan from comment #24)
> This bug already fixed by update firmware.
> device/sprd/partner/trout/bluetooth/bt_ram_code.bin
> 
> commit e547d6ddf01d7c73233586cb79439e356e1abc63
> Author: Xinhe Yan <xinhe.yan@spreadtrum.com>
> Date:   Fri Apr 25 09:28:30 2014 +0800
> 
>     Bug #295066 update bt firmware to controller 14.17
>     
>     [bug number  ]295066
>     [root cause  ]not change rf resource to bt when open wifi only
>     [changes     ]
>     [side effects]no
>     [self test   ]sp6821a
>     [reviewers   ]leping.zhou

fixed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Cannot reproduce it.
Thanks!

* Build Information:
 - Gaia      6badae6610fc111403a24755795e82a675c7c88f
 - Gecko     https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/5c33164eb0ca
 - BuildID   20140507164001
 - Version   28.1
Status: RESOLVED → VERIFIED
Verified on the latest Tarako build

1.3T Environmental Variables:
Device: Tarako 1.3T
BuildID: 20140602014001
Gaia: 335486c42498fa7a93c21e4d6121199728602ab8
Gecko: 55e4d83019e5
Version: 28.1
Firmware Version: SP6821a-Gonk-4.0-4-29

1.3 tarako: User can toggle WIFI on and the phone will find a signal if one is present
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: