From c989ebe26ede8df389b7e7f848d10d10acdca5e2 Mon Sep 17 00:00:00 2001 From: Tushnim Bhattacharyya Date: Wed, 9 Aug 2017 15:51:21 -0700 Subject: [PATCH] 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 --- src/wlan_policy_mgr_core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wlan_policy_mgr_core.c b/src/wlan_policy_mgr_core.c index 68d6c235ad3c..924997fcf726 100644 --- a/src/wlan_policy_mgr_core.c +++ b/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(