summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7018247)
raw | patch | inline | side by side (parent: 7018247)
author | Sohani Rao <sohanirao@google.com> | |
Tue, 22 Aug 2017 20:45:43 +0000 (13:45 -0700) | ||
committer | Sohani Rao <sohanirao@google.com> | |
Fri, 1 Sep 2017 19:10:12 +0000 (12:10 -0700) |
Enable use of adb shell setprop <property_string> <value> command
to enable using offload HAL for disconnected mode PNO scans.
Bug: 64944391
Test: Unit test and on device to test to ensure the command works
Change-Id: I911a15177f98be6040d161093bf4c97089973b9c
to enable using offload HAL for disconnected mode PNO scans.
Bug: 64944391
Test: Unit test and on device to test to ensure the command works
Change-Id: I911a15177f98be6040d161093bf4c97089973b9c
Android.mk | patch | blob | history | |
scanning/offload/offload_service_utils.cpp | patch | blob | history |
diff --git a/Android.mk b/Android.mk
index 163e3d1d10e259479f4f9d6142cd56b24ebe6e4b..5a5a078452c1a260d4cf3ee8f2cf7fbdf01d38d5 100644 (file)
--- a/Android.mk
+++ b/Android.mk
android.hardware.wifi.offload@1.0 \
libbase \
libbinder \
+ libcutils \
libhidltransport \
libhidlbase \
libhwbinder \
diff --git a/scanning/offload/offload_service_utils.cpp b/scanning/offload/offload_service_utils.cpp
index ce25d85c0484e9e919c5c0aedf167f4e3f4afa86..d91f069cfea01e21bb20100150e7d6071110bda1 100644 (file)
#include "wificond/scanning/offload/offload_service_utils.h"
#include <android-base/logging.h>
+#include <cutils/properties.h>
#include "wificond/scanning/offload/offload_scan_manager.h"
#include "wificond/scanning/scanner_impl.h"
}
bool OffloadServiceUtils::IsOffloadScanSupported() const {
+ if (property_get_bool("persist.wifi.offload.enable", false)) {
+ LOG(INFO) << "Offload HAL supported";
+ return true;
+ }
+ LOG(INFO) << "Offload HAL not supported ";
return false;
}