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
This commit is contained in:
Ananya Barat 2020-05-11 10:55:20 +05:30 • committed by nshrivas
commit 9cd92dce58

View file

@ -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;
}