Ver Fonte

qcacld-3.0: Refine API wlan_sap_getstation_ie_information()

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

Change-Id: I7a3be736210ffe44c89dd96c7d70e4fda04938c6
CRs-Fixed: 2116267
Jeff Johnson há 7 anos atrás
pai
commit
617fe64a3d
2 ficheiros alterados com 19 adições e 20 exclusões
  1. 15 2
      core/sap/inc/sap_api.h
  2. 4 18
      core/sap/src/sap_module.c

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

@@ -921,8 +921,21 @@ QDF_STATUS wlansap_set_channel_change_with_csa(void *p_cds_gctx,
 	uint32_t targetChannel, enum phy_ch_width target_bw, bool strict);
 QDF_STATUS wlansap_set_key_sta(void *p_cds_gctx,
 	tCsrRoamSetKey *pSetKeyInfo);
-QDF_STATUS wlan_sap_getstation_ie_information(void *p_cds_gctx,
-	uint32_t *pLen, uint8_t *pBuf);
+
+/**
+ * wlan_sap_getstation_ie_information() - RSNIE Population
+ * @sap_ctx: Pointer to the SAP context
+ * @len: Length of @buf
+ * @buf: RSNIE IE data
+ *
+ *  Populate RSN IE from CSR to HDD context
+ *
+ * Return: QDF_STATUS enumeration
+ */
+
+QDF_STATUS wlan_sap_getstation_ie_information(struct sap_context *sap_ctx,
+					      uint32_t *len, uint8_t *buf);
+
 QDF_STATUS wlansap_clear_acl(void *p_cds_gctx);
 QDF_STATUS wlansap_get_acl_accept_list(void *p_cds_gctx,
 	 struct qdf_mac_addr *pAcceptList, uint8_t *nAcceptList);

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

@@ -1634,29 +1634,15 @@ QDF_STATUS wlansap_set_key_sta(void *pCtx, tCsrRoamSetKey *pSetKeyInfo)
 	return qdf_status;
 }
 
-/**
- * wlan_sap_getstation_ie_information() - RSNIE Population
- *
- * @ctx: Global context
- * @len: Length of @buf
- * @buf: RSNIE IE data
- *
- *  Populate RSN IE from CSR to HDD context
- *
- * Return: QDF_STATUS enumeration
- */
-
-QDF_STATUS
-wlan_sap_getstation_ie_information
-	(void *ctx, uint32_t *len, uint8_t *buf) {
+QDF_STATUS wlan_sap_getstation_ie_information(struct sap_context *sap_ctx,
+					      uint32_t *len, uint8_t *buf)
+{
 	QDF_STATUS qdf_status = QDF_STATUS_E_FAILURE;
-	struct sap_context *sap_ctx = NULL;
 	uint32_t ie_len = 0;
 
-	sap_ctx = CDS_GET_SAP_CB(ctx);
 	if (NULL == sap_ctx) {
 		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
-			FL("Invalid SAP pointer from pCtx"));
+			FL("Invalid SAP pointer"));
 		return QDF_STATUS_E_FAULT;
 	}