From 410b7562d0c7e50d3d0d7907aae890a8ded45f6b Mon Sep 17 00:00:00 2001 From: Wileen Chiu Date: Mon, 23 Nov 2015 14:25:22 -0800 Subject: 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 --- include/telephony/ril.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'include') 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. -- cgit v1.2.3