Ver Fonte

qcacld-3.0: Refine API wlan_sap_set_pre_cac_status()

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

Change-Id: Ic9ee7bfa01eb01c7c8c6b665c25300611fb7edde
CRs-Fixed: 2116267
Jeff Johnson há 7 anos atrás
pai
commit
108566e1e1
2 ficheiros alterados com 15 adições e 15 exclusões
  1. 13 2
      core/sap/inc/sap_api.h
  2. 2 13
      core/sap/src/sap_module.c

+ 13 - 2
core/sap/inc/sap_api.h

@@ -946,8 +946,19 @@ QDF_STATUS wlan_sap_update_next_channel(struct sap_context *sap_ctx,
 					uint8_t channel,
 					enum phy_ch_width chan_bw);
 
-QDF_STATUS wlan_sap_set_pre_cac_status(void *ctx, bool status,
-		tHalHandle handle);
+/**
+ * wlan_sap_set_pre_cac_status() - Set the pre cac status
+ * @sap_ctx: SAP context
+ * @status: Status of pre cac
+ * @handle: Global MAC handle
+ *
+ * Sets the pre cac status in the MAC context and updates the state
+ *
+ * Return: QDF_STATUS
+ */
+QDF_STATUS wlan_sap_set_pre_cac_status(struct sap_context *sap_ctx,
+				       bool status, tHalHandle handle);
+
 QDF_STATUS wlan_sap_set_chan_before_pre_cac(void *ctx,
 		uint8_t chan_before_pre_cac);
 QDF_STATUS wlan_sap_set_pre_cac_complete_status(void *ctx, bool status);

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

@@ -1607,20 +1607,9 @@ QDF_STATUS wlan_sap_update_next_channel(struct sap_context *sap_ctx,
 	return QDF_STATUS_SUCCESS;
 }
 
-/**
- * wlan_sap_set_pre_cac_status() - Set the pre cac status
- * @ctx: SAP context
- * @status: Status of pre cac
- * @handle: Global MAC handle
- *
- * Sets the pre cac status in the MAC context and updates the state
- *
- * Return: QDF_STATUS
- */
-QDF_STATUS wlan_sap_set_pre_cac_status(void *ctx, bool status,
-					tHalHandle handle)
+QDF_STATUS wlan_sap_set_pre_cac_status(struct sap_context *sap_ctx,
+				       bool status, tHalHandle handle)
 {
-	struct sap_context *sap_ctx = CDS_GET_SAP_CB(ctx);
 	tpAniSirGlobal mac_ctx = PMAC_STRUCT(handle);
 
 	if (!mac_ctx) {