summaryrefslogtreecommitdiffstats
path: root/include/telephony/ril.h
diff options
context:
space:
mode:
authorSukanya Rajkhowa <srajkh@codeaurora.org>2014-06-02 14:03:44 -0700
committerRobert Greenwalt <rgreenwalt@google.com>2014-12-03 21:55:00 -0800
commitb44dda3ea5bbbadb910479019f967b52cf9d69c7 (patch)
tree0da3e051a504fa11284ba3556e80af7ea633b034 /include/telephony/ril.h
parent6bfaf64c427b4d48a4fb1931eb8b5c0f79ce20f1 (diff)
downloadandroid_hardware_ril-b44dda3ea5bbbadb910479019f967b52cf9d69c7.tar.gz
android_hardware_ril-b44dda3ea5bbbadb910479019f967b52cf9d69c7.tar.bz2
android_hardware_ril-b44dda3ea5bbbadb910479019f967b52cf9d69c7.zip
Modify RIL_Data_Call_Response to include MTU
Include MTU as part of RIL Data Call Response so that the framework uses the dynamic MTU value provided by network and updates LinkProperties accordingly. Upping RIL version to 11. bug:18391670 Change-Id: I8a85d7f58c99d73278646cdcb2aa466b85ae9a81
Diffstat (limited to 'include/telephony/ril.h')
-rw-r--r--include/telephony/ril.h42
1 files changed, 39 insertions, 3 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h
index 530449e..5280968 100644
--- a/include/telephony/ril.h
+++ b/include/telephony/ril.h
@@ -46,7 +46,7 @@ extern "C" {
#define SIM_COUNT 1
#endif
-#define RIL_VERSION 10 /* Current version */
+#define RIL_VERSION 11 /* Current version */
#define RIL_VERSION_MIN 6 /* Minimum RIL_VERSION supported */
#define CDMA_ALPHA_INFO_BUFFER_LENGTH 64
@@ -365,7 +365,43 @@ typedef struct {
to point connections. */
char * pcscf; /* the Proxy Call State Control Function address
via PCO(Protocol Configuration Option) for IMS client. */
-} RIL_Data_Call_Response_v9; // FIXME: Change to v10
+} RIL_Data_Call_Response_v9;
+
+typedef struct {
+ int status; /* A RIL_DataCallFailCause, 0 which is PDP_FAIL_NONE if no error */
+ int suggestedRetryTime; /* If status != 0, this fields indicates the suggested retry
+ back-off timer value RIL wants to override the one
+ pre-configured in FW.
+ The unit is miliseconds.
+ The value < 0 means no value is suggested.
+ The value 0 means retry should be done ASAP.
+ The value of INT_MAX(0x7fffffff) means no retry. */
+ int cid; /* Context ID, uniquely identifies this call */
+ int active; /* 0=inactive, 1=active/physical link down, 2=active/physical link up */
+ char * type; /* One of the PDP_type values in TS 27.007 section 10.1.1.
+ For example, "IP", "IPV6", "IPV4V6", or "PPP". If status is
+ PDP_FAIL_ONLY_SINGLE_BEARER_ALLOWED this is the type supported
+ such as "IP" or "IPV6" */
+ char * ifname; /* The network interface name */
+ char * addresses; /* A space-delimited list of addresses with optional "/" prefix length,
+ e.g., "192.0.1.3" or "192.0.1.11/16 2001:db8::1/64".
+ May not be empty, typically 1 IPv4 or 1 IPv6 or
+ one of each. If the prefix length is absent the addresses
+ are assumed to be point to point with IPv4 having a prefix
+ length of 32 and IPv6 128. */
+ char * dnses; /* A space-delimited list of DNS server addresses,
+ e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1".
+ May be empty. */
+ char * gateways; /* A space-delimited list of default gateway addresses,
+ e.g., "192.0.1.3" or "192.0.1.11 2001:db8::1".
+ May be empty in which case the addresses represent point
+ to point connections. */
+ char * pcscf; /* the Proxy Call State Control Function address
+ via PCO(Protocol Configuration Option) for IMS client. */
+ int mtu; /* MTU received from network
+ Value <= 0 means network has either not sent a value or
+ sent an invalid value */
+} RIL_Data_Call_Response_v11;
typedef enum {
RADIO_TECH_3GPP = 1, /* 3GPP Technologies - GSM, WCDMA */
@@ -2010,7 +2046,7 @@ typedef struct {
* For example, "IP", "IPV6", "IPV4V6", or "PPP".
* ((const char **)data)[7] Optional connection property parameters, format to be defined.
*
- * "response" is a RIL_Data_Call_Response_v6
+ * "response" is a RIL_Data_Call_Response_v11
*
* FIXME may need way to configure QoS settings
*