mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 21:19:04 -04:00
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:
parent
a68cc538cd
commit
bc110a7828
2 changed files with 4 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue