summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSohani Rao2017-09-01 14:34:40 -0500
committerandroid-build-merger2017-09-01 14:34:40 -0500
commitfc1b96b6c9034b4dfe30030ed47ec846841a9bfa (patch)
treec004d0e029c8978d3040e47d8c5ba4e5697624e1
parent534ea027f4f5f12fe9fb1936226b525eb0807b55 (diff)
parent94abf86afd8ff688b2bc871b0e97820b0f6ace31 (diff)
downloadsystem-connectivity-wificond-fc1b96b6c9034b4dfe30030ed47ec846841a9bfa.tar.gz
system-connectivity-wificond-fc1b96b6c9034b4dfe30030ed47ec846841a9bfa.tar.xz
system-connectivity-wificond-fc1b96b6c9034b4dfe30030ed47ec846841a9bfa.zip
Wificond: Provide a way to enable Offload scans
am: 94abf86afd Change-Id: Ie2abd3bd49dc46b30a84f0080b24c13896dac892
-rw-r--r--Android.mk1
-rw-r--r--scanning/offload/offload_service_utils.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 163e3d1..5a5a078 100644
--- a/Android.mk
+++ b/Android.mk
@@ -200,6 +200,7 @@ LOCAL_SHARED_LIBRARIES := \
200 android.hardware.wifi.offload@1.0 \ 200 android.hardware.wifi.offload@1.0 \
201 libbase \ 201 libbase \
202 libbinder \ 202 libbinder \
203 libcutils \
203 libhidltransport \ 204 libhidltransport \
204 libhidlbase \ 205 libhidlbase \
205 libhwbinder \ 206 libhwbinder \
diff --git a/scanning/offload/offload_service_utils.cpp b/scanning/offload/offload_service_utils.cpp
index ce25d85..d91f069 100644
--- a/scanning/offload/offload_service_utils.cpp
+++ b/scanning/offload/offload_service_utils.cpp
@@ -16,6 +16,7 @@
16#include "wificond/scanning/offload/offload_service_utils.h" 16#include "wificond/scanning/offload/offload_service_utils.h"
17 17
18#include <android-base/logging.h> 18#include <android-base/logging.h>
19#include <cutils/properties.h>
19 20
20#include "wificond/scanning/offload/offload_scan_manager.h" 21#include "wificond/scanning/offload/offload_scan_manager.h"
21#include "wificond/scanning/scanner_impl.h" 22#include "wificond/scanning/scanner_impl.h"
@@ -40,6 +41,11 @@ OffloadDeathRecipient* OffloadServiceUtils::GetOffloadDeathRecipient(
40} 41}
41 42
42bool OffloadServiceUtils::IsOffloadScanSupported() const { 43bool OffloadServiceUtils::IsOffloadScanSupported() const {
44 if (property_get_bool("persist.wifi.offload.enable", false)) {
45 LOG(INFO) << "Offload HAL supported";
46 return true;
47 }
48 LOG(INFO) << "Offload HAL not supported ";
43 return false; 49 return false;
44} 50}
45 51