qcacld-3.0: Refine API wlan_sap_set_chan_before_pre_cac()
See change "qcacld-3.0: Refine API wlansap_open()" for the API history. Update wlan_sap_set_chan_before_pre_cac() to use the true struct pointer type. Change-Id: I4dd1a526645317560a2929ddc4fed496d71867d1 CRs-Fixed: 2116267
This commit is contained in:
@@ -959,8 +959,18 @@ QDF_STATUS wlan_sap_update_next_channel(struct sap_context *sap_ctx,
|
|||||||
QDF_STATUS wlan_sap_set_pre_cac_status(struct sap_context *sap_ctx,
|
QDF_STATUS wlan_sap_set_pre_cac_status(struct sap_context *sap_ctx,
|
||||||
bool status, tHalHandle handle);
|
bool status, tHalHandle handle);
|
||||||
|
|
||||||
QDF_STATUS wlan_sap_set_chan_before_pre_cac(void *ctx,
|
/**
|
||||||
|
* wlan_sap_set_chan_before_pre_cac() - Save the channel before pre cac
|
||||||
|
* @sap_ctx: SAP context
|
||||||
|
* @chan_before_pre_cac: Channel before pre cac
|
||||||
|
*
|
||||||
|
* Saves the channel that was in use before pre cac operation
|
||||||
|
*
|
||||||
|
* Return: QDF_STATUS
|
||||||
|
*/
|
||||||
|
QDF_STATUS wlan_sap_set_chan_before_pre_cac(struct sap_context *sap_ctx,
|
||||||
uint8_t chan_before_pre_cac);
|
uint8_t chan_before_pre_cac);
|
||||||
|
|
||||||
QDF_STATUS wlan_sap_set_pre_cac_complete_status(void *ctx, bool status);
|
QDF_STATUS wlan_sap_set_pre_cac_complete_status(void *ctx, bool status);
|
||||||
bool wlan_sap_is_pre_cac_active(tHalHandle handle);
|
bool wlan_sap_is_pre_cac_active(tHalHandle handle);
|
||||||
QDF_STATUS wlan_sap_get_pre_cac_vdev_id(tHalHandle handle, uint8_t *vdev_id);
|
QDF_STATUS wlan_sap_get_pre_cac_vdev_id(tHalHandle handle, uint8_t *vdev_id);
|
||||||
|
@@ -1631,20 +1631,9 @@ QDF_STATUS wlan_sap_set_pre_cac_status(struct sap_context *sap_ctx,
|
|||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
QDF_STATUS wlan_sap_set_chan_before_pre_cac(struct sap_context *sap_ctx,
|
||||||
* wlan_sap_set_chan_before_pre_cac() - Save the channel before pre cac
|
|
||||||
* @ctx: SAP context
|
|
||||||
* @chan_before_pre_cac: Channel before pre cac
|
|
||||||
*
|
|
||||||
* Saves the channel that was in use before pre cac operation
|
|
||||||
*
|
|
||||||
* Return: QDF_STATUS
|
|
||||||
*/
|
|
||||||
QDF_STATUS wlan_sap_set_chan_before_pre_cac(void *ctx,
|
|
||||||
uint8_t chan_before_pre_cac)
|
uint8_t chan_before_pre_cac)
|
||||||
{
|
{
|
||||||
struct sap_context *sap_ctx = CDS_GET_SAP_CB(ctx);
|
|
||||||
|
|
||||||
if (!sap_ctx) {
|
if (!sap_ctx) {
|
||||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
|
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
|
||||||
"%s: Invalid SAP pointer", __func__);
|
"%s: Invalid SAP pointer", __func__);
|
||||||
|
Reference in New Issue
Block a user