• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/connectivity/wificond


Commit MetaInfo

Revisión94abf86afd8ff688b2bc871b0e97820b0f6ace31 (tree)
Tiempo2017-09-02 04:10:12
AutorSohani Rao <sohanirao@goog...>
CommiterSohani Rao

Log Message

Wificond: Provide a way to enable Offload scans

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

Cambiar Resumen

Diferencia incremental

--- a/Android.mk
+++ b/Android.mk
@@ -200,6 +200,7 @@ LOCAL_SHARED_LIBRARIES := \
200200 android.hardware.wifi.offload@1.0 \
201201 libbase \
202202 libbinder \
203+ libcutils \
203204 libhidltransport \
204205 libhidlbase \
205206 libhwbinder \
--- a/scanning/offload/offload_service_utils.cpp
+++ b/scanning/offload/offload_service_utils.cpp
@@ -16,6 +16,7 @@
1616 #include "wificond/scanning/offload/offload_service_utils.h"
1717
1818 #include <android-base/logging.h>
19+#include <cutils/properties.h>
1920
2021 #include "wificond/scanning/offload/offload_scan_manager.h"
2122 #include "wificond/scanning/scanner_impl.h"
@@ -40,6 +41,11 @@ OffloadDeathRecipient* OffloadServiceUtils::GetOffloadDeathRecipient(
4041 }
4142
4243 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 ";
4349 return false;
4450 }
4551