Browse Source

qcacld-3.0: Refine API wlansap_set_dfs_nol()

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

Change-Id: I762ef985ee5ec40c79d4cdaafc4e89710edb2366
CRs-Fixed: 2116267
Jeff Johnson 7 years ago
parent
commit
b3c4f7e460
2 changed files with 6 additions and 5 deletions
  1. 2 1
      core/sap/inc/sap_api.h
  2. 4 4
      core/sap/src/sap_module.c

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

@@ -1314,7 +1314,8 @@ QDF_STATUS wlansap_get_dfs_nol(void *pSapCtx, uint8_t *nol, uint32_t *nol_len);
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlansap_set_dfs_nol(void *sap_ctx, eSapDfsNolType conf);
+QDF_STATUS wlansap_set_dfs_nol(struct sap_context *sap_ctx,
+			       eSapDfsNolType conf);
 
 /**
  * wlan_sap_set_vendor_acs() - Set vendor specific acs in sap context

+ 4 - 4
core/sap/src/sap_module.c

@@ -2607,22 +2607,22 @@ QDF_STATUS wlansap_get_dfs_nol(void *pSapCtx, uint8_t *nol, uint32_t *nol_len)
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS wlansap_set_dfs_nol(void *psap_ctx, eSapDfsNolType conf)
+QDF_STATUS wlansap_set_dfs_nol(struct sap_context *sap_ctx,
+			       eSapDfsNolType conf)
 {
-	struct sap_context *sap_ctx = psap_ctx;
 	void *hal = NULL;
 	tpAniSirGlobal mac = NULL;
 
 	if (!sap_ctx) {
 		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
-			  "%s: Invalid SAP pointer from p_cds_gctx", __func__);
+			  "%s: Invalid SAP pointer", __func__);
 		return QDF_STATUS_E_FAULT;
 	}
 
 	hal = CDS_GET_HAL_CB();
 	if (!hal) {
 		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
-			  "%s: Invalid HAL pointer from p_cds_gctx", __func__);
+			  "%s: Invalid HAL pointer", __func__);
 		return QDF_STATUS_E_FAULT;
 	}