summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-06-19 12:13:50 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-06-19 12:13:50 -0700
commitab48bb9c008ade65e0f1313088a3089f5b65e8de (patch)
tree06595ce410ddab6bcf4ad34a5ee6f3bd1ed0b0f5 /telephony
parentf781b39cb89dc19e6ad090bd3eb1bedbe7928429 (diff)
parent238bfa9efdcf5b4b7fae8c65c528ea01c4499b8a (diff)
downloadframeworks_base-ab48bb9c008ade65e0f1313088a3089f5b65e8de.zip
frameworks_base-ab48bb9c008ade65e0f1313088a3089f5b65e8de.tar.gz
frameworks_base-ab48bb9c008ade65e0f1313088a3089f5b65e8de.tar.bz2
Merge change 4686 into donut
* changes: Set AuthType to 0 if username is not specified.
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/com/android/internal/telephony/RIL.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/telephony/java/com/android/internal/telephony/RIL.java b/telephony/java/com/android/internal/telephony/RIL.java
index 07fc7c6..c6b7601 100644
--- a/telephony/java/com/android/internal/telephony/RIL.java
+++ b/telephony/java/com/android/internal/telephony/RIL.java
@@ -1268,7 +1268,11 @@ public final class RIL extends BaseCommands implements CommandsInterface {
rr.mp.writeString(user);
rr.mp.writeString(password);
//TODO(): Add to the APN database, AuthType is set to CHAP/PAP
- rr.mp.writeString("3");
+ // 0 => Neither PAP nor CHAP will be performed, 3 => PAP / CHAP will be performed.
+ if (user != null)
+ rr.mp.writeString("3");
+ else
+ rr.mp.writeString("0");
if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest) + " "
+ apn);