qcacld-3.0: Add check for passive channel for SAP

Add a check for passive channels when checking the restricted
bands on SAP. This change blocks SAP from restarting on a passive
channel.

Implement the function to filter out passive channels from the PCL.

Change-Id: I80a4b78c1af77f5bfa68be3163f9e9a78cc6425a
CRs-fixed: 2817589
This commit is contained in:
Lincoln Tran
2020-11-13 11:20:21 -08:00
committed by snandini
orang tua 4f22ac0d3e
melakukan b18e7854bf
4 mengubah file dengan 117 tambahan dan 2 penghapusan

Melihat File

@@ -1505,6 +1505,19 @@ bool wlansap_is_6ghz_included_in_acs_range(struct sap_context *sap_ctx);
uint32_t
wlansap_get_safe_channel_from_pcl_and_acs_range(struct sap_context *sap_ctx);
/**
* wlansap_get_safe_channel_from_pcl_for_sap() - Get safe and active channel
* for SAP restart
* @sap_ctx: sap context
*
* Get a safe and active channel to restart SAP. PCL already takes into account
* the unsafe channels.
*
* Return: Chan freq num to restart SAP in case of success. In case of any
* failure, the channel number returned is zero.
*/
uint32_t wlansap_get_safe_channel_from_pcl_for_sap(struct sap_context *sap_ctx);
/**
* wlansap_get_chan_band_restrict() - get new chan for band change
* @sap_ctx: sap context pointer