Ver Fonte

qcacld-3.0: Remove sessionID field from tSapCtxList

The sessionID field in tSapCtxList is written but never read, hence it
serves no purpose, so remove it.

Change-Id: I0c7a134dba75be905f85016a3db026132bbfa348
CRs-Fixed: 2364099
Jeff Johnson há 6 anos atrás
pai
commit
405c998276
3 ficheiros alterados com 0 adições e 7 exclusões
  1. 0 1
      core/sap/inc/sap_api.h
  2. 0 4
      core/sap/src/sap_fsm.c
  3. 0 2
      core/sap/src/sap_module.c

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

@@ -722,7 +722,6 @@ typedef struct sSapDfsInfo {
 } tSapDfsInfo;
 
 typedef struct tagSapCtxList {
-	uint8_t sessionID;
 	void *sap_context;
 	enum QDF_OPMODE sapPersona;
 } tSapCtxList, tpSapCtxList;

+ 0 - 4
core/sap/src/sap_fsm.c

@@ -1248,8 +1248,6 @@ QDF_STATUS sap_set_session_param(mac_handle_t mac_handle,
 		return status;
 	}
 
-	mac_ctx->sap.sapCtxList[sapctx->sessionId].sessionID =
-				sapctx->sessionId;
 	mac_ctx->sap.sapCtxList[sapctx->sessionId].sap_context = sapctx;
 	mac_ctx->sap.sapCtxList[sapctx->sessionId].sapPersona =
 				sapctx->csr_roamProfile.csrPersona;
@@ -1271,8 +1269,6 @@ QDF_STATUS sap_clear_session_param(mac_handle_t mac_handle,
 
 	sap_release_vdev_ref(sapctx);
 
-	mac_ctx->sap.sapCtxList[sapctx->sessionId].sessionID =
-		CSR_SESSION_ID_INVALID;
 	mac_ctx->sap.sapCtxList[sapctx->sessionId].sap_context = NULL;
 	mac_ctx->sap.sapCtxList[sapctx->sessionId].sapPersona =
 		QDF_MAX_NO_OF_MODE;

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

@@ -700,8 +700,6 @@ QDF_STATUS wlansap_start_bss(struct sap_context *sap_ctx,
 	pmac->sap.sapCtxList[sap_ctx->sessionId].sap_context = sap_ctx;
 	pmac->sap.sapCtxList[sap_ctx->sessionId].sapPersona =
 		sap_ctx->csr_roamProfile.csrPersona;
-	pmac->sap.sapCtxList[sap_ctx->sessionId].sessionID =
-		sap_ctx->sessionId;
 	pmac->sap.SapDfsInfo.reduced_beacon_interval =
 				pConfig->reduced_beacon_interval;