Closed
Bug 817985
Opened 12 years ago
Closed 12 years ago
mobile data connection is not disconnected when we are connected to Wifi network.
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-b2g:tef+, blocking-basecamp:-, firefox19 wontfix, firefox20 wontfix, firefox21 fixed, b2g18+ verified, b2g18-v1.0.0 verified, b2g18-v1.0.1 verified)
VERIFIED
FIXED
B2G C4 (2jan on)
People
(Reporter: vchang, Assigned: swu)
References
Details
(Whiteboard: [LOE:M])
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
vicamo
:
review+
|
Details | Diff | Splinter Review |
We use the routing rule to control the flow of data connection when wifi and mobile data connection are both enabled. The default route will be set to Wifi interface when we connect to Wifi network. Not sure if we should disconnect the mobile data connection also. Android seems disconnect the mobile data connection when it is connected to Wifi network.
Comment 2•12 years ago
|
||
My understanding from reading the description is that the data connection remains active but all network traffic is directed to wifi. (ie. The data connection is not in use while connected to wifi.) I don't think we provide any visual indication to the user that the data connection is still active. As such, basecamp-. Please renom with additional justification if I'm missing something here.
blocking-basecamp: ? → -
Comment 3•12 years ago
|
||
IMHO we should indeed disconnect the mobile data connection. When it is not in use it will use a fair amount of battery power to keep the connection alive. While this is not that bad in 2G it's more worse with 3G or even 4G.
Checking that on my Android device shows me that the mobile connection is always disconnected too when WIFI is active.
Comment 4•12 years ago
|
||
Good point, Henrik. For the sake of battery life this seems like something we should seriously consider for v1, if it's feasible.
Daniel and Chris, flagging for you, since this is more of a product call than UX.
Flags: needinfo?(clee)
Reporter | ||
Comment 6•12 years ago
|
||
I saw Android implementing this in Connectivity Manager. It is not trivial job to implement it in gecko. Not sure if we can have quick solution from gaia.
Flags: needinfo?(vchang)
Comment 7•12 years ago
|
||
Based on the risk, I don't think we can justify bb+ at this point.
tracking-b2g18:
--- → +
Flags: needinfo?(clee)
Comment 8•12 years ago
|
||
3G active connections are a battery drainer and it is also pretty bad for operator networks as keeping a PDP context open is pretty expensive in terms of network resources.
In 2G the problem is not the battery or the network, but that in most of the countries DTM (Dual Transfer Mode) is not supported, which means that having an active cellular connection, impedes the device to receive incoming calls.
I am afraid this will be problematic for certification, but David will be able to confirm it.
Flags: needinfo?(dpv)
Comment 9•12 years ago
|
||
Hi,
Yes, I also agree on the need to PS detach when registered in a WiFi network. There is no need to maintain the connectivity up when using WiFi, and this has an impact on battery consumption and network resources.
Thanks!
David
Flags: needinfo?(dpv)
Updated•12 years ago
|
blocking-basecamp: - → ?
Updated•12 years ago
|
Assignee: nobody → hub
Comment 10•12 years ago
|
||
Battery consumption is unfortunate but don't have a clear solution to this for basecamp. We'll have to figure this out after basecamp.
blocking-b2g: --- → tef+
blocking-basecamp: ? → -
Comment 11•12 years ago
|
||
OK, bear in mind that battery is not the most important consequence, doing this in 2G will make the user miss calls without knowing why. This will be very common in LatAm.
Comment 12•12 years ago
|
||
Deassigning: it seems a bit too much work for the WW and I wouldn't be able to test it in Canada.
Assignee: hub → nobody
Comment 13•12 years ago
|
||
Can you help us understand why having a 2G connection prevents making or receiving phone calls? My phone indicates a 2G connection is present much of the time, but I can still use the phone so long as I'm not actively using data.
Is the wifi connection causing the phone to assume its actively using 2G data when its not?
Otherwise it seems like this bug would waste resources but not affect telephony.
Updated•12 years ago
|
Flags: needinfo?(dcoloma)
Comment 14•12 years ago
|
||
(In reply to Lucas Adamski from comment #13)
> Can you help us understand why having a 2G connection prevents making or
> receiving phone calls? My phone indicates a 2G connection is present much
> of the time, but I can still use the phone so long as I'm not actively using
> data.
>
This is very true. If the 2G connection is not actively used you should be able to make/receive voice calls.
> Is the wifi connection causing the phone to assume its actively using 2G
> data when its not?
>
> Otherwise it seems like this bug would waste resources but not affect
> telephony.
Yes, my bad.
More details about resources consumption:
- Network: Leaving a PDP context open without needing it is problematic because most of GGSN licenses take into account the simultaneous open contexts in order to charge operator.
- Battery: This depends pretty much on the support (both on the network and device side) of Fast Dormancy Version 8, which makes the device go to Idle faster and reduces battery consumption a lot even if the device is connected. You can find an interesting paper about these issues at [1].
David (dpv) can provide you more details about it.
[1] www.nokiasiemensnetworks.com/sites/default/files/document/Smart_Lab_WhitePaper_27012011_low-res.pdf.
Flags: needinfo?(dcoloma)
Updated•12 years ago
|
Assignee: nobody → swu
Updated•12 years ago
|
Whiteboard: [LOE:M]
Comment 15•12 years ago
|
||
Taipei triaged.
Assignee | ||
Comment 16•12 years ago
|
||
WIP V1 to address this bug.
Assignee | ||
Updated•12 years ago
|
Attachment #703771 -
Flags: feedback?(vyang)
Assignee | ||
Updated•12 years ago
|
Attachment #703771 -
Flags: feedback?(vchang)
Updated•12 years ago
|
Attachment #703771 -
Flags: feedback?(vyang) → feedback+
Reporter | ||
Comment 17•12 years ago
|
||
Comment on attachment 703771 [details] [diff] [review]
WIP V1
Review of attachment 703771 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good.
Attachment #703771 -
Flags: feedback?(vchang) → feedback+
Assignee | ||
Comment 18•12 years ago
|
||
If AGPS or MMS activated the data call which shares with default APN, we should not turn off data call when wifi enabled. This patch takes this into consideration.
Attachment #703771 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Assignee | ||
Comment 19•12 years ago
|
||
Need to make sure that APGS or MMS deactivates data call when not been used.
Comment 20•12 years ago
|
||
Can we fix this for v1 without involving AGPS or MMS?
Flags: needinfo?(swu)
Assignee | ||
Comment 21•12 years ago
|
||
(In reply to Andrew Overholt [:overholt] from comment #20)
> Can we fix this for v1 without involving AGPS or MMS?
We can ignore MMS for v1. But we have to consider AGPS case, because most operators have AGPS sharing same APN with default APN.
The two AGPS bugs depended by this bug should be easy to fix.
Flags: needinfo?(swu)
Assignee | ||
Comment 22•12 years ago
|
||
This is a clean up from WIP V2.
If Wifi is connected, the data connection for Internet access will be deactivated, unless there are any activated AGPS/MMS data calls that shares same APN as default APN.
Attachment #704507 -
Attachment is obsolete: true
Attachment #704756 -
Flags: review?(vyang)
Updated•12 years ago
|
Attachment #704756 -
Flags: review?(vyang) → review+
Assignee | ||
Comment 23•12 years ago
|
||
To be landed after bug 832925 land.
Assignee | ||
Comment 24•12 years ago
|
||
Comment 25•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 26•12 years ago
|
||
status-b2g18:
--- → fixed
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
Target Milestone: --- → B2G C4 (2jan on)
Comment 27•12 years ago
|
||
Landed on mozilla-b2g18/gaia master prior to the 1/25 branching to mozilla-b2g18_v1_0_0/v1.0.0, updating status-b2g-v1.0.0 to fixed.
status-b2g18-v1.0.0:
--- → fixed
Comment 28•12 years ago
|
||
Works great with todays build on the Unagi device.
Comment 29•12 years ago
|
||
Unagi Build ID: 20130313070202
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/e74dafa6b2d9
Gaia: b34e726147f8e671ad8c538b50900ccfbffcb084
Kernel: Dec 5th
On the build above, I cannot get the bug to occur. When I launch adb and type adb shell netcfg, I'm unable to get the data connection to be active if Wifi is active. Only by turning off Wifi or being out of range can I see data working.
Marking as Verified Fixed.
Status: RESOLVED → VERIFIED
Updated•12 years ago
|
status-b2g18-v1.0.1:
--- → verified
You need to log in
before you can comment on or make changes to this bug.
Description
•