summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWileen Chiu <wileenc@codeaurora.org>2015-11-23 14:25:22 -0800
committerWileen Chiu <wileenc@codeaurora.org>2017-04-11 10:54:41 -0700
commit410b7562d0c7e50d3d0d7907aae890a8ded45f6b (patch)
tree22c887c7626496494f31dd50263256a8b2b6ff7f /include
parent74d2a33ad5f82f1ab959074aeb66da124af51ec5 (diff)
downloadandroid_hardware_ril-410b7562d0c7e50d3d0d7907aae890a8ded45f6b.tar.gz
android_hardware_ril-410b7562d0c7e50d3d0d7907aae890a8ded45f6b.tar.bz2
android_hardware_ril-410b7562d0c7e50d3d0d7907aae890a8ded45f6b.zip
Add p2 option in openLogicalChannel
- Adding support for P2 parameter - Needed to support OMAPI 3.0 defined by SIM Alliance Bug: 27360148 Change-Id: I9679178e2a6f0decd48f30e358685106b91163b8
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 33f8df0..5bf5e17 100644
--- a/include/telephony/ril.h
+++ b/include/telephony/ril.h
@@ -82,6 +82,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
@@ -2008,6 +2009,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
*
@@ -4847,9 +4854,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.