From 0f5fff1b03795603eedffaded7b71254ee0f4322 Mon Sep 17 00:00:00 2001 From: Danny Wood Date: Thu, 31 Oct 2019 18:16:32 +0000 Subject: [PATCH] universal7580: update ril headers to latest aosp * based on HEAD https://github.com/LineageOS/android_hardware_ril/commit/e25f9a0b29af67a45325308b2039d4c8336691ba Change-Id: I183a5f88d4a5b6a7167ec40d45b4252c45bb6388 --- ril/include/telephony/ril.h | 928 ++++++++++++++++++++++++++++++++++-- 1 file changed, 882 insertions(+), 46 deletions(-) diff --git a/ril/include/telephony/ril.h b/ril/include/telephony/ril.h index 8aae1ab..fd62a26 100644 --- a/ril/include/telephony/ril.h +++ b/ril/include/telephony/ril.h @@ -77,7 +77,9 @@ extern "C" { * RIL_UNSOL_MODEM_RESTART, * RIL_REQUEST_SEND_DEVICE_STATE, * RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER, - * RIL_REQUEST_SET_SIM_CARD_POWER + * RIL_REQUEST_SET_SIM_CARD_POWER, + * RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION, + * RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION * The new parameters for RIL_REQUEST_SETUP_DATA_CALL, * Updated data structures: RIL_DataProfileInfo_v15, RIL_InitialAttachApn_v15 * New data structure RIL_DataRegistrationStateResponse, @@ -85,6 +87,9 @@ extern "C" { * used in RIL_REQUEST_DATA_REGISTRATION_STATE and * RIL_REQUEST_VOICE_REGISTRATION_STATE respectively. * New data structure RIL_OpenChannelParams. + * RIL_REQUEST_START_NETWORK_SCAN + * RIL_REQUEST_STOP_NETWORK_SCAN + * RIL_UNSOL_NETWORK_SCAN_RESULT */ #define RIL_VERSION 12 #define LAST_IMPRECISE_RIL_VERSION 12 // Better self-documented name @@ -99,8 +104,10 @@ extern "C" { #define MAX_DEBUG_SOCKET_NAME_LENGTH 12 #define MAX_QEMU_PIPE_NAME_LENGTH 11 #define MAX_UUID_LENGTH 64 +#define MAX_BANDS 8 +#define MAX_CHANNELS 32 +#define MAX_RADIO_ACCESS_NETWORKS 8 -struct ril_event; typedef void * RIL_Token; typedef enum { @@ -230,17 +237,6 @@ typedef enum { typedef enum { RADIO_STATE_OFF = 0, /* Radio explictly powered off (eg CFUN=0) */ RADIO_STATE_UNAVAILABLE = 1, /* Radio unavailable (eg, resetting or not booted) */ - /* States 2-9 below are deprecated. Just leaving them here for backward compatibility. */ - RADIO_STATE_SIM_NOT_READY = 2, /* Radio is on, but the SIM interface is not ready */ - RADIO_STATE_SIM_LOCKED_OR_ABSENT = 3, /* SIM PIN locked, PUK required, network - personalization locked, or SIM absent */ - RADIO_STATE_SIM_READY = 4, /* Radio is on and SIM interface is available */ - RADIO_STATE_RUIM_NOT_READY = 5, /* Radio is on, but the RUIM interface is not ready */ - RADIO_STATE_RUIM_READY = 6, /* Radio is on and the RUIM interface is available */ - RADIO_STATE_RUIM_LOCKED_OR_ABSENT = 7, /* RUIM PIN locked, PUK required, network - personalization locked, or RUIM absent */ - RADIO_STATE_NV_NOT_READY = 8, /* Radio is on, but the NV interface is not available */ - RADIO_STATE_NV_READY = 9, /* Radio is on and the NV interface is available */ RADIO_STATE_ON = 10 /* Radio is on */ } RIL_RadioState; @@ -552,8 +548,6 @@ typedef struct { sent an invalid value */ } RIL_Data_Call_Response_v11; -#define RIL_Data_Call_Response_Type RIL_Data_Call_Response_v9 - typedef enum { RADIO_TECH_3GPP = 1, /* 3GPP Technologies - GSM, WCDMA */ RADIO_TECH_3GPP2 = 2 /* 3GPP2 Technologies - CDMA */ @@ -759,6 +753,21 @@ typedef struct { */ } RIL_CarrierRestrictions; +typedef struct { + char * mcc; /* MCC of the Carrier. */ + char * mnc ; /* MNC of the Carrier. */ + uint8_t * carrierKey; /* Public Key from the Carrier used to encrypt the + * IMSI/IMPI. + */ + int32_t carrierKeyLength; /* Length of the Public Key. */ + char * keyIdentifier; /* The keyIdentifier Attribute value pair that helps + * a server locate the private key to decrypt the + * permanent identity. + */ + int64_t expirationTime; /* Date-Time (in UTC) when the key will expire. */ + +} RIL_CarrierInfoForImsiEncryption; + /* See RIL_REQUEST_LAST_CALL_FAIL_CAUSE */ typedef enum { CALL_FAIL_UNOBTAINABLE_NUMBER = 1, @@ -1358,23 +1367,29 @@ typedef struct { typedef struct { int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ - int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999; + the most significant nibble encodes the number of digits - {2, 3, 0 (unset)}; + INT_MAX if unknown */ int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */ int cid; /* 16-bit GSM Cell Identity described in TS 27.007, 0..65535, INT_MAX if unknown */ } RIL_CellIdentityGsm; typedef struct { int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ - int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999; + the most significant nibble encodes the number of digits - {2, 3, 0 (unset)}; + INT_MAX if unknown */ int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */ int cid; /* 16-bit GSM Cell Identity described in TS 27.007, 0..65535, INT_MAX if unknown */ - int arfcn; /* 16-bit GSM Absolute RF channel number, INT_MAX if unknown */ - uint8_t bsic;/* 6-bit Base Station Identity Code, 0xFF if unknown */ + int arfcn; /* 16-bit GSM Absolute RF channel number; this value must be reported */ + uint8_t bsic; /* 6-bit Base Station Identity Code; 0xFF if unknown */ } RIL_CellIdentityGsm_v12; typedef struct { int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ - int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999; + the most significant nibble encodes the number of digits - {2, 3, 0 (unset)}; + INT_MAX if unknown */ int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */ int cid; /* 28-bit UMTS Cell Identity described in TS 25.331, 0..268435455, INT_MAX if unknown */ int psc; /* 9-bit UMTS Primary Scrambling Code described in TS 25.331, 0..511, INT_MAX if unknown */ @@ -1382,11 +1397,13 @@ typedef struct { typedef struct { int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ - int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999; + the most significant nibble encodes the number of digits - {2, 3, 0 (unset)}; + INT_MAX if unknown */ int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */ int cid; /* 28-bit UMTS Cell Identity described in TS 25.331, 0..268435455, INT_MAX if unknown */ - int psc; /* 9-bit UMTS Primary Scrambling Code described in TS 25.331, 0..511, INT_MAX if unknown */ - int uarfcn; /* 16-bit UMTS Absolute RF Channel Number, INT_MAX if unknown */ + int psc; /* 9-bit UMTS Primary Scrambling Code described in TS 25.331, 0..511; this value must be reported */ + int uarfcn; /* 16-bit UMTS Absolute RF Channel Number; this value must be reported */ } RIL_CellIdentityWcdma_v12; typedef struct { @@ -1406,7 +1423,9 @@ typedef struct { typedef struct { int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ - int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999; + the most significant nibble encodes the number of digits - {2, 3, 0 (unset)}; + INT_MAX if unknown */ int ci; /* 28-bit Cell Identity described in TS ???, INT_MAX if unknown */ int pci; /* physical cell id 0..503, INT_MAX if unknown */ int tac; /* 16-bit tracking area code, INT_MAX if unknown */ @@ -1414,16 +1433,20 @@ typedef struct { typedef struct { int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ - int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999; + the most significant nibble encodes the number of digits - {2, 3, 0 (unset)}; + INT_MAX if unknown */ int ci; /* 28-bit Cell Identity described in TS ???, INT_MAX if unknown */ - int pci; /* physical cell id 0..503, INT_MAX if unknown */ + int pci; /* physical cell id 0..503; this value must be reported */ int tac; /* 16-bit tracking area code, INT_MAX if unknown */ - int earfcn; /* 18-bit LTE Absolute RC Channel Number, INT_MAX if unknown */ + int earfcn; /* 18-bit LTE Absolute RF Channel Number; this value must be reported */ } RIL_CellIdentityLte_v12; typedef struct { int mcc; /* 3-digit Mobile Country Code, 0..999, INT_MAX if unknown */ - int mnc; /* 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown */ + int mnc; /* 2 or 3-digit Mobile Network Code, 0..999; + the most significant nibble encodes the number of digits - {2, 3, 0 (unset)}; + INT_MAX if unknown */ int lac; /* 16-bit Location Area Code, 0..65535, INT_MAX if unknown */ int cid; /* 28-bit UMTS Cell Identity described in TS 25.331, 0..268435455, INT_MAX if unknown */ int cpid; /* 8-bit Cell Parameters ID described in TS 25.331, 0..127, INT_MAX if unknown */ @@ -2048,6 +2071,142 @@ typedef struct { P2Constants:NO_P2 if to be ignored */ } RIL_OpenChannelParams; +typedef enum { + RIL_ONE_SHOT = 0x01, // Performs the scan only once + RIL_PERIODIC = 0x02 // Performs the scan periodically until cancelled +} RIL_ScanType; + +typedef enum { + GERAN = 0x01, // GSM EDGE Radio Access Network + UTRAN = 0x02, // Universal Terrestrial Radio Access Network + EUTRAN = 0x03, // Evolved Universal Terrestrial Radio Access Network +} RIL_RadioAccessNetworks; + +typedef enum { + GERAN_BAND_T380 = 1, + GERAN_BAND_T410 = 2, + GERAN_BAND_450 = 3, + GERAN_BAND_480 = 4, + GERAN_BAND_710 = 5, + GERAN_BAND_750 = 6, + GERAN_BAND_T810 = 7, + GERAN_BAND_850 = 8, + GERAN_BAND_P900 = 9, + GERAN_BAND_E900 = 10, + GERAN_BAND_R900 = 11, + GERAN_BAND_DCS1800 = 12, + GERAN_BAND_PCS1900 = 13, + GERAN_BAND_ER900 = 14, +} RIL_GeranBands; + +typedef enum { + UTRAN_BAND_1 = 1, + UTRAN_BAND_2 = 2, + UTRAN_BAND_3 = 3, + UTRAN_BAND_4 = 4, + UTRAN_BAND_5 = 5, + UTRAN_BAND_6 = 6, + UTRAN_BAND_7 = 7, + UTRAN_BAND_8 = 8, + UTRAN_BAND_9 = 9, + UTRAN_BAND_10 = 10, + UTRAN_BAND_11 = 11, + UTRAN_BAND_12 = 12, + UTRAN_BAND_13 = 13, + UTRAN_BAND_14 = 14, + UTRAN_BAND_19 = 19, + UTRAN_BAND_20 = 20, + UTRAN_BAND_21 = 21, + UTRAN_BAND_22 = 22, + UTRAN_BAND_25 = 25, + UTRAN_BAND_26 = 26, +} RIL_UtranBands; + +typedef enum { + EUTRAN_BAND_1 = 1, + EUTRAN_BAND_2 = 2, + EUTRAN_BAND_3 = 3, + EUTRAN_BAND_4 = 4, + EUTRAN_BAND_5 = 5, + EUTRAN_BAND_6 = 6, + EUTRAN_BAND_7 = 7, + EUTRAN_BAND_8 = 8, + EUTRAN_BAND_9 = 9, + EUTRAN_BAND_10 = 10, + EUTRAN_BAND_11 = 11, + EUTRAN_BAND_12 = 12, + EUTRAN_BAND_13 = 13, + EUTRAN_BAND_14 = 14, + EUTRAN_BAND_17 = 17, + EUTRAN_BAND_18 = 18, + EUTRAN_BAND_19 = 19, + EUTRAN_BAND_20 = 20, + EUTRAN_BAND_21 = 21, + EUTRAN_BAND_22 = 22, + EUTRAN_BAND_23 = 23, + EUTRAN_BAND_24 = 24, + EUTRAN_BAND_25 = 25, + EUTRAN_BAND_26 = 26, + EUTRAN_BAND_27 = 27, + EUTRAN_BAND_28 = 28, + EUTRAN_BAND_30 = 30, + EUTRAN_BAND_31 = 31, + EUTRAN_BAND_33 = 33, + EUTRAN_BAND_34 = 34, + EUTRAN_BAND_35 = 35, + EUTRAN_BAND_36 = 36, + EUTRAN_BAND_37 = 37, + EUTRAN_BAND_38 = 38, + EUTRAN_BAND_39 = 39, + EUTRAN_BAND_40 = 40, + EUTRAN_BAND_41 = 41, + EUTRAN_BAND_42 = 42, + EUTRAN_BAND_43 = 43, + EUTRAN_BAND_44 = 44, + EUTRAN_BAND_45 = 45, + EUTRAN_BAND_46 = 46, + EUTRAN_BAND_47 = 47, + EUTRAN_BAND_48 = 48, + EUTRAN_BAND_65 = 65, + EUTRAN_BAND_66 = 66, + EUTRAN_BAND_68 = 68, + EUTRAN_BAND_70 = 70, +} RIL_EutranBands; + +typedef struct { + RIL_RadioAccessNetworks radio_access_network; // The type of network to scan. + uint32_t bands_length; // Length of bands + union { + RIL_GeranBands geran_bands[MAX_BANDS]; + RIL_UtranBands utran_bands[MAX_BANDS]; + RIL_EutranBands eutran_bands[MAX_BANDS]; + } bands; + uint32_t channels_length; // Length of channels + uint32_t channels[MAX_CHANNELS]; // Frequency channels to scan +} RIL_RadioAccessSpecifier; + +typedef struct { + RIL_ScanType type; // Type of the scan + int32_t interval; // Time interval in seconds + // between periodic scans, only + // valid when type=RIL_PERIODIC + uint32_t specifiers_length; // Length of specifiers + RIL_RadioAccessSpecifier specifiers[MAX_RADIO_ACCESS_NETWORKS]; // Radio access networks + // with bands/channels. +} RIL_NetworkScanRequest; + +typedef enum { + PARTIAL = 0x01, // The result contains a part of the scan results + COMPLETE = 0x02, // The result contains the last part of the scan results +} RIL_ScanStatus; + +typedef struct { + RIL_ScanStatus status; // The status of the scan + uint32_t network_infos_length; // Total length of RIL_CellInfo + RIL_CellInfo_v12* network_infos; // List of network information + RIL_Errno error; +} RIL_NetworkScanResult; + /** * RIL_REQUEST_GET_SIM_STATUS * @@ -2058,7 +2217,14 @@ typedef struct { * "response" is const RIL_CardStatus_v6 * * * Valid errors: - * Must never fail + * + * SUCCESS + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_GET_SIM_STATUS 1 @@ -2079,6 +2245,13 @@ typedef struct { * SUCCESS * RADIO_NOT_AVAILABLE (radio resetting) * PASSWORD_INCORRECT + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_ENTER_SIM_PIN 2 @@ -2102,6 +2275,13 @@ typedef struct { * RADIO_NOT_AVAILABLE (radio resetting) * PASSWORD_INCORRECT * (PUK is invalid) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_ENTER_SIM_PUK 3 @@ -2124,6 +2304,13 @@ typedef struct { * SUCCESS * RADIO_NOT_AVAILABLE (radio resetting) * PASSWORD_INCORRECT + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_ENTER_SIM_PIN2 4 @@ -2147,6 +2334,13 @@ typedef struct { * RADIO_NOT_AVAILABLE (radio resetting) * PASSWORD_INCORRECT * (PUK2 is invalid) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_ENTER_SIM_PUK2 5 @@ -2170,7 +2364,13 @@ typedef struct { * RADIO_NOT_AVAILABLE (radio resetting) * PASSWORD_INCORRECT * (old PIN is invalid) - * + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_CHANGE_SIM_PIN 6 @@ -2195,6 +2395,13 @@ typedef struct { * RADIO_NOT_AVAILABLE (radio resetting) * PASSWORD_INCORRECT * (old PIN2 is invalid) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED * */ @@ -2216,7 +2423,13 @@ typedef struct { * SUCCESS * RADIO_NOT_AVAILABLE (radio resetting) * PASSWORD_INCORRECT + * SIM_ABSENT * (code is invalid) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_ENTER_NETWORK_DEPERSONALIZATION 8 @@ -2236,6 +2449,10 @@ typedef struct { * RADIO_NOT_AVAILABLE (radio resetting) * NO_MEMORY * (request will be made again in a few hundred msec) + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_GET_CURRENT_CALLS 9 @@ -2268,8 +2485,10 @@ typedef struct { * NO_NETWORK_FOUND * INVALID_CALL_ID * DEVICE_IN_USE - * MODE_NOT_SUPPORTED + * OPERATION_NOT_ALLOWED * ABORTED + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_DIAL 10 @@ -2287,6 +2506,12 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE (radio resetting) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_SIM_STATE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_GET_IMSI 11 @@ -2315,6 +2540,9 @@ typedef struct { * NO_MEMORY * INVALID_CALL_ID * INVALID_ARGUMENTS + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_HANGUP 12 @@ -2342,6 +2570,9 @@ typedef struct { * NO_RESOURCES * OPERATION_NOT_ALLOWED * INVALID_ARGUMENTS + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_HANGUP_WAITING_OR_BACKGROUND 13 @@ -2368,6 +2599,8 @@ typedef struct { * OPERATION_NOT_ALLOWED * INVALID_ARGUMENTS * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_HANGUP_FOREGROUND_RESUME_BACKGROUND 14 @@ -2403,6 +2636,9 @@ typedef struct { * INVALID_ARGUMENTS * INVALID_CALL_ID * OPERATION_NOT_ALLOWED + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE 15 @@ -2426,6 +2662,9 @@ typedef struct { * INVALID_CALL_ID * INVALID_ARGUMENTS * OPERATION_NOT_ALLOWED + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_CONFERENCE 16 @@ -2449,6 +2688,8 @@ typedef struct { * INVALID_CALL_ID * OPERATION_NOT_ALLOWED * INVALID_ARGUMENTS + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_UDUB 17 @@ -2498,6 +2739,10 @@ typedef struct { * SUCCESS * RADIO_NOT_AVAILABLE * NO_MEMORY + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * * See also: RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE */ @@ -2523,6 +2768,8 @@ typedef struct { * MODEM_ERR * NOT_PROVISIONED * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_SIGNAL_STRENGTH 19 @@ -2537,6 +2784,11 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_VOICE_REGISTRATION_STATE 20 @@ -2557,6 +2809,8 @@ typedef struct { * MODEM_ERR * NOT_PROVISIONED * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_DATA_REGISTRATION_STATE 21 @@ -2582,6 +2836,8 @@ typedef struct { * INTERNAL_ERR * SYSTEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_OPERATOR 22 @@ -2617,6 +2873,8 @@ typedef struct { * OPERATION_NOT_ALLOWED * INVALID_MODEM_STATE * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_RADIO_POWER 23 @@ -2644,6 +2902,10 @@ typedef struct { * MODEM_ERR * INTERNAL_ERR * INVALID_CALL_ID + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED * * See also: RIL_REQUEST_DTMF_STOP, RIL_REQUEST_DTMF_START * @@ -2683,7 +2945,13 @@ typedef struct { * INVALID_SMSC_ADDRESS * MODEM_ERR * NETWORK_ERR + * OPERATION_NOT_ALLOWED + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * MODE_NOT_SUPPORTED + * SIM_ABSENT * * FIXME how do we specify TP-Message-Reference if we need to resend? */ @@ -2725,7 +2993,13 @@ typedef struct { * NETWORK_ERR * ENCODING_ERR * INVALID_SMSC_ADDRESS + * OPERATION_NOT_ALLOWED + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * MODE_NOT_SUPPORTED + * SIM_ABSENT * */ #define RIL_REQUEST_SEND_SMS_EXPECT_MORE 26 @@ -2801,8 +3075,9 @@ typedef struct { * * Other errors could include: * RADIO_NOT_AVAILABLE, OP_NOT_ALLOWED_BEFORE_REG_TO_NW, - * OP_NOT_ALLOWED_DURING_VOICE_CALL and REQUEST_NOT_SUPPORTED, - * INVALID_ARGUMENTS + * OP_NOT_ALLOWED_DURING_VOICE_CALL, REQUEST_NOT_SUPPORTED, + * INVALID_ARGUMENTS, INTERNAL_ERR, NO_MEMORY, NO_RESOURCES, + * CANCELLED and SIM_ABSENT * * See also: RIL_REQUEST_DEACTIVATE_DATA_CALL */ @@ -2832,6 +3107,9 @@ typedef struct { * RADIO_NOT_AVAILABLE * SIM_PIN2 * SIM_PUK2 + * INVALID_SIM_STATE + * SIM_ERR + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SIM_IO 28 @@ -2870,6 +3148,9 @@ typedef struct { * ABORTED * SYSTEM_ERR * INVALID_STATE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * * See also: RIL_REQUEST_CANCEL_USSD, RIL_UNSOL_ON_USSD */ @@ -2893,6 +3174,9 @@ typedef struct { * INTERNAL_ERR * NO_MEMORY * INVALID_STATE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_CANCEL_USSD 30 @@ -2917,6 +3201,9 @@ typedef struct { * INTERNAL_ERR * FDN_CHECK_FAILURE * SYSTEM_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_GET_CLIR 31 @@ -2936,6 +3223,11 @@ typedef struct { * SS_MODIFIED_TO_SS * INVALID_ARGUMENTS * SYSTEM_ERR + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SET_CLIR 32 @@ -2968,6 +3260,9 @@ typedef struct { * INTERNAL_ERR * NO_MEMORY * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_QUERY_CALL_FORWARD_STATUS 33 @@ -2993,6 +3288,9 @@ typedef struct { * INTERNAL_ERR * INVALID_STATE * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SET_CALL_FORWARD 34 @@ -3027,6 +3325,9 @@ typedef struct { * NO_MEMORY * FDN_CHECK_FAILURE * INVALID_ARGUMENTS + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_QUERY_CALL_WAITING 35 @@ -3054,6 +3355,9 @@ typedef struct { * INTERNAL_ERR * INVALID_STATE * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SET_CALL_WAITING 36 @@ -3080,6 +3384,11 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SMS_ACKNOWLEDGE 37 @@ -3103,6 +3412,8 @@ typedef struct { * MODEM_ERR * NOT_PROVISIONED * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_GET_IMEI 38 @@ -3127,6 +3438,8 @@ typedef struct { * MODEM_ERR * NOT_PROVISIONED * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_GET_IMEISV 39 @@ -3153,6 +3466,9 @@ typedef struct { * MODEM_ERR * INTERNAL_ERR * INVALID_CALL_ID + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_ANSWER 40 @@ -3183,6 +3499,11 @@ typedef struct { * INVALID_STATE * INVALID_ARGUMENTS * REQUEST_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * SIM_ABSENT * * See also: RIL_REQUEST_SETUP_DATA_CALL */ @@ -3221,6 +3542,9 @@ typedef struct { * SYSTEM_ERR * MODEM_ERR * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_QUERY_FACILITY_LOCK 42 @@ -3258,6 +3582,9 @@ typedef struct { * MODEM_ERR * INVALID_STATE * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_SET_FACILITY_LOCK 43 @@ -3288,6 +3615,9 @@ typedef struct { * INTERNAL_ERR * SYSTEM_ERR * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_CHANGE_BARRING_PASSWORD 44 @@ -3313,6 +3643,8 @@ typedef struct { * INVALID_ARGUMENTS * MODEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * */ #define RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE 45 @@ -3339,6 +3671,8 @@ typedef struct { * INVALID_ARGUMENTS * MODEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * * Note: Returns ILLEGAL_SIM_OR_ME when the failure is permanent and * no retries needed, such as illegal SIM or ME. @@ -3369,6 +3703,8 @@ typedef struct { * INVALID_ARGUMENTS * MODEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * * Note: Returns ILLEGAL_SIM_OR_ME when the failure is permanent and * no retries needed, such as illegal SIM or ME. @@ -3407,6 +3743,8 @@ typedef struct { * REQUEST_NOT_SUPPORTED * CANCELLED * OPERATION_NOT_ALLOWED + * NO_RESOURCES + * CANCELLED * */ #define RIL_REQUEST_QUERY_AVAILABLE_NETWORKS 48 @@ -3434,6 +3772,9 @@ typedef struct { * MODEM_ERR * INTERNAL_ERR * INVALID_CALL_ID + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED * * See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_STOP */ @@ -3458,6 +3799,9 @@ typedef struct { * MODEM_ERR * INTERNAL_ERR * INVALID_CALL_ID + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED * * See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_START */ @@ -3482,6 +3826,8 @@ typedef struct { * MODEM_ERR * NOT_PROVISIONED * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * */ #define RIL_REQUEST_BASEBAND_VERSION 51 @@ -3517,6 +3863,8 @@ typedef struct { * INVALID_CALL_ID * INVALID_STATE * OPERATION_NOT_ALLOWED + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SEPARATE_CONNECTION 52 @@ -3540,6 +3888,10 @@ typedef struct { * INVALID_ARGUMENTS * NO_MEMORY * REQUEST_RATE_LIMITED + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SET_MUTE 53 @@ -3561,6 +3913,10 @@ typedef struct { * SS_MODIFIED_TO_SS * NO_MEMORY * REQUEST_RATE_LIMITED + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_GET_MUTE 54 @@ -3586,6 +3942,9 @@ typedef struct { * MODEM_ERR * INTERNAL_ERR * FDN_CHECK_FAILURE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_QUERY_CLIP 55 @@ -3613,6 +3972,11 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * * See also: RIL_REQUEST_LAST_CALL_FAIL_CAUSE * @@ -3635,6 +3999,12 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE (radio resetting) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * SIM_ABSENT * * See also: RIL_UNSOL_DATA_CALL_LIST_CHANGED */ @@ -3740,6 +4110,8 @@ typedef struct { * INTERNAL_ERR * SYSTEM_ERR * INVALID_ARGUMENTS + * NO_RESOURCES + * CANCELLED * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SCREEN_STATE 61 @@ -3768,6 +4140,9 @@ typedef struct { * SYSTEM_ERR * MODEM_ERR * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * * See also: RIL_UNSOL_SUPP_SVC_NOTIFICATION. */ @@ -3794,8 +4169,12 @@ typedef struct { * NO_MEMORY * NO_RESOURCES * INVALID_MODEM_STATE - * MODE_NOT_SUPPORTED + * OPERATION_NOT_ALLOWED * INVALID_SMSC_ADDRESS + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * SIM_ABSENT * */ #define RIL_REQUEST_WRITE_SMS_TO_SIM 63 @@ -3819,6 +4198,12 @@ typedef struct { * SYSTEM_ERR * MODEM_ERR * NO_SUCH_ENTRY + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * SIM_ABSENT * */ #define RIL_REQUEST_DELETE_SMS_ON_SIM 64 @@ -3843,6 +4228,8 @@ typedef struct { * INVALID_ARGUMENTS * MODEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * * See also: RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE */ @@ -3867,6 +4254,8 @@ typedef struct { * SYSTEM_ERR * MODEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * * See also: RIL_REQUEST_SET_BAND_MODE */ @@ -3887,6 +4276,11 @@ typedef struct { * Valid errors: * RIL_E_SUCCESS * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_STK_GET_PROFILE 67 @@ -3904,9 +4298,14 @@ typedef struct { * Valid errors: * RIL_E_SUCCESS * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) - */ -#define RIL_REQUEST_STK_SET_PROFILE 68 - + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + */ +#define RIL_REQUEST_STK_SET_PROFILE 68 + /** * RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND * @@ -3925,6 +4324,13 @@ typedef struct { * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) * SIM_BUSY * OPERATION_NOT_ALLOWED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_ARGUMENTS + * MODEM_ERR + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND 69 @@ -3943,6 +4349,12 @@ typedef struct { * RIL_E_SUCCESS * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) * RIL_E_OPERATION_NOT_ALLOWED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE 70 @@ -3964,6 +4376,11 @@ typedef struct { * RIL_E_SUCCESS * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) * RIL_E_OPERATION_NOT_ALLOWED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM 71 @@ -3988,6 +4405,9 @@ typedef struct { * INVALID_CALL_ID * INVALID_STATE * OPERATION_NOT_ALLOWED + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_EXPLICIT_CALL_TRANSFER 72 @@ -4012,6 +4432,8 @@ typedef struct { * INVALID_ARGUMENTS * MODEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE 73 @@ -4035,6 +4457,8 @@ typedef struct { * INVALID_ARGUMENTS * MODEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * * See also: RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE */ @@ -4057,6 +4481,8 @@ typedef struct { * MODEM_ERR * NO_NETWORK_FOUND * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_GET_NEIGHBORING_CELL_IDS 75 @@ -4085,6 +4511,8 @@ typedef struct { * INVALID_ARGUMENTS * MODEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * * See also: RIL_REQUEST_SCREEN_STATE, RIL_UNSOL_RESPONSE_NETWORK_STATE_CHANGED */ @@ -4106,6 +4534,11 @@ typedef struct { * RADIO_NOT_AVAILABLE * SIM_ABSENT * SUBSCRIPTION_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * * See also: RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE */ @@ -4133,6 +4566,8 @@ typedef struct { * MODEM_ERR * REQUEST_NOT_SUPPORTED * OPERATION_NOT_ALLOWED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_CDMA_SET_ROAMING_PREFERENCE 78 @@ -4159,6 +4594,8 @@ typedef struct { * INVALID_ARGUMENTS * MODEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_CDMA_QUERY_ROAMING_PREFERENCE 79 @@ -4181,11 +4618,14 @@ typedef struct { * INVALID_ARGUMENTS * MODEM_ERR * INTERNAL_ERR - * NO_MEMOR + * NO_MEMORY * INVALID_ARGUMENTS * MODEM_ERR * INTERNAL_ERR - * NO_MEMORYY + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SET_TTY_MODE 80 @@ -4211,6 +4651,9 @@ typedef struct { * INTERNAL_ERR * NO_MEMORY * INVALID_ARGUMENTS + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_QUERY_TTY_MODE 81 @@ -4235,6 +4678,9 @@ typedef struct { * INTERNAL_ERR * NO_MEMORY * INVALID_CALL_ID + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_CDMA_SET_PREFERRED_VOICE_PRIVACY_MODE 82 @@ -4258,6 +4704,9 @@ typedef struct { * INTERNAL_ERR * NO_MEMORY * INVALID_ARGUMENTS + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_CDMA_QUERY_PREFERRED_VOICE_PRIVACY_MODE 83 @@ -4281,6 +4730,9 @@ typedef struct { * INTERNAL_ERR * INVALID_CALL_ID * INVALID_STATE + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_CDMA_FLASH 84 @@ -4308,6 +4760,10 @@ typedef struct { * MODEM_ERR * INTERNAL_ERR * INVALID_CALL_ID + * NO_RESOURCES + * CANCELLED + * OPERATION_NOT_ALLOWED + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_CDMA_BURST_DTMF 85 @@ -4337,6 +4793,8 @@ typedef struct { * INVALID_ARGUMENTS * MODEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * */ #define RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY 86 @@ -4371,7 +4829,12 @@ typedef struct { * NETWORK_ERR * ENCODING_ERR * INVALID_SMSC_ADDRESS + * OPERATION_NOT_ALLOWED + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * MODE_NOT_SUPPORTED + * SIM_ABSENT * */ #define RIL_REQUEST_CDMA_SEND_SMS 87 @@ -4397,9 +4860,10 @@ typedef struct { * SYSTEM_ERR * MODEM_ERR * INVALID_STATE - * MODE_NOT_SUPPORTED + * OPERATION_NOT_ALLOWED * NETWORK_NOT_READY * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE 88 @@ -4424,7 +4888,11 @@ typedef struct { * NO_RESOURCES * MODEM_ERR * SYSTEM_ERR - * + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_GSM_GET_BROADCAST_SMS_CONFIG 89 @@ -4448,6 +4916,11 @@ typedef struct { * REQUEST_RATE_LIMITED * MODEM_ERR * SYSTEM_ERR + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_GSM_SET_BROADCAST_SMS_CONFIG 90 @@ -4472,7 +4945,12 @@ typedef struct { * NO_MEMORY * SYSTEM_ERR * REQUEST_RATE_LIMITED - * MODEM_ERR +* MODEM_ERR +* INTERNAL_ERR +* NO_RESOURCES +* CANCELLED +* INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_GSM_SMS_BROADCAST_ACTIVATION 91 @@ -4497,6 +4975,11 @@ typedef struct { * NO_RESOURCES * MODEM_ERR * SYSTEM_ERR + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_CDMA_GET_BROADCAST_SMS_CONFIG 92 @@ -4521,6 +5004,11 @@ typedef struct { * REQUEST_RATE_LIMITED * MODEM_ERR * SYSTEM_ERR + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_CDMA_SET_BROADCAST_SMS_CONFIG 93 @@ -4546,6 +5034,11 @@ typedef struct { * SYSTEM_ERR * REQUEST_RATE_LIMITED * MODEM_ERR + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_CDMA_SMS_BROADCAST_ACTIVATION 94 @@ -4581,6 +5074,9 @@ typedef struct { * MODEM_ERR * NOT_PROVISIONED * REQUEST_NOT_SUPPORTED + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED * */ @@ -4608,8 +5104,12 @@ typedef struct { * NO_MEMORY * NO_RESOURCES * INVALID_MODEM_STATE - * MODE_NOT_SUPPORTED + * OPERATION_NOT_ALLOWED * INVALID_SMSC_ADDRESS + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * SIM_ABSENT * */ #define RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM 96 @@ -4633,7 +5133,12 @@ typedef struct { * SYSTEM_ERR * MODEM_ERR * NO_SUCH_ENTRY - * + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED + * SIM_ABSENT */ #define RIL_REQUEST_CDMA_DELETE_SMS_ON_RUIM 97 @@ -4668,6 +5173,8 @@ typedef struct { * MODEM_ERR * NOT_PROVISIONED * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * */ #define RIL_REQUEST_DEVICE_IDENTITY 98 @@ -4693,6 +5200,8 @@ typedef struct { * INVALID_ARGUMENTS * MODEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * */ #define RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE 99 @@ -4717,6 +5226,10 @@ typedef struct { * INVALID_ARGUMENTS * INVALID_MODEM_STATE * NOT_PROVISIONED + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * SIM_ABSENT * */ #define RIL_REQUEST_GET_SMSC_ADDRESS 100 @@ -4740,7 +5253,10 @@ typedef struct { * REQUEST_RATE_LIMITED * MODEM_ERR * NO_RESOURCES - * + * INTERNAL_ERR + * CANCELLED + * REQUEST_NOT_SUPPORTED + * SIM_ABSENT */ #define RIL_REQUEST_SET_SMSC_ADDRESS 101 @@ -4764,6 +5280,10 @@ typedef struct { * SYSTEM_ERR * REQUEST_RATE_LIMITED * MODEM_ERR + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_REPORT_SMS_MEMORY_STATUS 102 @@ -4780,6 +5300,11 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING 103 @@ -4799,6 +5324,11 @@ typedef struct { * SUCCESS * RADIO_NOT_AVAILABLE * SUBSCRIPTION_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * * See also: RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE */ @@ -4816,6 +5346,11 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_ISIM_AUTHENTICATION 105 @@ -4836,6 +5371,11 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU 106 @@ -4863,6 +5403,12 @@ typedef struct { * RIL_E_RADIO_NOT_AVAILABLE (radio resetting) * SIM_BUSY * OPERATION_NOT_ALLOWED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * SIM_ABSENT */ #define RIL_REQUEST_STK_SEND_ENVELOPE_WITH_STATUS 107 @@ -4879,6 +5425,11 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_VOICE_RADIO_TECH 108 @@ -4903,6 +5454,8 @@ typedef struct { * MODEM_ERR * NO_NETWORK_FOUND * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * */ #define RIL_REQUEST_GET_CELL_INFO_LIST 109 @@ -4928,6 +5481,8 @@ typedef struct { * SYSTEM_ERR * INVALID_ARGUMENTS * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE 110 @@ -4962,6 +5517,8 @@ typedef struct { * MODEM_ERR * NOT_PROVISIONED * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * */ #define RIL_REQUEST_SET_INITIAL_ATTACH_APN 111 @@ -4989,6 +5546,12 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_IMS_REGISTRATION_STATE 112 @@ -5021,7 +5584,11 @@ typedef struct { * NETWORK_ERR * ENCODING_ERR * INVALID_SMSC_ADDRESS - * MODE_NOT_SUPPORTED + * OPERATION_NOT_ALLOWED + * INTERNAL_ERR + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED * */ #define RIL_REQUEST_IMS_SEND_SMS 113 @@ -5042,6 +5609,11 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC 114 @@ -5064,6 +5636,14 @@ typedef struct { * RADIO_NOT_AVAILABLE * MISSING_RESOURCE * NO_SUCH_ELEMENT + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * SIM_ERR + * INVALID_SIM_STATE + * MISSING_RESOURCE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SIM_OPEN_CHANNEL 115 @@ -5081,6 +5661,11 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SIM_CLOSE_CHANNEL 116 @@ -5099,6 +5684,11 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL 117 @@ -5115,6 +5705,7 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_NV_READ_ITEM 118 @@ -5131,6 +5722,7 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_NV_WRITE_ITEM 119 @@ -5147,6 +5739,7 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_NV_WRITE_CDMA_PRL 120 @@ -5166,6 +5759,7 @@ typedef struct { * Valid errors: * SUCCESS * RADIO_NOT_AVAILABLE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_NV_RESET_CONFIG 121 @@ -5188,6 +5782,8 @@ typedef struct { * INVALID_ARGUMENTS * MODEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * */ #define RIL_REQUEST_SET_UICC_SUBSCRIPTION 122 @@ -5216,6 +5812,8 @@ typedef struct { * DEVICE_IN_USE * INVALID_MODEM_STATE * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED * */ #define RIL_REQUEST_ALLOW_DATA 123 @@ -5229,6 +5827,10 @@ typedef struct { * "data" is NULL * * "response" is an array of RIL_HardwareConfig. + * + * Valid errors: + * RADIO_NOT_AVAILABLE + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_GET_HARDWARE_CONFIG 124 @@ -5250,6 +5852,17 @@ typedef struct { * int sw1; Status bytes per 3GPP TS 31.102 section 7.3 * int sw2; * char *simResponse; Response in Base64 format, see 3GPP TS 31.102 7.1.2 + * + * Valid errors: + * RADIO_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * INVALID_MODEM_STATE + * INVALID_ARGUMENTS + * SIM_ERR + * REQUEST_NOT_SUPPORTED */ #define RIL_REQUEST_SIM_AUTHENTICATION 125 @@ -5267,6 +5880,10 @@ typedef struct { * SUCCESS * RADIO_NOT_AVAILABLE * REQUEST_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED * * See also: RIL_UNSOL_DC_RT_INFO_CHANGED */ @@ -5303,6 +5920,12 @@ typedef struct { * SUCCESS * RADIO_NOT_AVAILABLE (radio resetting) * SUBSCRIPTION_NOT_AVAILABLE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * SIM_ABSENT */ #define RIL_REQUEST_SET_DATA_PROFILE 128 @@ -5323,6 +5946,8 @@ typedef struct { * INTERNAL_ERR * SYSTEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_SHUTDOWN 129 @@ -5339,6 +5964,10 @@ typedef struct { * OPERATION_NOT_ALLOWED * INVALID_STATE * REQUEST_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_GET_RADIO_CAPABILITY 130 @@ -5365,6 +5994,8 @@ typedef struct { * MODEM_ERR * INVALID_STATE * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_SET_RADIO_CAPABILITY 131 @@ -5385,6 +6016,10 @@ typedef struct { * LCE_NOT_SUPPORTED * INTERNAL_ERR * REQUEST_NOT_SUPPORTED + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * SIM_ABSENT */ #define RIL_REQUEST_START_LCE 132 @@ -5400,6 +6035,12 @@ typedef struct { * SUCCESS * RADIO_NOT_AVAILABLE * LCE_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * SIM_ABSENT */ #define RIL_REQUEST_STOP_LCE 133 @@ -5414,6 +6055,12 @@ typedef struct { * SUCCESS * RADIO_NOT_AVAILABLE * LCE_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * SIM_ABSENT */ #define RIL_REQUEST_PULL_LCEDATA 134 @@ -5439,6 +6086,7 @@ typedef struct { * MODEM_ERR * NOT_PROVISIONED * REQUEST_NOT_SUPPORTED + * NO_RESOURCES CANCELLED */ #define RIL_REQUEST_GET_ACTIVITY_INFO 135 @@ -5472,6 +6120,10 @@ typedef struct { * RIL_E_INVALID_ARGUMENTS * RIL_E_RADIO_NOT_AVAILABLE * RIL_E_REQUEST_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_SET_CARRIER_RESTRICTIONS 136 @@ -5490,6 +6142,10 @@ typedef struct { * RIL_E_SUCCESS * RIL_E_RADIO_NOT_AVAILABLE * RIL_E_REQUEST_NOT_SUPPORTED + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_GET_CARRIER_RESTRICTIONS 137 @@ -5514,6 +6170,8 @@ typedef struct { * SYSTEM_ERR * INVALID_ARGUMENTS * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_SEND_DEVICE_STATE 138 @@ -5539,6 +6197,8 @@ typedef struct { * INTERNAL_ERR * SYSTEM_ERR * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER 139 @@ -5566,8 +6226,125 @@ typedef struct { * REQUEST_NOT_SUPPORTED * SIM_ABSENT * INVALID_ARGUMENTS + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED */ #define RIL_REQUEST_SET_SIM_CARD_POWER 140 + +/** + * RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION + * + * Provide Carrier specific information to the modem that will be used to + * encrypt the IMSI and IMPI. Sent by the framework during boot, carrier + * switch and everytime we receive a new certificate. + * + * "data" is the RIL_CarrierInfoForImsiEncryption * structure. + * + * "response" is NULL + * + * Valid errors: + * RIL_E_SUCCESS + * RIL_E_RADIO_NOT_AVAILABLE + * SIM_ABSENT + * RIL_E_REQUEST_NOT_SUPPORTED + * INVALID_ARGUMENTS + * MODEM_INTERNAL_FAILURE + * INTERNAL_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + */ +#define RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION 141 + +/** + * RIL_REQUEST_START_NETWORK_SCAN + * + * Starts a new network scan + * + * Request to start a network scan with specified radio access networks with frequency bands and/or + * channels. + * + * "data" is a const RIL_NetworkScanRequest *. + * "response" is NULL + * + * Valid errors: + * SUCCESS + * RADIO_NOT_AVAILABLE + * OPERATION_NOT_ALLOWED + * DEVICE_IN_USE + * INTERNAL_ERR + * NO_MEMORY + * MODEM_ERR + * INVALID_ARGUMENTS + * REQUEST_NOT_SUPPORTED + * NO_RESOURCES + * CANCELLED + * + */ +#define RIL_REQUEST_START_NETWORK_SCAN 142 + +/** + * RIL_REQUEST_STOP_NETWORK_SCAN + * + * Stops an ongoing network scan + * + * Request to stop the ongoing network scan. Since the modem can only perform one scan at a time, + * there is no parameter for this request. + * + * "data" is NULL + * "response" is NULL + * + * Valid errors: + * SUCCESS + * INTERNAL_ERR + * MODEM_ERR + * NO_MEMORY + * NO_RESOURCES + * CANCELLED + * REQUEST_NOT_SUPPORTED + * + */ +#define RIL_REQUEST_STOP_NETWORK_SCAN 143 + +/** + * RIL_REQUEST_START_KEEPALIVE + * + * Start a keepalive session + * + * Request that the modem begin sending keepalive packets on a particular + * data call, with a specified source, destination, and format. + * + * "data" is a const RIL_RequestKeepalive + * "response" is RIL_KeepaliveStatus with a valid "handle" + * + * Valid errors: + * SUCCESS + * NO_RESOURCES + * INVALID_ARGUMENTS + * + */ +#define RIL_REQUEST_START_KEEPALIVE 144 + +/** + * RIL_REQUEST_STOP_KEEPALIVE + * + * Stops an ongoing keepalive session + * + * Requests that a keepalive session with the given handle be stopped. + * there is no parameter for this request. + * + * "data" is an integer handle + * "response" is NULL + * + * Valid errors: + * SUCCESS + * INVALID_ARGUMENTS + * + */ +#define RIL_REQUEST_STOP_KEEPALIVE 145 + /***********************************************************************/ #define RIL_OEM_REQUEST_BASE 10000 @@ -6305,6 +7082,36 @@ typedef struct { */ #define RIL_UNSOL_MODEM_RESTART 1047 +/** + * RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION + * + * Called when the modem needs Carrier specific information that will + * be used to encrypt IMSI and IMPI. + * + * "data" is NULL + * + */ +#define RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION 1048 + +/** + * RIL_UNSOL_NETWORK_SCAN_RESULT + * + * Returns incremental result for the network scan which is started by + * RIL_REQUEST_START_NETWORK_SCAN, sent to report results, status, or errors. + * + * "data" is NULL + * "response" is a const RIL_NetworkScanResult * + */ +#define RIL_UNSOL_NETWORK_SCAN_RESULT 1049 + +/** + * RIL_UNSOL_KEEPALIVE_STATUS + * + * "data" is NULL + * "response" is a const RIL_KeepaliveStatus * + */ +#define RIL_UNSOL_KEEPALIVE_STATUS 1050 + /***********************************************************************/ @@ -6471,6 +7278,35 @@ typedef struct { loosely defined in LTE Layer 3 spec 24.008 */ } RIL_PCO_Data; +typedef enum { + NATT_IPV4 = 0, /* Keepalive specified by RFC 3948 Sec. 2.3 using IPv4 */ + NATT_IPV6 = 1 /* Keepalive specified by RFC 3948 Sec. 2.3 using IPv6 */ +} RIL_KeepaliveType; + +#define MAX_INADDR_LEN 16 +typedef struct { + RIL_KeepaliveType type; /* Type of keepalive packet */ + char sourceAddress[MAX_INADDR_LEN]; /* Source address in network-byte order */ + int sourcePort; /* Source port if applicable, or 0x7FFFFFFF; + the maximum value is 65535 */ + char destinationAddress[MAX_INADDR_LEN]; /* Destination address in network-byte order */ + int destinationPort; /* Destination port if applicable or 0x7FFFFFFF; + the maximum value is 65535 */ + int maxKeepaliveIntervalMillis; /* Maximum milliseconds between two packets */ + int cid; /* Context ID, uniquely identifies this call */ +} RIL_KeepaliveRequest; + +typedef enum { + KEEPALIVE_ACTIVE, /* Keepalive session is active */ + KEEPALIVE_INACTIVE, /* Keepalive session is inactive */ + KEEPALIVE_PENDING /* Keepalive session status not available */ +} RIL_KeepaliveStatusCode; + +typedef struct { + uint32_t sessionHandle; + RIL_KeepaliveStatusCode code; +} RIL_KeepaliveStatus; + #ifdef RIL_SHLIB struct RIL_Env { /** -- 2.20.1