summaryrefslogtreecommitdiffstats
path: root/include/telephony/ril.h
diff options
context:
space:
mode:
authorHui Wang <huiwang@motorola.com>2014-08-09 09:42:42 -0500
committerAmit Mahajan <amitmahajan@google.com>2014-08-11 10:28:45 -0700
commit6be060de61b99ed29ad67ebfa19271bbe0a475fe (patch)
treea9ca9e40c57e386e524f6f48a3cccdec8daade14 /include/telephony/ril.h
parent858ab4ee350262e4097c9e8c4ced5808bae71f4d (diff)
downloadandroid_hardware_ril-6be060de61b99ed29ad67ebfa19271bbe0a475fe.tar.gz
android_hardware_ril-6be060de61b99ed29ad67ebfa19271bbe0a475fe.tar.bz2
android_hardware_ril-6be060de61b99ed29ad67ebfa19271bbe0a475fe.zip
add apn setting parameters, and set apn parameters to bp
Change-Id: I779b28996fafcacdefb63072b7dcc6bd90a532be
Diffstat (limited to 'include/telephony/ril.h')
-rw-r--r--include/telephony/ril.h50
1 files changed, 49 insertions, 1 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h
index c78526d..1518d81 100644
--- a/include/telephony/ril.h
+++ b/include/telephony/ril.h
@@ -1165,6 +1165,40 @@ typedef struct {
RIL_DcPowerStates powerState; // Current power state
} RIL_DcRtInfo;
+/**
+ * Data profile to modem
+ */
+typedef struct {
+ /* id of the data profile */
+ int profileId;
+ /* the APN to connect to */
+ char* apn;
+ /** one of the PDP_type values in TS 27.007 section 10.1.1.
+ * For example, "IP", "IPV6", "IPV4V6", or "PPP".
+ */
+ char* protocol;
+ /** authentication protocol used for this PDP context
+ * (None: 0, PAP: 1, CHAP: 2, PAP&CHAP: 3)
+ */
+ int authType;
+ /* the username for APN, or NULL */
+ char* user;
+ /* the password for APN, or NULL */
+ char* password;
+ /* the profile type, TYPE_COMMON-0, TYPE_3GPP-1, TYPE_3GPP2-2 */
+ int type;
+ /* the period in seconds to limit the maximum connections */
+ int maxConnsTime;
+ /* the maximum connections during maxConnsTime */
+ int maxConns;
+ /** the required wait time in seconds after a successful UE initiated
+ * disconnect of a given PDN connection before the device can send
+ * a new PDN connection request for that given PDN
+ */
+ int waitTime;
+ /* true to enable the profile, 0 to disable, 1 to enable */
+ int enabled;
+} RIL_DataProfileInfo;
/**
* RIL_REQUEST_GET_SIM_STATUS
@@ -4020,7 +4054,21 @@ typedef struct {
*/
#define RIL_REQUEST_SET_DC_RT_INFO_RATE 127
-
+/**
+ * RIL_REQUEST_SET_DATA_PROFILE
+ *
+ * Set data profile in modem
+ * "data" is an const RIL_DataProfileInfo **
+ * "datalen" is count * sizeof(const RIL_DataProfileInfo *)
+ * "response" is NULL
+ *
+ * Valid errors:
+ * SUCCESS
+ * RADIO_NOT_AVAILABLE (radio resetting)
+ * GENERIC_FAILURE
+ * SUBSCRIPTION_NOT_AVAILABLE
+ */
+#define RIL_REQUEST_SET_DATA_PROFILE 128
/***********************************************************************/