diff options
| author | Jaikumar Ganesh <jaikumar@google.com> | 2009-06-18 16:25:55 -0700 |
|---|---|---|
| committer | Jaikumar Ganesh <jaikumar@google.com> | 2009-06-19 12:06:48 -0700 |
| commit | 238bfa9efdcf5b4b7fae8c65c528ea01c4499b8a (patch) | |
| tree | 20c68a305ebdc3a46e9a7b1a4c77b5ca4503f7c2 /telephony | |
| parent | ef29379c28596dfa02702fad46bbe2f599e2e073 (diff) | |
| download | frameworks_base-238bfa9efdcf5b4b7fae8c65c528ea01c4499b8a.zip frameworks_base-238bfa9efdcf5b4b7fae8c65c528ea01c4499b8a.tar.gz frameworks_base-238bfa9efdcf5b4b7fae8c65c528ea01c4499b8a.tar.bz2 | |
Set AuthType to 0 if username is not specified.
If username is not specified, set authType to No PAP / No CHAP
so that the code is backward compatible.
Diffstat (limited to 'telephony')
| -rw-r--r-- | telephony/java/com/android/internal/telephony/RIL.java | 6 |
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); |
