summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorw19976 <w19976@motorola.com>2014-08-05 15:18:11 -0700
committerRobert Greenwalt <rgreenwalt@google.com>2014-08-14 20:34:13 -0700
commit15afd8115869bf22534a1f26fe6e389c9e5ef413 (patch)
tree66f258f9725710a26b726de2eee46ebd4d28d1b7 /telephony
parent1de02ee3eab1a8ef326557b76e13c0901b9e9164 (diff)
downloadframeworks_base-15afd8115869bf22534a1f26fe6e389c9e5ef413.zip
frameworks_base-15afd8115869bf22534a1f26fe6e389c9e5ef413.tar.gz
frameworks_base-15afd8115869bf22534a1f26fe6e389c9e5ef413.tar.bz2
Configure MTU based on network MTU parameter
Add logic to obtain the mtu from the network PCO parameter and set it to kernel when the mobile data connection is established. When there is no PCO mtu configured from the network, the mtu size defined in the corresponding APN will be used. In case no mtu size is defined for an APN used for data connection, the MCC/MNC based MTU defined in the framework overaly will be applied. bug:17046179 Change-Id: I6465d4b8f2076aaa380ae3617fb3f24adbe136d4
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/com/android/internal/telephony/PhoneConstants.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/PhoneConstants.java b/telephony/java/com/android/internal/telephony/PhoneConstants.java
index cf87bec..b4b1ea5 100644
--- a/telephony/java/com/android/internal/telephony/PhoneConstants.java
+++ b/telephony/java/com/android/internal/telephony/PhoneConstants.java
@@ -187,4 +187,7 @@ public class PhoneConstants {
REASON_RADIO_UNAVAILABLE,
REASON_SIM_REFRESH_RESET
};
+
+ // Initial MTU value.
+ public static final int UNSET_MTU = 0;
}