فهرست منبع

qcacld-3.0: Refine API wlan_sap_set_pre_cac_complete_status()

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

Change-Id: I814af33f02c847e542bb3c1b87d1f8da3cd82ff1
CRs-Fixed: 2116267
Jeff Johnson 7 سال پیش
والد
کامیت
a68cc538cd
2فایلهای تغییر یافته به همراه14 افزوده شده و 13 حذف شده
  1. 12 1
      core/sap/inc/sap_api.h
  2. 2 12
      core/sap/src/sap_module.c

+ 12 - 1
core/sap/inc/sap_api.h

@@ -971,7 +971,18 @@ QDF_STATUS wlan_sap_set_pre_cac_status(struct sap_context *sap_ctx,
 QDF_STATUS wlan_sap_set_chan_before_pre_cac(struct sap_context *sap_ctx,
 					    uint8_t chan_before_pre_cac);
 
-QDF_STATUS wlan_sap_set_pre_cac_complete_status(void *ctx, bool status);
+/**
+ * wlan_sap_set_pre_cac_complete_status() - Sets pre cac complete status
+ * @sap_ctx: SAP context
+ * @status: Status of pre cac complete
+ *
+ * Sets the status of pre cac i.e., whether pre cac is complete or not
+ *
+ * Return: QDF_STATUS
+ */
+QDF_STATUS wlan_sap_set_pre_cac_complete_status(struct sap_context *sap_ctx,
+						bool status);
+
 bool wlan_sap_is_pre_cac_active(tHalHandle handle);
 QDF_STATUS wlan_sap_get_pre_cac_vdev_id(tHalHandle handle, uint8_t *vdev_id);
 #ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH

+ 2 - 12
core/sap/src/sap_module.c

@@ -1644,19 +1644,9 @@ QDF_STATUS wlan_sap_set_chan_before_pre_cac(struct sap_context *sap_ctx,
 	return QDF_STATUS_SUCCESS;
 }
 
-/**
- * wlan_sap_set_pre_cac_complete_status() - Sets pre cac complete status
- * @ctx: SAP context
- * @status: Status of pre cac complete
- *
- * Sets the status of pre cac i.e., whether pre cac is complete or not
- *
- * Return: QDF_STATUS
- */
-QDF_STATUS wlan_sap_set_pre_cac_complete_status(void *ctx, bool status)
+QDF_STATUS wlan_sap_set_pre_cac_complete_status(struct sap_context *sap_ctx,
+						bool status)
 {
-	struct sap_context *sap_ctx = CDS_GET_SAP_CB(ctx);
-
 	if (!sap_ctx) {
 		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
 			  "%s: Invalid SAP pointer", __func__);