Merge "Add dtim config optimization HAL API"

This commit is contained in:
Kai Shi
2021-01-13 18:57:57 +00:00
committed by Android (Google) Code Review
3 changed files with 10 additions and 0 deletions

View File

@@ -1630,6 +1630,12 @@ wifi_error WifiLegacyHal::twtClearStats(const std::string& iface_name,
configId);
}
wifi_error WifiLegacyHal::setDtimConfig(const std::string& iface_name,
uint32_t multiplier) {
return global_func_table_.wifi_set_dtim_config(getIfaceHandle(iface_name),
multiplier);
}
void WifiLegacyHal::invalidate() {
global_handle_ = nullptr;
iface_name_to_handle_.clear();

View File

@@ -690,6 +690,9 @@ class WifiLegacyHal {
wifi_error twtClearStats(const std::string& iface_name, uint8_t configId);
wifi_error setDtimConfig(const std::string& iface_name,
uint32_t multiplier);
private:
// Retrieve interface handles for all the available interfaces.
wifi_error retrieveIfaceHandles();

View File

@@ -158,6 +158,7 @@ bool initHalFuncTableWithStubs(wifi_hal_fn* hal_fn) {
populateStubFor(&hal_fn->wifi_twt_info_frame_request);
populateStubFor(&hal_fn->wifi_twt_get_stats);
populateStubFor(&hal_fn->wifi_twt_clear_stats);
populateStubFor(&hal_fn->wifi_set_dtim_config);
return true;
}
} // namespace legacy_hal