summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSohani Rao2017-07-11 19:52:42 -0500
committerSohani Rao2017-08-11 19:08:41 -0500
commit8a89f6126f00edc71e77bb77b2cfe17b8c90dab1 (patch)
treee53e558f90a16be51abb6fc1bcda36bfe2408eed
parent3579413d25b46ea0c4ec0d647cfba561b7389b83 (diff)
downloadsystem-connectivity-wificond-8a89f6126f00edc71e77bb77b2cfe17b8c90dab1.tar.gz
system-connectivity-wificond-8a89f6126f00edc71e77bb77b2cfe17b8c90dab1.tar.xz
system-connectivity-wificond-8a89f6126f00edc71e77bb77b2cfe17b8c90dab1.zip
Wificond: Converting Offload scan results update
When converting scan results from Offload HAL to NativeScanResult format, fix updating the BSSID field. Bug: 63148974 Test: Unit test, sanity test - bring up the phone and connect with access points, test disconnected mode PNO scans with Offload HAL as the interface of choice Change-Id: I60ae8b4e6422727c2cab2d2fca4c5a0730558035
-rw-r--r--scanning/offload/offload_scan_utils.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/scanning/offload/offload_scan_utils.cpp b/scanning/offload/offload_scan_utils.cpp
index 9127632..598fd8e 100644
--- a/scanning/offload/offload_scan_utils.cpp
+++ b/scanning/offload/offload_scan_utils.cpp
@@ -39,9 +39,11 @@ vector<NativeScanResult> OffloadScanUtils::convertToNativeScanResults(
39 native_scan_result.reserve(scan_result.size()); 39 native_scan_result.reserve(scan_result.size());
40 for (size_t i = 0; i < scan_result.size(); i++) { 40 for (size_t i = 0; i < scan_result.size(); i++) {
41 NativeScanResult single_scan_result; 41 NativeScanResult single_scan_result;
42 single_scan_result.ssid = scan_result[i].networkInfo.ssid; 42 single_scan_result.ssid.assign(scan_result[i].networkInfo.ssid.begin(),
43 single_scan_result.bssid.assign(scan_result[i].networkInfo.ssid.begin(), 43 scan_result[i].networkInfo.ssid.end());
44 scan_result[i].networkInfo.ssid.end()); 44 for (size_t j = 0; j < scan_result[i].bssid.elementCount(); j++) {
45 single_scan_result.bssid.push_back(scan_result[i].bssid[j]);
46 }
45 single_scan_result.frequency = scan_result[i].frequency; 47 single_scan_result.frequency = scan_result[i].frequency;
46 single_scan_result.signal_mbm = scan_result[i].rssi; 48 single_scan_result.signal_mbm = scan_result[i].rssi;
47 single_scan_result.tsf = scan_result[i].tsf; 49 single_scan_result.tsf = scan_result[i].tsf;