Merge lp:~phablet-team/ofono/lp1435784 into lp:~phablet-team/ofono/utopic-rtm

Proposed by Tony Espy
Status: Merged
Approved by: Ricardo Salveti
Approved revision: 6890
Merged at revision: 6890
Proposed branch: lp:~phablet-team/ofono/lp1435784
Merge into: lp:~phablet-team/ofono/utopic-rtm
Diff against target: 38 lines (+16/-3)
2 files modified
debian/changelog (+7/-0)
drivers/rilmodem/gprs-context.c (+9/-3)
To merge this branch: bzr merge lp:~phablet-team/ofono/lp1435784
Reviewer Review Type Date Requested Status
Ricardo Salveti (community) Approve
Review via email: mp+254160@code.launchpad.net

Commit message

 [ Alfonso Sanchez-Beato ]
  * rilmodem/gprs.c: dynamically set authtype based on credentials (LP: #1435784)

Description of the change

This change causes the type of GPRS authentication to be selected based upon the presence of a username credential in the associated GPRS context record ( aka APN ).

This fixes a BQ customer reported issue where krillin wouldn't establish a data call with a specific Austrian carrier.

https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1435784

Initially tested on mako/RTM #17 with AT&T and T-Mobile (PIN-locked) SIMs, and krillin/vivid-proposed #155 with AT&T SIM. Tested that mobile data could be established on both phones with the afore mentioned SIMs.

To post a comment you must log in.
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Code looks good, and works fine with my krillin.

Tested with krillin/RTM #257 with VIVO (unlocked SIM). Data could be established without any issues.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2015-02-17 22:10:44 +0000
3+++ debian/changelog 2015-03-25 21:38:37 +0000
4@@ -1,3 +1,10 @@
5+ofono (1.12.bzr6890+15.04.20150325.1~rtm-0ubuntu1) UNRELEASED; urgency=medium
6+
7+ [ Alfonso Sanchez-Beato ]
8+ * rilmodem/gprs.c: dynamically set authtype based on credentials (LP: #1435784)
9+
10+ -- CI Train Bot <ci-train-bot@canonical.com> Wed, 25 Mar 2015 17:29:44 -0400
11+
12 ofono (1.12.bzr6888+15.04.20150217.1~rtm-0ubuntu1) 14.09; urgency=medium
13
14 [ Alfonso Sanchez-Beato ]
15
16=== modified file 'drivers/rilmodem/gprs-context.c'
17--- drivers/rilmodem/gprs-context.c 2014-07-30 07:30:49 +0000
18+++ drivers/rilmodem/gprs-context.c 2015-03-25 21:38:37 +0000
19@@ -272,10 +272,16 @@
20 request.username = g_strdup(ctx->username);
21 request.password = g_strdup(ctx->password);
22
23- if (g_ril_vendor(gcd->ril) == OFONO_RIL_VENDOR_MTK)
24+ /*
25+ * We do the same as in $AOSP/frameworks/opt/telephony/src/java/com/
26+ * android/internal/telephony/dataconnection/DataConnection.java,
27+ * onConnect(), and use authentication or not depending on whether
28+ * the user field is empty or not.
29+ */
30+ if (request.username != NULL && request.username[0] != '\0')
31+ request.auth_type = RIL_AUTH_BOTH;
32+ else
33 request.auth_type = RIL_AUTH_NONE;
34- else
35- request.auth_type = RIL_AUTH_BOTH;
36
37 request.protocol = ctx->proto;
38 request.req_cid = ctx->cid;

Subscribers

People subscribed via source and target branches

to all changes: