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
This commit is contained in:
Ye Jiao 2023-01-17 15:10:59 +08:00 committed by Shuibing Dai
parent 36cff5cd7d
commit 282246a8ad

View file

@ -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