Просмотр исходного кода

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
Tushnim Bhattacharyya 8 лет назад
Родитель
Сommit
f80cf0eccb
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      umac/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c

+ 4 - 4
umac/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c

@@ -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(