qcacld-3.0: Use target BW 80Mhz for Pre CAC on 5G

At present the pre CAC is done based on original SAP's BW,
but usually the original SAP is on 2G and BW <= 40Mhz. The
requirement from user is to have higher BW on 5G. Hence, select
higher BW supported by SAP phymode to do pre CAC and move 2G
SAP to 5G pre CAC channel when pre CAC done successfully.
Also set the default MAX bw pre CAC to 80Mhz based on current user
request.

Change-Id: I3115da8eb649238da50b223c2587db96125ec813
CRs-Fixed: 2984084
This commit is contained in:
Liangwei Dong
2021-06-29 14:52:03 +08:00
committad av Madan Koyyalamudi
förälder 574dcaeaa3
incheckning a97eee4294
5 ändrade filer med 161 tillägg och 67 borttagningar

Visa fil

@@ -1441,6 +1441,17 @@ void sap_undo_acs(struct sap_context *sap_context, struct sap_config *sap_cfg);
*/
uint32_t wlansap_get_chan_width(struct sap_context *sap_ctx);
/**
* wlansap_get_max_bw_by_phymode() - get max channel width based on phymode
* @sap_ctx: pointer to the SAP context
*
* This function get max channel width of sap based on phymode.
*
* Return: channel width
*/
enum phy_ch_width
wlansap_get_max_bw_by_phymode(struct sap_context *sap_ctx);
/*
* wlansap_set_invalid_session() - set session ID to invalid
* @sap_ctx: pointer to the SAP context