summaryrefslogtreecommitdiffstats
path: root/include/telephony/ril.h
diff options
context:
space:
mode:
authorNaveen Kalla <nkalla@codeaurora.org>2014-07-31 16:48:31 -0700
committerWink Saville <wink@google.com>2014-08-19 08:19:47 -0700
commita65a16a2e81b11762fd9e4233e1a212effcfee82 (patch)
tree2193567b4291928f6bf16db47487414ac9c64f56 /include/telephony/ril.h
parent6e5a42e6948b434815d12663eeb792600531fe08 (diff)
downloadandroid_hardware_ril-a65a16a2e81b11762fd9e4233e1a212effcfee82.tar.gz
android_hardware_ril-a65a16a2e81b11762fd9e4233e1a212effcfee82.tar.bz2
android_hardware_ril-a65a16a2e81b11762fd9e4233e1a212effcfee82.zip
Add RIL_REQUEST_SHUTDOWN to notify RIL that device is shutting down
When device is in airplane mode, SIM card and modem may be powered on. RIL can use RIL_REQUEST_SHUTDOWN to shutdown the modem and SIM card gracefully. Bug: 9773278 Change-Id: I6afa9e810cefc7855f7ae42e51f39cc51fa2aa6e
Diffstat (limited to 'include/telephony/ril.h')
-rw-r--r--include/telephony/ril.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h
index 1518d81..9f6163f 100644
--- a/include/telephony/ril.h
+++ b/include/telephony/ril.h
@@ -4069,6 +4069,24 @@ typedef struct {
* SUBSCRIPTION_NOT_AVAILABLE
*/
#define RIL_REQUEST_SET_DATA_PROFILE 128
+
+/**
+ * RIL_REQUEST_SHUTDOWN
+ *
+ * Device is shutting down. All further commands are ignored
+ * and RADIO_NOT_AVAILABLE must be returned.
+ *
+ * "data" is null
+ * "response" is NULL
+ *
+ * Valid errors:
+ * SUCCESS
+ * RADIO_NOT_AVAILABLE
+ * GENERIC_FAILURE
+ */
+#define RIL_REQUEST_SHUTDOWN 129
+
+
/***********************************************************************/