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
android.hardware.wifi.offload@1.0 \
libbase \
libbinder \
+ libcutils \
libhidltransport \
libhidlbase \
libhwbinder \
#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;
}