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
This commit is contained in:
Jeff Johnson
2018-12-08 19:55:42 -08:00
committed by nshrivas
parent 5c859a5110
commit 405c998276
3 changed files with 0 additions and 7 deletions

View File

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

View File

@@ -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;

View File

@@ -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;