diff options
author | Kyle Repinski <repinski23@gmail.com> | 2015-12-02 10:37:00 -0600 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-03-11 01:17:00 +0100 |
commit | 2f61a1fb13480f1afb2b898d4393246c1fc7f179 (patch) | |
tree | f28448a4211e9d5e25ab57c60d3aec937c065c14 | |
parent | 2c3878ca3c8a2c770fff93afc96141ab058801b8 (diff) | |
download | device_samsung_tuna-2f61a1fb13480f1afb2b898d4393246c1fc7f179.tar.gz device_samsung_tuna-2f61a1fb13480f1afb2b898d4393246c1fc7f179.tar.bz2 device_samsung_tuna-2f61a1fb13480f1afb2b898d4393246c1fc7f179.zip |
libsecril-shim: More thorough request handling.
-rw-r--r-- | ril/libsecril-shim/secril-shim.c | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/ril/libsecril-shim/secril-shim.c b/ril/libsecril-shim/secril-shim.c index abc580e..5ca5a5a 100644 --- a/ril/libsecril-shim/secril-shim.c +++ b/ril/libsecril-shim/secril-shim.c @@ -42,17 +42,24 @@ static void onRequestShim(int request, void *data, size_t datalen, RIL_Token t) } /* else fallthrough to RIL_E_REQUEST_NOT_SUPPORTED */ - /* Necessary; otherwise we seem to lock up. */ - case RIL_REQUEST_SIM_OPEN_CHANNEL: - - /* Might not be necessary, but we don't support it as far as I know. */ + /* The following requests were introduced post-4.3. */ + case RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC: + case RIL_REQUEST_SIM_OPEN_CHANNEL: /* !!! */ + case RIL_REQUEST_SIM_CLOSE_CHANNEL: + case RIL_REQUEST_SIM_TRANSMIT_APDU_CHANNEL: + case RIL_REQUEST_NV_READ_ITEM: + case RIL_REQUEST_NV_WRITE_ITEM: + case RIL_REQUEST_NV_WRITE_CDMA_PRL: + case RIL_REQUEST_NV_RESET_CONFIG: + case RIL_REQUEST_SET_UICC_SUBSCRIPTION: case RIL_REQUEST_ALLOW_DATA: - - /* LCE is new (Android 6.0+). RILJ probably won't care how we - * reply to this, but better safe than sorry in my opinion. - * According to hardware/ril, we should be replying to the - * LCE commands with RIL_E_LCE_NOT_SUPPORTED, but RILJ does - * not recognize that as a valid respone. LOL! */ + case RIL_REQUEST_GET_HARDWARE_CONFIG: + case RIL_REQUEST_SIM_AUTHENTICATION: + case RIL_REQUEST_GET_DC_RT_INFO: + case RIL_REQUEST_SET_DC_RT_INFO_RATE: + case RIL_REQUEST_SET_DATA_PROFILE: + case RIL_REQUEST_SHUTDOWN: /* TODO: Is there something we can do for RIL_REQUEST_SHUTDOWN ? */ + case RIL_REQUEST_SET_RADIO_CAPABILITY: case RIL_REQUEST_START_LCE: case RIL_REQUEST_STOP_LCE: case RIL_REQUEST_PULL_LCEDATA: |