diff options
author | Steve Kondik <steve@cyngn.com> | 2015-05-14 13:55:20 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-10-12 11:25:05 -1000 |
commit | 47b8da9913cd0490dc264a8f59c84d697242e6f7 (patch) | |
tree | 0019764288a24f840b1982a0aee89b219c933312 /include | |
parent | 54feffcbbe38fb952bbe813b04fe7021de8ad790 (diff) | |
download | android_hardware_ril-47b8da9913cd0490dc264a8f59c84d697242e6f7.tar.gz android_hardware_ril-47b8da9913cd0490dc264a8f59c84d697242e6f7.tar.bz2 android_hardware_ril-47b8da9913cd0490dc264a8f59c84d697242e6f7.zip |
ril-caf: Allow using RIL version 10
* RIL version 11 adds a field that must be supported by the modem and
is not compatible with RIL version 10. Add a flag to support v10.
* Define USE_RIL_VERSION_10 to enable this.
Change-Id: I2d2dcbc149a46f9a56b5c852d5dbc9296b214180
Diffstat (limited to 'include')
-rw-r--r-- | include/telephony/ril.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h index 7cd9c22..bd3d2ed 100644 --- a/include/telephony/ril.h +++ b/include/telephony/ril.h @@ -50,7 +50,11 @@ extern "C" { #define SIM_COUNT 1 #endif +#ifdef USE_RIL_VERSION_10 +#define RIL_VERSION 10 +#else #define RIL_VERSION 11 /* Current version */ +#endif #define RIL_VERSION_MIN 6 /* Minimum RIL_VERSION supported */ #define CDMA_ALPHA_INFO_BUFFER_LENGTH 64 @@ -399,6 +403,7 @@ typedef struct { via PCO(Protocol Configuration Option) for IMS client. */ } RIL_Data_Call_Response_v9; +#if (RIL_VERSION == 11) typedef struct { int status; /* A RIL_DataCallFailCause, 0 which is PDP_FAIL_NONE if no error */ int suggestedRetryTime; /* If status != 0, this fields indicates the suggested retry @@ -434,6 +439,7 @@ typedef struct { Value <= 0 means network has either not sent a value or sent an invalid value */ } RIL_Data_Call_Response_v11; +#endif typedef enum { RADIO_TECH_3GPP = 1, /* 3GPP Technologies - GSM, WCDMA */ |