qcacld-3.0: Add APIs to validate vendor ACS channel

If channel set is coming from external application, it could be
possible that it doesn't fall into valid channel criteria.

Add APIs to validate the channel.

Change-Id: I1aa855b64c7702418471111d59c92ebaebe8be49
CRs-Fixed: 1110061
This commit is contained in:
Kapil Gupta
2016-12-11 18:43:12 +05:30
gecommit door qcabuildsw
bovenliggende 086c6206de
commit 94ca6f67f6
6 gewijzigde bestanden met toevoegingen van 255 en 18 verwijderingen

Bestand weergeven

@@ -878,6 +878,29 @@ typedef QDF_STATUS (*tpWLAN_SAPEventCB)(tpSap_Event pSapEvent,
void *pUsrContext);
uint8_t wlansap_get_state(void *p_cds_gctx);
/**
* wlansap_is_channel_in_nol_list() - This API checks if channel is
* in nol list
* @ctx: context pointer
* @channel: channel
* @chanBondState: channel bonding state
*
* Return: True/False
*/
bool wlansap_is_channel_in_nol_list(void *p_cds_gctx, uint8_t channel_no,
ePhyChanBondState chanBondState);
/**
* wlansap_is_channel_leaking_in_nol() - This API checks if channel is leaking
* in nol list
* @ctx: context pointer
* @channel: channel
* @chan_bw: channel bandwidth
*
* Return: True/False
*/
bool wlansap_is_channel_leaking_in_nol(void *ctx, uint8_t channel,
uint8_t chan_bw);
QDF_STATUS wlansap_start_bss(void *p_cds_gctx,
tpWLAN_SAPEventCB pSapEventCallback,
tsap_Config_t *pConfig, void *pUsrContext);