Closed
Bug 1046116
Opened 10 years ago
Closed 10 years ago
Device is not connecting automatically to wifi whenever device coming back to wifi area
Categories
(Firefox OS Graveyard :: Wifi, defect)
Tracking
(blocking-b2g:2.0+, firefox32 wontfix, firefox33 wontfix, firefox34 fixed, b2g-v1.4 fixed, b2g-v2.0 fixed, b2g-v2.1 fixed)
People
(Reporter: vasanth, Assigned: hchang)
References
()
Details
(Whiteboard: [p=2])
Attachments
(6 files)
64.73 KB,
image/png
|
Details | |
224.69 KB,
text/plain
|
Details | |
236.67 KB,
text/plain
|
Details | |
569.50 KB,
text/plain
|
Details | |
1.77 KB,
patch
|
vchang
:
review+
|
Details | Diff | Splinter Review |
1.52 KB,
patch
|
bajaj
:
approval-mozilla-b2g30+
|
Details | Diff | Splinter Review |
[Blocking Requested - why for this release]:
Device: Flame
Steps to reproduce:
-------------------
1. Enable Wifi, connect to a wifi network
2. Move out of Wifi area, enable Cellular data. Device is connected to cellular data (HSPA)
3. Bring device back to wifi area.
4. Device should disconnect the cellular data and connect to wifi
5. Device is not connecting to wifi until user explicitly click on the wifi network listed in the "Available networks"
Attached the screen shot when the device is in wifi area and listing all the available wifi networks, but not connecting automatically to "Hydra" for which the device is configured to connect. After clicking on "Hydra", it is connecting to that.
Vasanth -- does it reproduce on 8x10/8x26 QRDs with KK build? If not then this should not block the CC metabug.
Flags: needinfo?(vasanth)
Comment 3•10 years ago
|
||
I was able to reproduce this issue on the latest 2.0 Flame build. The device did not reconnect automatically and required selecting the network manually to succeed.
Environmental Variables:
Device: Flame 2.0
BuildID: 20140730080807
Gaia: e8425788e0372fbbcc40387b799f0636c041fc14
Gecko: 20c472fc0ee3
Version: 32.0 (2.0)
Firmware Version: v122
User Agent: Mozilla/5.0 (Mobile; rv:32.0) Gecko/32.0 Firefox/32.0
(In reply to Inder from comment #2)
> Vasanth -- does it reproduce on 8x10/8x26 QRDs with KK build?
Yes. Able to reproduce in 8x10 QRD with FFOS 2.0 + KK build
Device did not reconnect automatically.
Flags: needinfo?(vasanth)
Updated•10 years ago
|
blocking-b2g: 2.0? → 2.0+
Updated•10 years ago
|
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(jmitchell)
Comment 5•10 years ago
|
||
Ken,
Can you please help with an assignee here to investigate this urgently ? Thanks!
Flags: needinfo?(kchang)
Updated•10 years ago
|
Assignee: nobody → vchang
Assignee | ||
Comment 7•10 years ago
|
||
Attach the log at the time I reproduced. The network was disabled by gecko for some reason.
.....
I/Gecko ( 291): -------------- WifiCommand: Sending command: DISABLE_NETWORK 0 @ wlan0
D/wpa_supplicant( 974): RX ctrl_iface - hexdump(len=17): 44 49 53 41 42 4c 45 5f 4e 45 54 57 4f 52 4b 20 30
D/wpa_supplicant( 974): wlan0: Control interface command 'DISABLE_NETWORK 0'
D/wpa_supplicant( 974): CTRL_IFACE: DISABLE_NETWORK id=0
.....
Assignee | ||
Comment 8•10 years ago
|
||
The network was disabled from [1], which was first introduced at [2].
[1] http://hg.mozilla.org/mozilla-central/file/104254bd1fc8/dom/wifi/WifiWorker.js#l818
[2] http://hg.mozilla.org/mozilla-central/diff/c25c93664add/dom/wifi/WifiWorker.js#l1.44
Assignee | ||
Comment 9•10 years ago
|
||
Assignee | ||
Comment 11•10 years ago
|
||
Current code treats CTRL-EVENT-ASSOC-REJECT as a WEP authentication
failure as discussed on Bug 786438. It's definitely a false alarm on
flame (at least).
CTRL-EVENT-ASSOC-REJECT is originated from driver whenever
(re)association attempt has been rejected by the AP [1].
I think it's a too generic event due to a couple of sources
of error such as weak signal strength in this issue.
However, I don't see CTRL-EVENT-ASSOC-REJECT event on flame/hamachi
on WEP failure...
[1] http://androidxref.com/4.3_r2.1/xref/external/wpa_supplicant_8/src/drivers/driver.h#2832
Assignee | ||
Comment 12•10 years ago
|
||
Vasanth:
Could you attach the log to let me confirm if what we observed
was the same cause? Thanks!
Flags: needinfo?(vasanth)
Reporter | ||
Comment 13•10 years ago
|
||
Collected logs for below STR
----------------------------
1. Enabled data connection
2. Connected to open network "vasanth"
3. Moved away, wifi is disconnected and data connection is enabled.
4. Moved back closer, device failed to switch to wifi
Flags: needinfo?(vasanth)
Reporter | ||
Comment 14•10 years ago
|
||
(In reply to Henry Chang [:henry] from comment #11)
> However, I don't see CTRL-EVENT-ASSOC-REJECT event on flame/hamachi
> on WEP failure...
AFAIK, flame is using jb based gonk with 2.0 whereas our 8x10 QRDs uses kk based gonk with 2.0
That may be the reason you see a difference in behaviour?
Maybe the behavior is changed afterward, if we now focus on flame only, that part might can be removed.
But there's another concern on handling this event: force connection-error-network to be disabled and let other networks get the chance to try. For now, I think we don't have other mechanism/state to indicate connection error other than "password error".
If you plan to remove the CTRL-EVENT-ASSOC-REJECT detection, I think we have to make sure it won't get stock on the poor signal network while there's another better known network to connect. Although wpa_supplicant of flame have a "TEMP-DISABLE" state to do the job, I am not sure if other devices have it, and if we have to take of all of them in central code.
Comment 16•10 years ago
|
||
QA Wanted for branch checks
QA Whiteboard: [QAnalyst-Triage+]
Keywords: qawanted
Comment 17•10 years ago
|
||
This issue does occur on 2.1 Flame, 1.4 Flame, and 2.0 Buri. Wifi does not reconnect automatically when moving back into range.
Environmental Variables:
Device: Flame Master
BuildID: 20140804131526
Gaia: 19bf9795263e2ccc15d824a52ebf23c2670fa9b9
Gecko: 7f81be7db528
Version: 34.0a1 (Master)
Firmware Version: v122
User Agent: Mozilla/5.0 (Mobile; rv:34.0) Gecko/34.0 Firefox/34.0
Environmental Variables:
Device: Flame 1.4
BuildID: 20140804095929
Gaia: 9377274b17200a60cebcd2427d489a7756c4cc72
Gecko: 60d3725443a5
Version: 30.0 (1.4)
Firmware Version: v122
User Agent: Mozilla/5.0 (Mobile; rv:30.0) Gecko/30.0 Firefox/30.0
Environmental Variables:
Device: Buri 2.0
BuildID: 20140804140229
Gaia: ff058316218cb84520b3de71f24403de74f1ba9f
Gecko: 183947e58a9c
Version: 32.0 (2.0)
Firmware Version: v1.2device.cfg
User Agent: Mozilla/5.0 (Mobile; rv:32.0) Gecko/32.0 Firefox/32.0
QA Whiteboard: [QAnalyst-Triage?]
status-b2g-v1.4:
--- → affected
status-b2g-v2.0:
--- → affected
status-b2g-v2.1:
--- → affected
Flags: needinfo?(jmitchell)
Keywords: qawanted
Updated•10 years ago
|
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(jmitchell)
Assignee | ||
Comment 18•10 years ago
|
||
(In reply to Chuck Lee [:chucklee] from comment #15)
> Maybe the behavior is changed afterward, if we now focus on flame only, that
> part might can be removed.
> But there's another concern on handling this event: force
> connection-error-network to be disabled and let other networks get the
> chance to try. For now, I think we don't have other mechanism/state to
> indicate connection error other than "password error".
> If you plan to remove the CTRL-EVENT-ASSOC-REJECT detection, I think we have
> to make sure it won't get stock on the poor signal network while there's
> another better known network to connect. Although wpa_supplicant of flame
> have a "TEMP-DISABLE" state to do the job, I am not sure if other devices
> have it, and if we have to take of all of them in central code.
"Temp disable" was introduced at [1] for authentication failure
but not for general failure. Besides, I am not sure if the device
would get stuck in a poor signal network. So, I prefer don't disable
a network when receiving 'CTRL-EVENT-ASSOC-REJECT' until we
have a sophisticated method to re-enable it.
[1] http://w1.fi/cgit/hostap/commit/?id=00e5e3d5099eac9e75e23056dbbb9add73f63b0a
Assignee | ||
Comment 19•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8467616 -
Flags: review?(vchang)
Updated•10 years ago
|
Attachment #8467616 -
Flags: review?(vchang) → review+
Assignee | ||
Comment 20•10 years ago
|
||
Thanks :vchang for review!
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Whiteboard: [p=2]
Comment 21•10 years ago
|
||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 22•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 23•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/a62923d004d8
You'll need to nominate this for b2g30 approval if you want to get it landed on v1.4 as well.
status-firefox32:
--- → wontfix
status-firefox33:
--- → wontfix
status-firefox34:
--- → fixed
Flags: needinfo?(hchang)
Target Milestone: --- → 2.1 S2 (15aug)
Assignee | ||
Comment 24•10 years ago
|
||
Flags: needinfo?(hchang)
Assignee | ||
Comment 25•10 years ago
|
||
Comment on attachment 8468997 [details] [diff] [review]
Bug1046116.patch for v1.4
NOTE: This flag is now for security issues only. Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Wifi
User impact if declined: User may not be able to automatically connect to the remembered network when he comes back.
Testing completed: Yes.
Risk to taking this patch (and alternatives if risky): No
String or UUID changes made by this patch: No
Attachment #8468997 -
Flags: approval-mozilla-b2g30?
Updated•10 years ago
|
Flags: in-moztrap?(ychung)
Comment 26•10 years ago
|
||
New test case needs to be added. There is no existing test case.
QA Whiteboard: [QAnalyst-Triage+] → [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Comment 27•10 years ago
|
||
Test case added in Moztrap:
https://moztrap.mozilla.org/manage/case/14332/
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
Flags: in-moztrap?(ychung)
Flags: in-moztrap+
Updated•10 years ago
|
Attachment #8468997 -
Flags: approval-mozilla-b2g30? → approval-mozilla-b2g30+
Comment 28•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•