mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
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:
parent
47e9c6a997
commit
9cd92dce58
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue