diff options
author | Roman Kiryanov <rkir@google.com> | 2018-08-08 16:51:50 -0700 |
---|---|---|
committer | Roman Kiryanov <rkir@google.com> | 2018-08-08 16:51:50 -0700 |
commit | dabd8de3d3192aedb6c30832938631c3e653f1d2 (patch) | |
tree | 7a12fc083e33ddb3ec0491999a5b477a5b859566 | |
parent | a156b590429ad544a35c46993d24bb048b7299f7 (diff) | |
download | android_device_generic_goldfish-dabd8de3d3192aedb6c30832938631c3e653f1d2.tar.gz android_device_generic_goldfish-dabd8de3d3192aedb6c30832938631c3e653f1d2.tar.bz2 android_device_generic_goldfish-dabd8de3d3192aedb6c30832938631c3e653f1d2.zip |
Return the auth status as the error code for +CSIM
ril_service.cpp expects the error to be received as the error
code instead of the auth status.
Bug: 110212792
Test: ./android-vts/tools/vts-tradefed run vts -m VtsHalRadioV1_0Target \
-t VtsHalRadioV1_0Target#RadioHidlTest.requestIccSimAuthentication_64bit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I4301979c929d54b091851326769f422974555cff
-rw-r--r-- | ril/reference-ril.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ril/reference-ril.c b/ril/reference-ril.c index c0db44d..51f63ea 100644 --- a/ril/reference-ril.c +++ b/ril/reference-ril.c @@ -2415,7 +2415,7 @@ static void requestGetSimAuthentication(void *data, size_t datalen __unused, RIL char* line = p_response->p_intermediates->line; parseAuthResponse(line, &auth_response); - RIL_onRequestComplete(t, RIL_E_SUCCESS, &auth_response, sizeof(auth_response)); + RIL_onRequestComplete(t, auth_response.sw2, &auth_response, sizeof(auth_response)); free(auth_response.simResponse); free(p_response); } |