Jelajahi Sumber

qcacld-3.0: Remove pStaAddIE from the SAP context

Currently the SAP has logic to extract and locally save a collection
of Additional IEs. But this is legacy code inherited from a version
of the driver that supported in-driver SAP, and now the SAP
functionality is handled primarily by hostapd. Since this local copy
of the Additional IEs is never used, remove it.

Change-Id: I9bb1f7d44dfdeb4c908016aad365ee1b94a97b29
CRs-Fixed: 2114375
Jeff Johnson 7 tahun lalu
induk
melakukan
a0fa814f93
2 mengubah file dengan 0 tambahan dan 12 penghapusan
  1. 0 10
      core/sap/src/sap_api_link_cntl.c
  2. 0 2
      core/sap/src/sap_internal.h

+ 0 - 10
core/sap/src/sap_api_link_cntl.c

@@ -803,10 +803,6 @@ wlansap_roam_process_infra_assoc_ind(struct sap_context *sap_ctx,
 	if (sap_ctx->nStaWPARSnReqIeLength)
 		qdf_mem_copy(sap_ctx->pStaWpaRsnReqIE, csr_roam_info->prsnIE,
 			     sap_ctx->nStaWPARSnReqIeLength);
-	sap_ctx->nStaAddIeLength = csr_roam_info->addIELen;
-	if (sap_ctx->nStaAddIeLength)
-		qdf_mem_copy(sap_ctx->pStaAddIE, csr_roam_info->paddIE,
-			     sap_ctx->nStaAddIeLength);
 	sap_ctx->SapQosCfg.WmmIsEnabled = csr_roam_info->wmmEnabledSta;
 	/* MAC filtering */
 	qdf_status = sap_is_peer_mac_allowed(sap_ctx,
@@ -1122,12 +1118,6 @@ wlansap_roam_callback(void *ctx, tCsrRoamInfo *csr_roam_info, uint32_t roamId,
 				     csr_roam_info->prsnIE,
 				     sap_ctx->nStaWPARSnReqIeLength);
 
-		sap_ctx->nStaAddIeLength = csr_roam_info->addIELen;
-		if (sap_ctx->nStaAddIeLength)
-			qdf_mem_copy(sap_ctx->pStaAddIE,
-				     csr_roam_info->paddIE,
-				     sap_ctx->nStaAddIeLength);
-
 		sap_ctx->SapQosCfg.WmmIsEnabled =
 			csr_roam_info->wmmEnabledSta;
 		/* Fill in the event structure */

+ 0 - 2
core/sap/src/sap_internal.h

@@ -193,8 +193,6 @@ struct sap_context {
 	uint8_t pStaWpaRsnReqIE[MAX_ASSOC_IND_IE_LEN];
 	tSirRSNie APWPARSNIEs;
 
-	uint32_t nStaAddIeLength;
-	uint8_t pStaAddIE[MAX_ASSOC_IND_IE_LEN];
 	uint8_t *channelList;
 	uint8_t num_of_channel;
 	tSapChannelListInfo SapChnlList;