qcacld-3.0: Remove bus bw vote when bus bw timer is stopped

Currently the driver votes for IDLE case when no
interface is associated. If the bus bandwidth timer
is stopped when there is no interface, we are not reducing
our votes, thereby causing higher power usage.

Remove our voting for bus bandwidth when the bus
bandwidth timer is stopped.
Also in the wlan resume case, vote for MEDIUM bus
bandwidth only if any interface is associated, else
vote for NONE.

Change-Id: I6cbe7f32036219b3b8914fb096562f44559931ce
CRs-Fixed: 2688853
This commit is contained in:
Rakesh Pillai
2020-05-18 13:53:35 +05:30
committed by nshrivas
parent 17b2fc57d7
commit 523a702050
3 changed files with 33 additions and 6 deletions

View File

@@ -2522,6 +2522,15 @@ bool wlan_hdd_validate_modules_state(struct hdd_context *hdd_ctx);
QDF_STATUS __wlan_hdd_validate_mac_address(struct qdf_mac_addr *mac_addr,
const char *func);
/**
* hdd_is_any_adapter_connected() - Check if any adapter is in connected state
* @hdd_ctx: the global hdd context
*
* Returns: true, if any of the adapters is in connected state,
* false, if none of the adapters is in connected state.
*/
bool hdd_is_any_adapter_connected(struct hdd_context *hdd_ctx);
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
/**
* hdd_bus_bw_compute_prev_txrx_stats() - get tx and rx stats