Explorar o código

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
Ananya Barat %!s(int64=5) %!d(string=hai) anos
pai
achega
9cd92dce58
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      umac/regulatory/core/src/reg_services_common.c

+ 1 - 4
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;
 }