diff options
author | Sooraj Sasindran <ssasin@codeaurora.org> | 2015-10-08 16:03:16 -0700 |
---|---|---|
committer | Sooraj Sasindran <ssasin@codeaurora.org> | 2015-10-14 12:02:11 -0700 |
commit | cdfadb674b8872370157265f981d0bf7afb571f8 (patch) | |
tree | cdfa64dd4847869edcb1c026947dbb1549d3e01f | |
parent | dbff97e8779011f7a24efe8c7b6f0ba32979e780 (diff) | |
download | android_hardware_ril-cdfadb674b8872370157265f981d0bf7afb571f8.tar.gz android_hardware_ril-cdfadb674b8872370157265f981d0bf7afb571f8.tar.bz2 android_hardware_ril-cdfadb674b8872370157265f981d0bf7afb571f8.zip |
Allow voice radio tech update in Airplane Mode
Allow voice radio tech state to be queried when
device is in airplane mode.
Change-Id: I2f1d495ad14d704b6b47cfdd4df0c37dafee7c25
CRs-Fixed: 919286
-rw-r--r-- | include/telephony/ril.h | 2 | ||||
-rwxr-xr-x | libril/ril.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h index ff182cd..4595a6f 100644 --- a/include/telephony/ril.h +++ b/include/telephony/ril.h @@ -4016,7 +4016,7 @@ typedef struct { * RIL_REQUEST_VOICE_RADIO_TECH * * Query the radio technology type (3GPP/3GPP2) used for voice. Query is valid only - * when radio state is RADIO_STATE_ON + * when radio state is not RADIO_STATE_UNAVAILABLE * * "data" is NULL * "response" is int * diff --git a/libril/ril.cpp b/libril/ril.cpp index 04f2405..87cf197 100755 --- a/libril/ril.cpp +++ b/libril/ril.cpp @@ -1650,12 +1650,12 @@ static void dispatchDataCall(Parcel& p, RequestInfo *pRI) { static void dispatchVoiceRadioTech(Parcel& p, RequestInfo *pRI) { RIL_RadioState state = CALL_ONSTATEREQUEST((RIL_SOCKET_ID)pRI->socket_id); - if ((RADIO_STATE_UNAVAILABLE == state) || (RADIO_STATE_OFF == state)) { + if (RADIO_STATE_UNAVAILABLE == state) { RIL_onRequestComplete(pRI, RIL_E_RADIO_NOT_AVAILABLE, NULL, 0); } - // RILs that support RADIO_STATE_ON should support this request. - if (RADIO_STATE_ON == state) { + // If radio is available then RIL should support this request. + if ((RADIO_STATE_ON == state) || (RADIO_STATE_OFF == state)){ dispatchVoid(p, pRI); return; } |