summaryrefslogtreecommitdiffstats
path: root/include/telephony/ril.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/telephony/ril.h')
-rw-r--r--include/telephony/ril.h30
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