Closed Bug 804531 Opened 12 years ago Closed 12 years ago

B2G 3G: When primary APN available, default route should not be set to secondary APN

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-basecamp:+, firefox18 fixed, firefox19 fixed)

RESOLVED FIXED
blocking-basecamp +
Tracking Status
firefox18 --- fixed
firefox19 --- fixed

People

(Reporter: swu, Assigned: swu)

References

Details

Attachments

(1 file, 1 obsolete file)

During testing two APNs, sometimes default route was set to secondary APN, instead of primary data APN.
This may affect bug 801540, which is blocking-basecamp+.
Assignee: nobody → swu
blocking-basecamp: --- → ?
Hi Shian-Yow,

Can you please offer the way how you reproduce this bug? Thanks.
(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.
Attached patch V1 (obsolete) (deleted) — Splinter Review
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)
(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 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+
(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: --- → ?
Attached patch Patch V2, r=philikon (deleted) — Splinter Review
Review comments addressed.
Attachment #674577 - Attachment is obsolete: true
Blocking based on comment #7.
blocking-basecamp: ? → +
https://hg.mozilla.org/mozilla-central/rev/a43543174e89
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: