diff options
-rw-r--r-- | Android.mk | 1 | ||||
-rw-r--r-- | scanning/offload/offload_service_utils.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -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 | ||
42 | bool OffloadServiceUtils::IsOffloadScanSupported() const { | 43 | bool 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 | ||