qcacld-3.0: Refine API sap_is_auto_channel_select()

See change "qcacld-3.0: Refine API wlansap_open()" for the API
history.  Update sap_is_auto_channel_select() to use the true
struct pointer type.

Change-Id: I9a233ba67f773edce6a866dc0664f92cf3610c81
CRs-Fixed: 2116267
This commit is contained in:
Jeff Johnson 2017-09-25 15:22:18 -07:00 • committed by snandini
commit bc110a7828
2 changed files with 4 additions and 6 deletions

View file

@ -860,11 +860,11 @@ void sap_cleanup_channel_list(struct sap_context *pSapCtx);
/**
* sap_is_auto_channel_select() - is channel AUTO_CHANNEL_SELECT
* @pvos_gctx: Pointer to vos global context structure
* @sapcontext: Pointer to the SAP context
*
* Return: true on AUTO_CHANNEL_SELECT, false otherwise
*/
bool sap_is_auto_channel_select(void *pvos_gctx);
bool sap_is_auto_channel_select(struct sap_context *sapcontext);
QDF_STATUS wlansap_global_init(void);
QDF_STATUS wlansap_global_deinit(void);

View file

@ -2153,14 +2153,12 @@ wlansap_set_dfs_restrict_japan_w53(tHalHandle hHal, uint8_t disable_Dfs_W53)
return status;
}
bool sap_is_auto_channel_select(void *pvos_gctx)
bool sap_is_auto_channel_select(struct sap_context *sapcontext)
{
struct sap_context *sapcontext = CDS_GET_SAP_CB(pvos_gctx);
if (NULL == sapcontext) {
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
"%s: Invalid SAP pointer", __func__);
return 0;
return false;
}
return sapcontext->channel == AUTO_CHANNEL_SELECT;
}