diff options
author | Sooraj Sasindran <sasindran@google.com> | 2018-05-07 21:20:43 -0700 |
---|---|---|
committer | Sooraj Sasindran <sasindran@google.com> | 2018-05-07 21:28:06 -0700 |
commit | 982ba7ab0767df77b0cda7f592bfde7e8b6cb53d (patch) | |
tree | 8e788c1627b37a1b7607f855619483809345bd92 | |
parent | 456df1bf437a38bd1931da18b1322db9e792eb6a (diff) | |
download | platform_hardware_ril-pie-qpr1-s3-release.tar.gz platform_hardware_ril-pie-qpr1-s3-release.tar.bz2 platform_hardware_ril-pie-qpr1-s3-release.zip |
Add scan error to Network Scan resultandroid-9.0.0_r30android-9.0.0_r22android-9.0.0_r21android-9.0.0_r20android-9.0.0_r19android-9.0.0_r16android-9.0.0_r12android-9.0.0_r11pie-qpr1-s3-releasepie-qpr1-s2-releasepie-qpr1-s1-releasepie-qpr1-releasepie-dr1-releasepie-dr1-devpie-dev
Add scan error to Network Scan result
Bug: 79377435
Test: Verified that SCAN is always responding fine
Change-Id: If0232826aa14fb35fc7a5324bdc95368c88994f5
-rw-r--r-- | include/telephony/ril.h | 1 | ||||
-rw-r--r-- | libril/ril_service.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h index 83773089..c4add627 100644 --- a/include/telephony/ril.h +++ b/include/telephony/ril.h @@ -2183,6 +2183,7 @@ 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; /** diff --git a/libril/ril_service.cpp b/libril/ril_service.cpp index b8862dc5..07fd49f0 100644 --- a/libril/ril_service.cpp +++ b/libril/ril_service.cpp @@ -8386,7 +8386,7 @@ int radio::networkScanResultInd(int slotId, V1_1::NetworkScanResult result; result.status = (V1_1::ScanStatus) networkScanResult->status; - result.error = (RadioError) e; + result.error = (RadioError) networkScanResult->error; convertRilCellInfoListToHal( networkScanResult->network_infos, networkScanResult->network_infos_length * sizeof(RIL_CellInfo_v12), |