mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 21:19:04 -04:00
qcacmn: Relax the check on nss field during HW mode table lookup
Relax the check on nss field during FW advertised HW mode table lookup. Instead of looking for exact match look for less than or equal to the FW advertised nss value. Change-Id: I360d14282f03aad25f4338546cbcbfb3cbd3a76b CRs-Fixed: 2090863
This commit is contained in:
parent
ffe5ca51ed
commit
c989ebe26e
1 changed files with 4 additions and 4 deletions
|
|
@ -324,12 +324,12 @@ int8_t policy_mgr_get_matching_hw_mode_index(
|
|||
for (i = 0; i < pm_ctx->num_dbs_hw_modes; i++) {
|
||||
t_mac0_tx_ss = POLICY_MGR_HW_MODE_MAC0_TX_STREAMS_GET(
|
||||
pm_ctx->hw_mode.hw_mode_list[i]);
|
||||
if (t_mac0_tx_ss != mac0_tx_ss)
|
||||
if (t_mac0_tx_ss < mac0_tx_ss)
|
||||
continue;
|
||||
|
||||
t_mac0_rx_ss = POLICY_MGR_HW_MODE_MAC0_RX_STREAMS_GET(
|
||||
pm_ctx->hw_mode.hw_mode_list[i]);
|
||||
if (t_mac0_rx_ss != mac0_rx_ss)
|
||||
if (t_mac0_rx_ss < mac0_rx_ss)
|
||||
continue;
|
||||
|
||||
t_mac0_bw = POLICY_MGR_HW_MODE_MAC0_BANDWIDTH_GET(
|
||||
|
|
@ -344,12 +344,12 @@ int8_t policy_mgr_get_matching_hw_mode_index(
|
|||
|
||||
t_mac1_tx_ss = POLICY_MGR_HW_MODE_MAC1_TX_STREAMS_GET(
|
||||
pm_ctx->hw_mode.hw_mode_list[i]);
|
||||
if (t_mac1_tx_ss != mac1_tx_ss)
|
||||
if (t_mac1_tx_ss < mac1_tx_ss)
|
||||
continue;
|
||||
|
||||
t_mac1_rx_ss = POLICY_MGR_HW_MODE_MAC1_RX_STREAMS_GET(
|
||||
pm_ctx->hw_mode.hw_mode_list[i]);
|
||||
if (t_mac1_rx_ss != mac1_rx_ss)
|
||||
if (t_mac1_rx_ss < mac1_rx_ss)
|
||||
continue;
|
||||
|
||||
t_mac1_bw = POLICY_MGR_HW_MODE_MAC1_BANDWIDTH_GET(
|
||||
|
|
|
|||
Loading…
Reference in a new issue