summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSohani Rao2017-08-14 16:52:45 -0500
committerandroid-build-merger2017-08-14 16:52:45 -0500
commitcff59cf358e930f03b1c087ea7dcf3d4a2f7bc69 (patch)
treee53e558f90a16be51abb6fc1bcda36bfe2408eed
parente9e3e79f4b8f9c7348f7f03c23625e4429ba4efc (diff)
parent8a89f6126f00edc71e77bb77b2cfe17b8c90dab1 (diff)
downloadsystem-connectivity-wificond-cff59cf358e930f03b1c087ea7dcf3d4a2f7bc69.tar.gz
system-connectivity-wificond-cff59cf358e930f03b1c087ea7dcf3d4a2f7bc69.tar.xz
system-connectivity-wificond-cff59cf358e930f03b1c087ea7dcf3d4a2f7bc69.zip
Wificond: Converting Offload scan results update
am: 8a89f6126f Change-Id: Ibf86652bab751bc6a3f11976cb6143a2e6785d59
-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;