diff options
author | Wileen Chiu <wileenc@codeaurora.org> | 2015-11-23 14:25:22 -0800 |
---|---|---|
committer | Naina Nalluri <nnalluri@codeaurora.org> | 2016-01-07 14:40:02 -0800 |
commit | aacb69b826718c61cd3bf07f8d0ee2f734582b47 (patch) | |
tree | 1403b75eb4688c0aa70add209ec2dfcd15c4679a /include/telephony/ril.h | |
parent | 6f3304a8aecf2e7543e83705797f3fbbc7a2f99b (diff) | |
download | android_hardware_ril-aacb69b826718c61cd3bf07f8d0ee2f734582b47.tar.gz android_hardware_ril-aacb69b826718c61cd3bf07f8d0ee2f734582b47.tar.bz2 android_hardware_ril-aacb69b826718c61cd3bf07f8d0ee2f734582b47.zip |
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
Diffstat (limited to 'include/telephony/ril.h')
-rw-r--r-- | include/telephony/ril.h | 30 |
1 files changed, 29 insertions, 1 deletions
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 |