From aacb69b826718c61cd3bf07f8d0ee2f734582b47 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 Change-Id: I9679178e2a6f0decd48f30e358685106b91163b8 CRs-Fixed: 948787 --- include/telephony/ril.h | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'include/telephony/ril.h') diff --git a/include/telephony/ril.h b/include/telephony/ril.h index b84cf7b..7ad0fbc 100644 --- a/include/telephony/ril.h +++ b/include/telephony/ril.h @@ -1492,6 +1492,12 @@ typedef struct { uint32_t rx_mode_time_ms; } RIL_ActivityStatsInfo; +typedef struct { + uint8_t p2; /* P2 parameter */ + char * aidPtr; /* AID value, See ETSI 102.221 and 101.220*/ + +} RIL_CafOpenChannelParams; + /** * RIL_REQUEST_GET_SIM_STATUS * @@ -4538,8 +4544,30 @@ typedef struct { */ #define RIL_REQUEST_SIM_GET_ATR 136 -/***********************************************************************/ +/** + * RIL_REQUEST_CAF_SIM_OPEN_CHANNEL_WITH_P2 + * + * Open a new logical channel and select the given application. This command + * reflects TS 27.007 "open logical channel" operation (+CCHO). This request + * also specifies the P2 parameter. + * + * "data" is a const RIL_CafOpenChannelParam * + * + * "response" is int * + * ((int *)data)[0] contains the session id of the logical channel. + * ((int *)data)[1] onwards may optionally contain the select response for the + * open channel command with one byte per integer. + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * GENERIC_FAILURE + * MISSING_RESOURCE + * NO_SUCH_ELEMENT + */ +#define RIL_REQUEST_CAF_SIM_OPEN_CHANNEL_WITH_P2 137 +/***********************************************************************/ #define RIL_UNSOL_RESPONSE_BASE 1000 -- cgit v1.2.3