mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
qcacld-3.0: Add backward compatibiilty to older FW
If DBS hwmode is not available from FW, return accrodingly in wma_get_hw_mode_from_idx. Change-Id: I603edd8a49bfd584300dcfc21c2b3c8c4c3c1892 CRs-Fixed: 934012
This commit is contained in:
parent
616679618f
commit
d43e165149
1 changed files with 5 additions and 0 deletions
|
|
@ -2797,6 +2797,11 @@ CDF_STATUS wma_get_hw_mode_from_idx(uint32_t idx,
|
|||
return CDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
if (!wma->num_dbs_hw_modes) {
|
||||
WMA_LOGE("%s: No dbs hw modes available", __func__);
|
||||
return CDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
param = wma->hw_mode.hw_mode_list[idx];
|
||||
|
||||
hw_mode->mac0_tx_ss = WMI_DBS_HW_MODE_MAC0_TX_STREAMS_GET(param);
|
||||
|
|
|
|||
Loading…
Reference in a new issue