summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Jiao <ye.jiao@mediatek.com>2023-01-17 15:10:59 +0800
committerShuibing Dai <shuibing@google.com>2023-01-27 05:07:04 +0000
commit282246a8ad1ea25253b4abeaaa9ef1f6cf9e5440 (patch)
tree203997dcf63a5b66ff9fb7c2ab48ff996497b296
parent36cff5cd7da8f56e065f938e326ee3342d66e584 (diff)
downloadlibhardware_legacy-282246a8ad1ea25253b4abeaaa9ef1f6cf9e5440.tar.gz
Move setScanMode to legacy HAL
Cherry-pick from: https://partner-android-review.git.corp.google.com/c/platform/hardware/libhardware_legacy/+/2368871 Implementation of setScanMode is platform-specific. It's more reasonable to move it the legacy HAL like other platform-specific APIs. Bug: 265866990 Test: manual Test Test: VTS Change-Id: I2e9d30698a8bcb915a746f6253ec3b6e6d903bc0
-rw-r--r--include/hardware_legacy/wifi_hal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h
index c0763f2..adf2f88 100644
--- a/include/hardware_legacy/wifi_hal.h
+++ b/include/hardware_legacy/wifi_hal.h
@@ -1219,6 +1219,14 @@ typedef struct {
transaction_id id, wifi_interface_handle iface,
NanBootstrappingIndicationResponse *msg);
+ /**@brief wifi_set_scan_mode
+ * Notify driver/firmware current is scan only mode to allow lower
+ * level to optimize power consumption.
+ * @param enable true if current is scan only mode
+ * @return Synchronous wifi_error
+ */
+ wifi_error (*wifi_set_scan_mode)(const char * ifname, bool enable);
+
/*
* when adding new functions make sure to add stubs in
* wifi_legacy_hal_stubs.cpp::initHalFuncTableWithStubs