qcacld-3.0: Assign combined ACS weight to 6 GHz PSC channel

For bw higher than 20 MHz ACS request, such as 160 MHz,
weight calculation will combine the neighbor channel's
weight which maybe Non PSC channel, the previous setting of
combined weight to channel of lowest weight of neighbor channel.
That maybe Non PSC channel, that causes the final ACS result
is Non PSC channel, which is unexpected for standalone SAP.

Fix by set combined weight to PSC channel, so that PSC
channel will have a valid weight in final sorting with 5 GHz
or 2 GHz list.

Change-Id: Ic37d005af524f5ff2c8cb2c86647f02ced7c32d7
CRs-Fixed: 3394384
This commit is contained in:
Liangwei Dong
2023-02-02 15:45:24 +08:00
committed by Madan Koyyalamudi
parent 6f61935b2a
commit 15691e1d7c
5 changed files with 91 additions and 1 deletions

View File

@@ -1734,6 +1734,7 @@ static void mlme_init_acs_cfg(struct wlan_objmgr_psoc *psoc,
acs->is_external_acs_policy =
cfg_get(psoc, CFG_EXTERNAL_ACS_POLICY);
acs->np_chan_weightage = cfg_get(psoc, CFG_ACS_NP_CHAN_WEIGHT);
acs->acs_prefer_6ghz_psc = cfg_default(CFG_ACS_PREFER_6GHZ_PSC);
mlme_acs_parse_weight_list(psoc, acs);
}