qcacld-3.0: Add EMLSR HW mode check to avoid excess logging

The policy manager API to fetch hardware mode capabilities
from hardware mode index is not using the get EMLSR mode API
and thus throws an error message whenever the device is in
EMLSR mode. This is resulting in excessive logging. Thus,
add the get EMLSR hardware mode check to avoid the flooding
of logs.

Change-Id: I1a84b5038eafde5aa08d2c19c923c61ee6558b45
CRs-Fixed: 3498843
This commit is contained in:
Gururaj Pandurangi
2023-05-15 20:16:53 -07:00
committed by Rahul Choudhary
부모 b8dbabc292
커밋 988af7b177

파일 보기

@@ -418,7 +418,9 @@ QDF_STATUS policy_mgr_get_hw_mode_from_idx(
for (i = 0; i < pm_ctx->num_dbs_hw_modes; i++) {
param = pm_ctx->hw_mode.hw_mode_list[i];
hw_mode_id = POLICY_MGR_HW_MODE_ID_GET(param);
if (hw_mode_id == idx)
hw_mode->emlsr_cap = POLICY_MGR_HW_MODE_EMLSR_MODE_GET(param);
if (hw_mode_id == idx || hw_mode->emlsr_cap)
break;
}
if (i >= pm_ctx->num_dbs_hw_modes) {
@@ -438,7 +440,6 @@ QDF_STATUS policy_mgr_get_hw_mode_from_idx(
hw_mode->dbs_cap = POLICY_MGR_HW_MODE_DBS_MODE_GET(param);
hw_mode->agile_dfs_cap = POLICY_MGR_HW_MODE_AGILE_DFS_GET(param);
hw_mode->sbs_cap = POLICY_MGR_HW_MODE_SBS_MODE_GET(param);
hw_mode->emlsr_cap = POLICY_MGR_HW_MODE_EMLSR_MODE_GET(param);
if (hw_mode->dbs_cap) {
mac0_min_ss = QDF_MIN(hw_mode->mac0_tx_ss, hw_mode->mac0_rx_ss);
mac1_min_ss = QDF_MIN(hw_mode->mac1_tx_ss, hw_mode->mac1_rx_ss);