summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAmit Mahajan <amitmahajan@google.com>2017-04-11 21:50:32 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-04-11 21:50:32 +0000
commit6e22c5d1a2582e40d18a4d1c93e0759185579872 (patch)
tree15b79c22b2ccfdaa1176cd841a4010abc655a3c2 /include
parent61f508c5aef67c7a366d841c4b9e958d568f35ea (diff)
parentaed35999a1b145ae079e6496f7547f5d1790d2ff (diff)
downloadandroid_hardware_ril-6e22c5d1a2582e40d18a4d1c93e0759185579872.tar.gz
android_hardware_ril-6e22c5d1a2582e40d18a4d1c93e0759185579872.tar.bz2
android_hardware_ril-6e22c5d1a2582e40d18a4d1c93e0759185579872.zip
Merge "Add p2 option in openLogicalChannel" am: f3f567d540 am: 2792b81933
am: aed35999a1 Change-Id: I2e295ce0860ed711e605124d9d6c827f5a7db23e
Diffstat (limited to 'include')
-rw-r--r--include/telephony/ril.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h
index 66f6494..9faacc4 100644
--- a/include/telephony/ril.h
+++ b/include/telephony/ril.h
@@ -83,6 +83,7 @@ extern "C" {
* RIL_VoiceRegistrationStateResponse same is
* used in RIL_REQUEST_DATA_REGISTRATION_STATE and
* RIL_REQUEST_VOICE_REGISTRATION_STATE respectively.
+ * New data structure RIL_OpenChannelParams.
*/
#define RIL_VERSION 12
#define LAST_IMPRECISE_RIL_VERSION 12 // Better self-documented name
@@ -2019,6 +2020,12 @@ typedef enum {
// bit is set or not.
} RIL_UnsolicitedResponseFilter;
+typedef struct {
+ char * aidPtr; /* AID value, See ETSI 102.221 and 101.220*/
+ int p2; /* P2 parameter (described in ISO 7816-4)
+ P2Constants:NO_P2 if to be ignored */
+} RIL_OpenChannelParams;
+
/**
* RIL_REQUEST_GET_SIM_STATUS
*
@@ -4858,9 +4865,10 @@ typedef enum {
* RIL_REQUEST_SIM_OPEN_CHANNEL
*
* Open a new logical channel and select the given application. This command
- * reflects TS 27.007 "open logical channel" operation (+CCHO).
+ * reflects TS 27.007 "open logical channel" operation (+CCHO). This request
+ * also specifies the P2 parameter (described in ISO 7816-4).
*
- * "data" is const char * and set to AID value, See ETSI 102.221 and 101.220.
+ * "data" is a const RIL_OpenChannelParam *
*
* "response" is int *
* ((int *)data)[0] contains the session id of the logical channel.