From 9cd92dce584777ef846abd9e843b82d8de572c61 Mon Sep 17 00:00:00 2001 From: Ananya Barat Date: Mon, 11 May 2020 10:55:20 +0530 Subject: [PATCH] qcacmn: Fill the max 5G bandwidth from the regdomains_5g table In the current implementation the max_5g_bw was hardcoded as 160 MHz in reg_get_max_5g_bw_from_regdomain, as this information was not available in regdomains_5g so far. However, the regdomains_5g table has been updated to make the maximum 5G bandwidth supported by the regdomain available. Hence updating this information. Change-Id: I9b9aea9a81b6b0d6f590c266e49a6b4ca3a9e32c --- umac/regulatory/core/src/reg_services_common.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/umac/regulatory/core/src/reg_services_common.c b/umac/regulatory/core/src/reg_services_common.c index cee11476f202..159f9e6f4e69 100644 --- a/umac/regulatory/core/src/reg_services_common.c +++ b/umac/regulatory/core/src/reg_services_common.c @@ -1594,10 +1594,7 @@ QDF_STATUS reg_get_max_5g_bw_from_regdomain(uint16_t regdmn, if (i == num_reg_dmn) return QDF_STATUS_E_FAILURE; - if (!regdomains_5g[g_reg_dmn_pairs[i].dmn_id_5g].num_reg_rules) - *max_bw_5g = 0; - else - *max_bw_5g = BW_160_MHZ; + *max_bw_5g = regdomains_5g[g_reg_dmn_pairs[i].dmn_id_5g].max_bw; return QDF_STATUS_SUCCESS; }