qcacld-3.0: Fill seg1 for 160 mhz BW in ACS result

Currently the driver does not fill the seg1 frequency
in case of 160 mhz which is used for SAP startup.

Fix is to Fill seg1 for 160 mhz BW in ACS result

Change-Id: Iffc61581290adf97d83e10b6a717c50afb750687
CRs-Fixed: 2575631
This commit is contained in:
gaurank kathpalia 2019-12-02 15:21:31 +05:30 • committed by nshrivas
commit 4c443a26bc

View file

@ -112,7 +112,9 @@ void sap_config_acs_result(mac_handle_t mac_handle,
else
sap_ctx->acs_cfg->vht_seg0_center_ch_freq = 0;
if (sap_ctx->acs_cfg->ch_width == CH_WIDTH_80P80MHZ)
if (sap_ctx->acs_cfg->ch_width == CH_WIDTH_80P80MHZ ||
(sap_ctx->acs_cfg->ch_width == CH_WIDTH_160MHZ &&
WLAN_REG_IS_6GHZ_CHAN_FREQ(sap_ctx->acs_cfg->pri_ch_freq)))
sap_ctx->acs_cfg->vht_seg1_center_ch_freq =
ch_params.mhz_freq_seg1;
else