mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
qcacld-3.0: Refine API wlansap_acs_chselect()
See change "qcacld-3.0: Refine API wlansap_open()" for the API history. Update wlansap_acs_chselect() to use the true struct pointer type. Change-Id: I954c519954207c5cc487296dd42b8b2b46c08173 CRs-Fixed: 2116267
This commit is contained in:
parent
bc110a7828
commit
630fd6a3c3
2 changed files with 26 additions and 28 deletions
|
|
@ -1328,10 +1328,26 @@ void wlansap_populate_del_sta_params(const uint8_t *mac,
|
|||
uint16_t reason_code,
|
||||
uint8_t subtype,
|
||||
struct tagCsrDelStaParams *pDelStaParams);
|
||||
QDF_STATUS wlansap_acs_chselect(void *pvos_gctx,
|
||||
tpWLAN_SAPEventCB pacs_event_callback,
|
||||
tsap_Config_t *pconfig,
|
||||
void *pusr_context);
|
||||
|
||||
/**
|
||||
* wlansap_acs_chselect() - Initiates acs channel selection
|
||||
* @sap_context: Pointer to SAP context structure
|
||||
* @pacs_event_callback: Callback function in hdd called by sap
|
||||
* to inform hdd about channel selection result
|
||||
* @pconfig: Pointer to configuration structure
|
||||
* passed down from hdd
|
||||
* @pusr_context: Parameter that will be passed back in all
|
||||
* the sap callback events.
|
||||
*
|
||||
* This function serves as an api for hdd to initiate acs scan pre
|
||||
* start bss.
|
||||
*
|
||||
* Return: The QDF_STATUS code associated with performing the operation.
|
||||
*/
|
||||
QDF_STATUS wlansap_acs_chselect(struct sap_context *sap_context,
|
||||
tpWLAN_SAPEventCB pacs_event_callback,
|
||||
tsap_Config_t *pconfig,
|
||||
void *pusr_context);
|
||||
|
||||
uint32_t wlansap_get_chan_width(void *cds_ctx);
|
||||
|
||||
|
|
|
|||
|
|
@ -2704,37 +2704,19 @@ void wlansap_populate_del_sta_params(const uint8_t *mac,
|
|||
MAC_ADDR_ARRAY(pDelStaParams->peerMacAddr.bytes));
|
||||
}
|
||||
|
||||
/**
|
||||
* wlansap_acs_chselect() - Initiates acs channel selection
|
||||
* @pvos_gctx: Pointer to vos global context structure
|
||||
* @pacs_event_callback: Callback function in hdd called by sap
|
||||
* to inform hdd about channel section result
|
||||
* @pconfig: Pointer to configuration structure
|
||||
* passed down from hdd
|
||||
* @pusr_context: Parameter that will be passed back in all
|
||||
* the sap callback events.
|
||||
*
|
||||
* This function serves as an api for hdd to initiate acs scan pre
|
||||
* start bss.
|
||||
*
|
||||
* Return: The QDF_STATUS code associated with performing the operation.
|
||||
*/
|
||||
QDF_STATUS
|
||||
wlansap_acs_chselect(void *pvos_gctx,
|
||||
tpWLAN_SAPEventCB pacs_event_callback,
|
||||
tsap_Config_t *pconfig,
|
||||
void *pusr_context)
|
||||
QDF_STATUS wlansap_acs_chselect(struct sap_context *sap_context,
|
||||
tpWLAN_SAPEventCB pacs_event_callback,
|
||||
tsap_Config_t *pconfig,
|
||||
void *pusr_context)
|
||||
{
|
||||
struct sap_context *sap_context = NULL;
|
||||
tHalHandle h_hal = NULL;
|
||||
QDF_STATUS qdf_status = QDF_STATUS_E_FAILURE;
|
||||
tpAniSirGlobal pmac = NULL;
|
||||
tWLAN_SAPEvent sapEvent; /* State machine event */
|
||||
|
||||
sap_context = CDS_GET_SAP_CB(pvos_gctx);
|
||||
if (NULL == sap_context) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
|
||||
"%s: Invalid SAP pointer from pvos_gctx", __func__);
|
||||
"%s: Invalid SAP pointer", __func__);
|
||||
|
||||
return QDF_STATUS_E_FAULT;
|
||||
}
|
||||
|
|
@ -2742,7 +2724,7 @@ wlansap_acs_chselect(void *pvos_gctx,
|
|||
h_hal = (tHalHandle)CDS_GET_HAL_CB();
|
||||
if (NULL == h_hal) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
|
||||
"%s: Invalid MAC context from pvosGCtx", __func__);
|
||||
"%s: Invalid MAC context", __func__);
|
||||
return QDF_STATUS_E_FAULT;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue