Closed
Bug 804531
Opened 13 years ago
Closed 13 years ago
B2G 3G: When primary APN available, default route should not be set to secondary APN
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-basecamp:+, firefox18 fixed, firefox19 fixed)
RESOLVED
FIXED
blocking-basecamp | + |
People
(Reporter: swu, Assigned: swu)
References
Details
Attachments
(1 file, 1 obsolete file)
3.11 KB,
patch
|
Details | Diff | Splinter Review |
During testing two APNs, sometimes default route was set to secondary APN, instead of primary data APN.
Assignee | ||
Comment 1•13 years ago
|
||
This may affect bug 801540, which is blocking-basecamp+.
Assignee: nobody → swu
blocking-basecamp: --- → ?
Comment 2•13 years ago
|
||
Hi Shian-Yow,
Can you please offer the way how you reproduce this bug? Thanks.
Assignee | ||
Comment 3•13 years ago
|
||
(In reply to vliu from comment #2)
> Hi Shian-Yow,
>
> Can you please offer the way how you reproduce this bug? Thanks.
STR:
1. Connect to Data APN
2. Check /proc/net/route and default route is rmnet0.
3. Connect to MMS APN
4. Check /proc/net/route. The default route should stay in rmnet0, but it changed to rmnet1.
Assignee | ||
Comment 4•13 years ago
|
||
The original implementation avoids setting default route and DNS to secondary APNs(MMS, SUPL). There was a bug to use 'oldActive.type', should be changed to check 'this.active.type' instead.
Besides this fix, I think we can make it better by following further changes:
1. If only secondary APNs (MMS, SUPL) connected, we still set default route and DNS for the secondary APN network.
2. We don't need to set this limitation when 'this._overriddenActive' is true. But the value true here means we really want it to be overridden.
Attachment #674577 -
Flags: review?(philipp)
Comment 5•13 years ago
|
||
(In reply to Shian-Yow Wu from comment #1)
> This may affect bug 801540, which is blocking-basecamp+.
I don't think we can block on it until we know if it does affect bug 801540. Please re-nom when you find out. Thanks :)
blocking-basecamp: ? → ---
Comment 6•13 years ago
|
||
Comment on attachment 674577 [details] [diff] [review]
V1
Review of attachment 674577 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/NetworkManager.js
@@ +374,5 @@
> + // If default data APN is not connected, we still set default route
> + // and DNS on seconary APN.
> + if (defaultDataNetwork &&
> + (this.active.type == Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE_MMS ||
> + this.active.type == Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE_SUPL) &&
Indent this line 1 more space to make it clear it's *inside* of the parentheses.
(Also, nit: trailing space two lines up)
Attachment #674577 -
Flags: review?(philipp) → review+
Assignee | ||
Comment 7•13 years ago
|
||
(In reply to Andrew Overholt [:overholt] from comment #5)
> (In reply to Shian-Yow Wu from comment #1)
> > This may affect bug 801540, which is blocking-basecamp+.
>
> I don't think we can block on it until we know if it does affect bug 801540.
> Please re-nom when you find out. Thanks :)
If the secondary APN takes over default route from primary APN, user will not be able to access Internet. So I should say that we need to fix this bug to avoid Internet access been affect by bug 801540.
No longer blocks: 801540
blocking-basecamp: --- → ?
Assignee | ||
Comment 8•13 years ago
|
||
Review comments addressed.
Attachment #674577 -
Attachment is obsolete: true
Assignee | ||
Comment 10•13 years ago
|
||
Comment 11•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 12•13 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•