mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Add dtim config optimization HAL API"
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user