qcacld-3.0: Replace pSessionEntry with pe_session

Per the Linux coding style both mixed-case names and so-called
Hungarian notation are frowned upon. There are multiple variations of
the identifier "pSessionEntry" currently in use, so replace them with
pe_session everywhere they occur in the driver.

Change-Id: I6cc37504bf9e8821c0e1c3d99e4f97a57aaba24c
CRs-Fixed: 2360166
diff --git a/core/mac/src/pe/lim/lim_admit_control.c b/core/mac/src/pe/lim/lim_admit_control.c
index 14390c6..f79f232 100644
--- a/core/mac/src/pe/lim/lim_admit_control.c
+++ b/core/mac/src/pe/lim/lim_admit_control.c
@@ -181,13 +181,13 @@
 
 static QDF_STATUS
 lim_validate_tspec(tpAniSirGlobal mac,
-		   tSirMacTspecIE *pTspec, struct pe_session *psessionEntry)
+		   tSirMacTspecIE *pTspec, struct pe_session *pe_session)
 {
 	QDF_STATUS retval = QDF_STATUS_SUCCESS;
 
 	switch (pTspec->tsinfo.traffic.accessPolicy) {
 	case SIR_MAC_ACCESSPOLICY_EDCA:
-		retval = lim_validate_tspec_edca(mac, pTspec, psessionEntry);
+		retval = lim_validate_tspec_edca(mac, pTspec, pe_session);
 		if (retval != QDF_STATUS_SUCCESS)
 			pe_warn("EDCA tspec invalid");
 			break;
@@ -221,7 +221,7 @@
 lim_compute_mean_bw_used(tpAniSirGlobal mac,
 			 uint32_t *pBw,
 			 uint32_t phyMode,
-			 tpLimTspecInfo pTspecInfo, struct pe_session *psessionEntry)
+			 tpLimTspecInfo pTspecInfo, struct pe_session *pe_session)
 {
 	uint32_t ctspec;
 	*pBw = 0;
@@ -229,7 +229,7 @@
 		if (pTspecInfo->inuse) {
 			tpDphHashNode pSta =
 				dph_get_hash_entry(mac, pTspecInfo->assocId,
-						   &psessionEntry->dph.dphHashTable);
+						   &pe_session->dph.dphHashTable);
 			if (pSta == NULL) {
 				/* maybe we should delete the tspec?? */
 				pe_err("Tspec: %d assocId: %d dphNode not found",
@@ -335,7 +335,7 @@
 
 static QDF_STATUS lim_admit_policy(tpAniSirGlobal mac,
 				      tSirMacTspecIE *pTspec,
-				      struct pe_session *psessionEntry)
+				      struct pe_session *pe_session)
 {
 	QDF_STATUS retval = QDF_STATUS_E_FAILURE;
 	tpLimAdmitPolicyInfo pAdmitPolicy = &mac->lim.admitPolicyInfo;
@@ -350,7 +350,7 @@
 							   &mac->lim.
 							   admitPolicyInfo,
 							   &mac->lim.tspecInfo[0],
-							   psessionEntry);
+							   pe_session);
 		if (retval != QDF_STATUS_SUCCESS)
 			pe_err("rejected by BWFactor policy");
 			break;
@@ -605,11 +605,11 @@
 static QDF_STATUS
 lim_validate_access_policy(tpAniSirGlobal mac,
 			   uint8_t accessPolicy,
-			   uint16_t assocId, struct pe_session *psessionEntry)
+			   uint16_t assocId, struct pe_session *pe_session)
 {
 	QDF_STATUS retval = QDF_STATUS_E_FAILURE;
 	tpDphHashNode pSta =
-		dph_get_hash_entry(mac, assocId, &psessionEntry->dph.dphHashTable);
+		dph_get_hash_entry(mac, assocId, &pe_session->dph.dphHashTable);
 
 	if ((pSta == NULL) || (!pSta->valid)) {
 		pe_err("invalid station address passed");
@@ -648,7 +648,7 @@
  * @alloc:              Allocate bandwidth for this tspec
  * @pSch:               Schedule IE
  * @pTspecIdx:          TSPEC index
- * @psessionEntry:      PE Session Entry
+ * @pe_session:      PE Session Entry
  *
  * Determine if STA with the specified TSPEC can be admitted. If it can,
  * a schedule element is provided
@@ -658,7 +658,7 @@
 QDF_STATUS lim_admit_control_add_ts(tpAniSirGlobal mac, uint8_t *pAddr,
 		tSirAddtsReqInfo *pAddts, tSirMacQosCapabilityStaIE *pQos,
 		uint16_t assocId, uint8_t alloc, tSirMacScheduleIE *pSch,
-		uint8_t *pTspecIdx, struct pe_session *psessionEntry)
+		uint8_t *pTspecIdx, struct pe_session *pe_session)
 {
 	tpLimTspecInfo pTspecInfo;
 	QDF_STATUS retval;
@@ -688,7 +688,7 @@
 		return QDF_STATUS_E_FAILURE;
 	}
 	/* check that the tspec's are well formed and acceptable */
-	if (lim_validate_tspec(mac, &pAddts->tspec, psessionEntry) !=
+	if (lim_validate_tspec(mac, &pAddts->tspec, pe_session) !=
 	    QDF_STATUS_SUCCESS) {
 		pe_warn("tspec validation failed");
 		return QDF_STATUS_E_FAILURE;
@@ -700,7 +700,7 @@
 		return QDF_STATUS_E_FAILURE;
 	}
 	/* determine if the tspec can be admitted or not based on current policy */
-	if (lim_admit_policy(mac, &pAddts->tspec, psessionEntry) != QDF_STATUS_SUCCESS) {
+	if (lim_admit_policy(mac, &pAddts->tspec, pe_session) != QDF_STATUS_SUCCESS) {
 		pe_warn("tspec rejected by admit control policy");
 		return QDF_STATUS_E_FAILURE;
 	}
@@ -723,7 +723,7 @@
 	/* check that we are in the proper mode to deal with the tspec type */
 	if (lim_validate_access_policy
 		    (mac, (uint8_t) pAddts->tspec.tsinfo.traffic.accessPolicy, assocId,
-		    psessionEntry) != QDF_STATUS_SUCCESS) {
+		    pe_session) != QDF_STATUS_SUCCESS) {
 		pe_warn("AccessPolicy: %d is not valid in current mode",
 			pAddts->tspec.tsinfo.traffic.accessPolicy);
 		return QDF_STATUS_E_FAILURE;
@@ -844,9 +844,9 @@
 	struct scheduler_msg msg = {0};
 	tpAddTsParams pAddTsParam;
 
-	struct pe_session *psessionEntry = pe_find_session_by_session_id(mac, sessionId);
+	struct pe_session *pe_session = pe_find_session_by_session_id(mac, sessionId);
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Unable to get Session for session Id: %d",
 			sessionId);
 		return QDF_STATUS_E_FAILURE;
@@ -860,14 +860,14 @@
 	pAddTsParam->tspecIdx = tspecIdx;
 	qdf_mem_copy(&pAddTsParam->tspec, &tspecIE, sizeof(tSirMacTspecIE));
 	pAddTsParam->sessionId = sessionId;
-	pAddTsParam->sme_session_id = psessionEntry->smeSessionId;
+	pAddTsParam->sme_session_id = pe_session->smeSessionId;
 
 #ifdef FEATURE_WLAN_ESE
 	pAddTsParam->tsm_interval = tsm_interval;
 #endif
 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
 	if (mac->mlme_cfg->lfr.lfr3_roaming_offload &&
-	    psessionEntry->is11Rconnection)
+	    pe_session->is11Rconnection)
 		pAddTsParam->setRICparams = 1;
 #endif
 
@@ -908,7 +908,7 @@
 {
 	struct scheduler_msg msg = {0};
 	tpDelTsParams pDelTsParam;
-	struct pe_session *psessionEntry = NULL;
+	struct pe_session *pe_session = NULL;
 
 	pDelTsParam = qdf_mem_malloc(sizeof(tDelTsParams));
 	if (!pDelTsParam)
@@ -923,20 +923,20 @@
 	pDelTsParam->tspecIdx = tspecIdx;
 	qdf_mem_copy(&pDelTsParam->bssId, bssId, sizeof(tSirMacAddr));
 
-	psessionEntry = pe_find_session_by_session_id(mac, sessionId);
-	if (psessionEntry == NULL) {
+	pe_session = pe_find_session_by_session_id(mac, sessionId);
+	if (pe_session == NULL) {
 		pe_err("Session does Not exist with given sessionId: %d",
 			       sessionId);
 		goto err;
 	}
-	pDelTsParam->sessionId = psessionEntry->smeSessionId;
+	pDelTsParam->sessionId = pe_session->smeSessionId;
 	pDelTsParam->userPrio = delts.wmeTspecPresent ?
 			delts.tspec.tsinfo.traffic.userPrio :
 			delts.tsinfo.traffic.userPrio;
 
 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
 	if (mac->mlme_cfg->lfr.lfr3_roaming_offload &&
-	    psessionEntry->is11Rconnection) {
+	    pe_session->is11Rconnection) {
 		qdf_mem_copy(&pDelTsParam->delTsInfo, &delts,
 			     sizeof(tSirDeltsReqInfo));
 		pDelTsParam->setRICparams = 1;
@@ -973,7 +973,7 @@
 	uint16_t assocId = 0;
 	tSirMacAddr peerMacAddr;
 	uint8_t rspReqd = 1;
-	struct pe_session *psessionEntry = NULL;
+	struct pe_session *pe_session = NULL;
 
 	/* Need to process all the deferred messages enqueued
 	 * since sending the WMA_ADD_TS_REQ.
@@ -989,13 +989,13 @@
 
 	/* 090803: Use pe_find_session_by_session_id() to obtain the PE session context */
 	/* from the sessionId in the Rsp Msg from HAL */
-	psessionEntry = pe_find_session_by_session_id(mac, pAddTsRspMsg->sessionId);
+	pe_session = pe_find_session_by_session_id(mac, pAddTsRspMsg->sessionId);
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session does Not exist with given sessionId: %d",
 			       pAddTsRspMsg->sessionId);
 		lim_send_sme_addts_rsp(mac, rspReqd, eSIR_SME_ADDTS_RSP_FAILED,
-				       psessionEntry, pAddTsRspMsg->tspec,
+				       pe_session, pAddTsRspMsg->tspec,
 				       mac->lim.gLimAddtsReq.sessionId,
 				       mac->lim.gLimAddtsReq.transactionId);
 		goto end;
@@ -1005,25 +1005,25 @@
 		pe_debug("Received successful ADDTS response from HAL");
 		/* Use the smesessionId and smetransactionId from the PE session context */
 		lim_send_sme_addts_rsp(mac, rspReqd, eSIR_SME_SUCCESS,
-				       psessionEntry, pAddTsRspMsg->tspec,
-				       psessionEntry->smeSessionId,
-				       psessionEntry->transactionId);
+				       pe_session, pAddTsRspMsg->tspec,
+				       pe_session->smeSessionId,
+				       pe_session->transactionId);
 		goto end;
 	} else {
 		pe_debug("Received failure ADDTS response from HAL");
 		/* Send DELTS action frame to AP */
 		/* 090803: Get peer MAC addr from session */
-		sir_copy_mac_addr(peerMacAddr, psessionEntry->bssId);
+		sir_copy_mac_addr(peerMacAddr, pe_session->bssId);
 
 		/* 090803: Add the SME Session ID */
 		lim_send_delts_req_action_frame(mac, peerMacAddr, rspReqd,
 						&pAddTsRspMsg->tspec.tsinfo,
-						&pAddTsRspMsg->tspec, psessionEntry);
+						&pAddTsRspMsg->tspec, pe_session);
 
 		/* Delete TSPEC */
 		/* 090803: Pull the hash table from the session */
 		pSta = dph_lookup_assoc_id(mac, pAddTsRspMsg->staIdx, &assocId,
-					   &psessionEntry->dph.dphHashTable);
+					   &pe_session->dph.dphHashTable);
 		if (pSta != NULL)
 			lim_admit_control_delete_ts(mac, assocId,
 						    &pAddTsRspMsg->tspec.tsinfo,
@@ -1034,9 +1034,9 @@
 		/* Send SME_ADDTS_RSP */
 		/* 090803: Use the smesessionId and smetransactionId from the PE session context */
 		lim_send_sme_addts_rsp(mac, rspReqd, eSIR_SME_ADDTS_RSP_FAILED,
-				       psessionEntry, pAddTsRspMsg->tspec,
-				       psessionEntry->smeSessionId,
-				       psessionEntry->transactionId);
+				       pe_session, pAddTsRspMsg->tspec,
+				       pe_session->smeSessionId,
+				       pe_session->transactionId);
 		goto end;
 	}
 
diff --git a/core/mac/src/pe/lim/lim_aid_mgmt.c b/core/mac/src/pe/lim/lim_aid_mgmt.c
index 0dda298..009307a 100644
--- a/core/mac/src/pe/lim/lim_aid_mgmt.c
+++ b/core/mac/src/pe/lim/lim_aid_mgmt.c
@@ -43,7 +43,7 @@
 /**
  * lim_init_peer_idxpool() -- initializes peer index pool
  * @mac: mac context
- * @pSessionEntry: session entry
+ * @pe_session: session entry
  *
  * This function is called while starting a BSS at AP
  * to initialize AID pool. This may also be called while
@@ -53,12 +53,12 @@
  * Return: None
  */
 
-void lim_init_peer_idxpool(tpAniSirGlobal mac, struct pe_session *pSessionEntry)
+void lim_init_peer_idxpool(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
 	uint8_t i;
 	uint8_t maxAssocSta = mac->lim.maxStation;
 
-	pSessionEntry->gpLimPeerIdxpool[0] = 0;
+	pe_session->gpLimPeerIdxpool[0] = 0;
 
 #ifdef FEATURE_WLAN_TDLS
 	/*
@@ -67,25 +67,25 @@
 	* and get index starting from (DPH_STA_HASH_INDEX_PEER + 1)
 	* (index 2) for TDLS stations;
 	*/
-	if (LIM_IS_STA_ROLE(pSessionEntry)) {
-		pSessionEntry->freePeerIdxHead = DPH_STA_HASH_INDEX_PEER + 1;
+	if (LIM_IS_STA_ROLE(pe_session)) {
+		pe_session->freePeerIdxHead = DPH_STA_HASH_INDEX_PEER + 1;
 	} else
 #endif
 #ifdef QCA_IBSS_SUPPORT
-	if (LIM_IS_IBSS_ROLE(pSessionEntry)) {
-		pSessionEntry->freePeerIdxHead = LIM_START_PEER_IDX;
+	if (LIM_IS_IBSS_ROLE(pe_session)) {
+		pe_session->freePeerIdxHead = LIM_START_PEER_IDX;
 	} else
 #endif
 	{
-		pSessionEntry->freePeerIdxHead = LIM_START_PEER_IDX;
+		pe_session->freePeerIdxHead = LIM_START_PEER_IDX;
 	}
 
-	for (i = pSessionEntry->freePeerIdxHead; i < maxAssocSta; i++) {
-		pSessionEntry->gpLimPeerIdxpool[i] = i + 1;
+	for (i = pe_session->freePeerIdxHead; i < maxAssocSta; i++) {
+		pe_session->gpLimPeerIdxpool[i] = i + 1;
 	}
-	pSessionEntry->gpLimPeerIdxpool[i] = 0;
+	pe_session->gpLimPeerIdxpool[i] = 0;
 
-	pSessionEntry->freePeerIdxTail = i;
+	pe_session->freePeerIdxTail = i;
 
 }
 
@@ -109,7 +109,7 @@
  * @return peerIdx  - assigned peer Station IDx for STA
  */
 
-uint16_t lim_assign_peer_idx(tpAniSirGlobal mac, struct pe_session *pSessionEntry)
+uint16_t lim_assign_peer_idx(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
 	uint16_t peerId;
 
@@ -123,14 +123,14 @@
 
 	/* return head of free list */
 
-	if (pSessionEntry->freePeerIdxHead) {
-		peerId = pSessionEntry->freePeerIdxHead;
-		pSessionEntry->freePeerIdxHead =
-			pSessionEntry->gpLimPeerIdxpool[pSessionEntry->
+	if (pe_session->freePeerIdxHead) {
+		peerId = pe_session->freePeerIdxHead;
+		pe_session->freePeerIdxHead =
+			pe_session->gpLimPeerIdxpool[pe_session->
 							freePeerIdxHead];
-		if (pSessionEntry->freePeerIdxHead == 0)
-			pSessionEntry->freePeerIdxTail = 0;
-		pSessionEntry->gLimNumOfCurrentSTAs++;
+		if (pe_session->freePeerIdxHead == 0)
+			pe_session->freePeerIdxTail = 0;
+		pe_session->gLimNumOfCurrentSTAs++;
 		return peerId;
 	}
 
@@ -160,19 +160,19 @@
 
 void
 lim_release_peer_idx(tpAniSirGlobal mac, uint16_t peerIdx,
-		     struct pe_session *pSessionEntry)
+		     struct pe_session *pe_session)
 {
-	pSessionEntry->gLimNumOfCurrentSTAs--;
+	pe_session->gLimNumOfCurrentSTAs--;
 
 	/* insert at tail of free list */
-	if (pSessionEntry->freePeerIdxTail) {
-		pSessionEntry->gpLimPeerIdxpool[pSessionEntry->
+	if (pe_session->freePeerIdxTail) {
+		pe_session->gpLimPeerIdxpool[pe_session->
 						freePeerIdxTail] =
 			(uint8_t) peerIdx;
-		pSessionEntry->freePeerIdxTail = (uint8_t) peerIdx;
+		pe_session->freePeerIdxTail = (uint8_t) peerIdx;
 	} else {
-		pSessionEntry->freePeerIdxTail =
-			pSessionEntry->freePeerIdxHead = (uint8_t) peerIdx;
+		pe_session->freePeerIdxTail =
+			pe_session->freePeerIdxHead = (uint8_t) peerIdx;
 	}
-	pSessionEntry->gpLimPeerIdxpool[(uint8_t) peerIdx] = 0;
+	pe_session->gpLimPeerIdxpool[(uint8_t) peerIdx] = 0;
 }
diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c
index 3d9de52..52cdff0 100644
--- a/core/mac/src/pe/lim/lim_api.c
+++ b/core/mac/src/pe/lim/lim_api.c
@@ -232,7 +232,7 @@
 	qdf_mem_set(mac->lim.protStaCache,
 		    sizeof(tCacheParams) * LIM_PROT_STA_CACHE_SIZE, 0);
 
-	mac->lim.pSessionEntry = NULL;
+	mac->lim.pe_session = NULL;
 	mac->lim.reAssocRetryAttempt = 0;
 
 }
@@ -1434,13 +1434,13 @@
 
 void
 lim_received_hb_handler(tpAniSirGlobal mac, uint8_t channelId,
-			struct pe_session *psessionEntry)
+			struct pe_session *pe_session)
 {
 	if ((channelId == 0)
-	    || (channelId == psessionEntry->currentOperChannel))
-		psessionEntry->LimRxedBeaconCntDuringHB++;
+	    || (channelId == pe_session->currentOperChannel))
+		pe_session->LimRxedBeaconCntDuringHB++;
 
-	psessionEntry->pmmOffloadInfo.bcnmiss = false;
+	pe_session->pmmOffloadInfo.bcnmiss = false;
 } /*** lim_init_wds_info_params() ***/
 
 /** -------------------------------------------------------------
@@ -1560,7 +1560,7 @@
 QDF_STATUS
 lim_handle_ibss_coalescing(tpAniSirGlobal mac,
 			   tpSchBeaconStruct pBeacon,
-			   uint8_t *pRxPacketInfo, struct pe_session *psessionEntry)
+			   uint8_t *pRxPacketInfo, struct pe_session *pe_session)
 {
 	tpSirMacMgmtHdr pHdr;
 	QDF_STATUS retCode;
@@ -1574,14 +1574,14 @@
 	   4. Encyption type in the beacon does not match with self station
 	 */
 	if ((!pBeacon->capabilityInfo.ibss) ||
-	    lim_cmp_ssid(&pBeacon->ssId, psessionEntry) ||
-	    (psessionEntry->currentOperChannel != pBeacon->channelNumber))
+	    lim_cmp_ssid(&pBeacon->ssId, pe_session) ||
+	    (pe_session->currentOperChannel != pBeacon->channelNumber))
 		retCode = QDF_STATUS_E_INVAL;
-	else if (lim_ibss_enc_type_matched(pBeacon, psessionEntry) != true) {
+	else if (lim_ibss_enc_type_matched(pBeacon, pe_session) != true) {
 		pe_debug("peer privacy: %d peer wpa: %d peer rsn: %d self encType: %d",
 			       pBeacon->capabilityInfo.privacy,
 			       pBeacon->wpaPresent, pBeacon->rsnPresent,
-			       psessionEntry->encryptType);
+			       pe_session->encryptType);
 		retCode = QDF_STATUS_E_INVAL;
 	} else {
 		uint32_t ieLen;
@@ -1594,7 +1594,7 @@
 		pe_debug("BEFORE Coalescing tsfLater val: %d", tsfLater);
 		retCode =
 			lim_ibss_coalesce(mac, pHdr, pBeacon, pIEs, ieLen, tsfLater,
-					  psessionEntry);
+					  pe_session);
 	}
 	return retCode;
 } /*** end lim_handle_ibs_scoalescing() ***/
@@ -1704,7 +1704,7 @@
 void
 lim_detect_change_in_ap_capabilities(tpAniSirGlobal mac,
 				     tpSirProbeRespBeacon pBeacon,
-				     struct pe_session *psessionEntry)
+				     struct pe_session *pe_session)
 {
 	uint8_t len;
 	tSirSmeApNewCaps apNewCaps;
@@ -1717,41 +1717,41 @@
 	newChannel = (uint8_t) pBeacon->channelNumber;
 
 	security_caps_matched = lim_enc_type_matched(mac, pBeacon,
-						     psessionEntry);
-	if ((false == psessionEntry->limSentCapsChangeNtf) &&
+						     pe_session);
+	if ((false == pe_session->limSentCapsChangeNtf) &&
 	    (((!lim_is_null_ssid(&pBeacon->ssId)) &&
-	       lim_cmp_ssid(&pBeacon->ssId, psessionEntry)) ||
+	       lim_cmp_ssid(&pBeacon->ssId, pe_session)) ||
 	     ((SIR_MAC_GET_ESS(apNewCaps.capabilityInfo) !=
-	       SIR_MAC_GET_ESS(psessionEntry->limCurrentBssCaps)) ||
+	       SIR_MAC_GET_ESS(pe_session->limCurrentBssCaps)) ||
 	      (SIR_MAC_GET_PRIVACY(apNewCaps.capabilityInfo) !=
-	       SIR_MAC_GET_PRIVACY(psessionEntry->limCurrentBssCaps)) ||
+	       SIR_MAC_GET_PRIVACY(pe_session->limCurrentBssCaps)) ||
 	      (SIR_MAC_GET_QOS(apNewCaps.capabilityInfo) !=
-	       SIR_MAC_GET_QOS(psessionEntry->limCurrentBssCaps)) ||
-	      ((newChannel != psessionEntry->currentOperChannel) &&
+	       SIR_MAC_GET_QOS(pe_session->limCurrentBssCaps)) ||
+	      ((newChannel != pe_session->currentOperChannel) &&
 		(newChannel != 0)) ||
 	      (false == security_caps_matched)
 	     ))) {
-		if (false == psessionEntry->fWaitForProbeRsp) {
+		if (false == pe_session->fWaitForProbeRsp) {
 			/* If Beacon capabilities is not matching with the current capability,
 			 * then send unicast probe request to AP and take decision after
 			 * receiving probe response */
-			if (true == psessionEntry->fIgnoreCapsChange) {
+			if (true == pe_session->fIgnoreCapsChange) {
 				pe_debug("Ignoring the Capability change as it is false alarm");
 				return;
 			}
-			psessionEntry->fWaitForProbeRsp = true;
+			pe_session->fWaitForProbeRsp = true;
 			pe_warn("AP capabilities are not matching, sending directed probe request");
 			status =
-				lim_send_probe_req_mgmt_frame(mac, &psessionEntry->ssId,
-					      psessionEntry->bssId,
-					      psessionEntry->currentOperChannel,
-					      psessionEntry->selfMacAddr,
-					      psessionEntry->dot11mode,
+				lim_send_probe_req_mgmt_frame(mac, &pe_session->ssId,
+					      pe_session->bssId,
+					      pe_session->currentOperChannel,
+					      pe_session->selfMacAddr,
+					      pe_session->dot11mode,
 					      NULL, NULL);
 
 			if (QDF_STATUS_SUCCESS != status) {
 				pe_err("send ProbeReq failed");
-				psessionEntry->fWaitForProbeRsp = false;
+				pe_session->fWaitForProbeRsp = false;
 			}
 			return;
 		}
@@ -1763,10 +1763,10 @@
 		      pBeacon->ssId.length + 1;
 
 		qdf_mem_copy(apNewCaps.bssId.bytes,
-			     psessionEntry->bssId, QDF_MAC_ADDR_SIZE);
-		if (newChannel != psessionEntry->currentOperChannel) {
+			     pe_session->bssId, QDF_MAC_ADDR_SIZE);
+		if (newChannel != pe_session->currentOperChannel) {
 			pe_err("Channel Change from %d --> %d Ignoring beacon!",
-				psessionEntry->currentOperChannel, newChannel);
+				pe_session->currentOperChannel, newChannel);
 			return;
 		}
 
@@ -1785,18 +1785,18 @@
 			pe_err("BSS Caps (Privacy) bit 0 in beacon, but WPA or RSN IE present, Ignore Beacon!");
 			return;
 		} else
-			apNewCaps.channelId = psessionEntry->currentOperChannel;
+			apNewCaps.channelId = pe_session->currentOperChannel;
 		qdf_mem_copy((uint8_t *) &apNewCaps.ssId,
 			     (uint8_t *) &pBeacon->ssId,
 			     pBeacon->ssId.length + 1);
 
-		psessionEntry->fIgnoreCapsChange = false;
-		psessionEntry->fWaitForProbeRsp = false;
-		psessionEntry->limSentCapsChangeNtf = true;
+		pe_session->fIgnoreCapsChange = false;
+		pe_session->fWaitForProbeRsp = false;
+		pe_session->limSentCapsChangeNtf = true;
 		lim_send_sme_wm_status_change_ntf(mac, eSIR_SME_AP_CAPS_CHANGED,
 						  (uint32_t *) &apNewCaps,
-						  len, psessionEntry->smeSessionId);
-	} else if (true == psessionEntry->fWaitForProbeRsp) {
+						  len, pe_session->smeSessionId);
+	} else if (true == pe_session->fWaitForProbeRsp) {
 		/* Only for probe response frames and matching capabilities the control
 		 * will come here. If beacon is with broadcast ssid then fWaitForProbeRsp
 		 * will be false, the control will not come here*/
@@ -1805,8 +1805,8 @@
 				       "matching with the current setting,"
 				       "Ignoring subsequent capability"
 				       "mismatch");
-		psessionEntry->fIgnoreCapsChange = true;
-		psessionEntry->fWaitForProbeRsp = false;
+		pe_session->fIgnoreCapsChange = true;
+		pe_session->fWaitForProbeRsp = false;
 	}
 
 } /*** lim_detect_change_in_ap_capabilities() ***/
@@ -1831,7 +1831,7 @@
 QDF_STATUS lim_update_short_slot(tpAniSirGlobal mac,
 				    tpSirProbeRespBeacon pBeacon,
 				    tpUpdateBeaconParams pBeaconParams,
-				    struct pe_session *psessionEntry)
+				    struct pe_session *pe_session)
 {
 
 	tSirSmeApNewCaps apNewCaps;
@@ -1843,7 +1843,7 @@
 		return QDF_STATUS_SUCCESS;
 
 	/* Check for 11a mode or 11b mode. In both cases return since slot time is constant and cannot/should not change in beacon */
-	lim_get_phy_mode(mac, &phyMode, psessionEntry);
+	lim_get_phy_mode(mac, &phyMode, pe_session);
 	if ((phyMode == WNI_CFG_PHY_MODE_11A)
 	    || (phyMode == WNI_CFG_PHY_MODE_11B))
 		return QDF_STATUS_SUCCESS;
@@ -1872,13 +1872,13 @@
 	 */
 	nShortSlot = SIR_MAC_GET_SHORT_SLOT_TIME(apNewCaps.capabilityInfo);
 
-	if (nShortSlot != psessionEntry->shortSlotTimeSupported) {
+	if (nShortSlot != pe_session->shortSlotTimeSupported) {
 		/* Short slot time capability of AP has changed. Adopt to it. */
 		pe_debug("Shortslot capability of AP changed: %d",
 			       nShortSlot);
-			((tpSirMacCapabilityInfo) & psessionEntry->
+			((tpSirMacCapabilityInfo) & pe_session->
 			limCurrentBssCaps)->shortSlotTime = (uint16_t) nShortSlot;
-		psessionEntry->shortSlotTimeSupported = nShortSlot;
+		pe_session->shortSlotTimeSupported = nShortSlot;
 		pBeaconParams->fShortSlotTime = (uint8_t) nShortSlot;
 		pBeaconParams->paramChangeBitmap |=
 			PARAM_SHORT_SLOT_TIME_CHANGED;
@@ -1888,14 +1888,14 @@
 
 
 void lim_send_heart_beat_timeout_ind(tpAniSirGlobal mac,
-				     struct pe_session *psessionEntry)
+				     struct pe_session *pe_session)
 {
 	QDF_STATUS status;
 	struct scheduler_msg msg = {0};
 
 	/* Prepare and post message to LIM Message Queue */
 	msg.type = (uint16_t) SIR_LIM_HEART_BEAT_TIMEOUT;
-	msg.bodyptr = psessionEntry;
+	msg.bodyptr = pe_session;
 	msg.bodyval = 0;
 	pe_err("Heartbeat failure from Fw");
 
@@ -1922,20 +1922,20 @@
 {
 	tpSirSmeMissedBeaconInd pSirMissedBeaconInd =
 		(tpSirSmeMissedBeaconInd) pMsg->bodyptr;
-	struct pe_session *psessionEntry =
+	struct pe_session *pe_session =
 		pe_find_session_by_bss_idx(mac, pSirMissedBeaconInd->bssIdx);
 
-	if (!psessionEntry) {
+	if (!pe_session) {
 		pe_err("session does not exist for given BSSId");
 		return;
 	}
 
 	/* Set Beacon Miss in Powersave Offload */
-	psessionEntry->pmmOffloadInfo.bcnmiss = true;
+	pe_session->pmmOffloadInfo.bcnmiss = true;
 	pe_err("Received Heart Beat Failure");
 
 	/*  Do AP probing immediately */
-	lim_send_heart_beat_timeout_ind(mac, psessionEntry);
+	lim_send_heart_beat_timeout_ind(mac, pe_session);
 	return;
 }
 
@@ -2453,10 +2453,10 @@
 {
 	tpSirMacMgmtHdr pHdr = WMA_GET_RX_MAC_HEADER(pRxPacketInfo);
 	uint8_t sessionId;
-	struct pe_session *psessionEntry =
+	struct pe_session *pe_session =
 		pe_find_session_by_bssid(mac, pHdr->bssId, &sessionId);
 
-	if (psessionEntry && psessionEntry->pmmOffloadInfo.bcnmiss)
+	if (pe_session && pe_session->pmmOffloadInfo.bcnmiss)
 		return true;
 	return false;
 }
@@ -2486,7 +2486,7 @@
 	uint8_t *pBody;
 	tSirMacCapabilityInfo capabilityInfo;
 	tpSirMacMgmtHdr pHdr = NULL;
-	struct pe_session *psessionEntry = NULL;
+	struct pe_session *pe_session = NULL;
 	uint8_t sessionId;
 
 	/*
@@ -2531,11 +2531,11 @@
 	} else if ((subType == SIR_MAC_MGMT_PROBE_REQ) &&
 		   (!WMA_GET_RX_BEACON_SENT(pRxPacketInfo))) {
 		pHdr = WMA_GET_RX_MAC_HEADER(pRxPacketInfo);
-		psessionEntry = pe_find_session_by_bssid(mac,
+		pe_session = pe_find_session_by_bssid(mac,
 							 pHdr->bssId,
 							 &sessionId);
-		if ((psessionEntry && !LIM_IS_IBSS_ROLE(psessionEntry)) ||
-		    (!psessionEntry))
+		if ((pe_session && !LIM_IS_IBSS_ROLE(pe_session)) ||
+		    (!pe_session))
 			return eMGMT_DROP_NO_DROP;
 
 		/* Drop the Probe Request in IBSS mode, if STA did not send out the last beacon */
@@ -2546,9 +2546,9 @@
 		struct tLimPreAuthNode *auth_node;
 
 		pHdr = WMA_GET_RX_MAC_HEADER(pRxPacketInfo);
-		psessionEntry = pe_find_session_by_bssid(mac, pHdr->bssId,
+		pe_session = pe_find_session_by_bssid(mac, pHdr->bssId,
 							 &sessionId);
-		if (!psessionEntry)
+		if (!pe_session)
 			return eMGMT_DROP_NO_DROP;
 
 		curr_seq_num = ((pHdr->seqControl.seqNumHi << 4) |
@@ -2569,11 +2569,11 @@
 		qdf_time_t *timestamp;
 
 		pHdr = WMA_GET_RX_MAC_HEADER(pRxPacketInfo);
-		psessionEntry = pe_find_session_by_bssid(mac, pHdr->bssId,
+		pe_session = pe_find_session_by_bssid(mac, pHdr->bssId,
 				&sessionId);
-		if (!psessionEntry)
+		if (!pe_session)
 			return eMGMT_DROP_NO_DROP;
-		dph_table = &psessionEntry->dph.dphHashTable;
+		dph_table = &pe_session->dph.dphHashTable;
 		sta_ds = dph_lookup_hash_entry(mac, pHdr->sa, &assoc_id,
 					       dph_table);
 		if (!sta_ds) {
diff --git a/core/mac/src/pe/lim/lim_assoc_utils.c b/core/mac/src/pe/lim/lim_assoc_utils.c
index 42ca442..6d809ad 100644
--- a/core/mac/src/pe/lim/lim_assoc_utils.c
+++ b/core/mac/src/pe/lim/lim_assoc_utils.c
@@ -105,9 +105,9 @@
 lim_compare_capabilities(tpAniSirGlobal mac,
 			 tSirAssocReq *pAssocReq,
 			 tSirMacCapabilityInfo *pLocalCapabs,
-			 struct pe_session *psessionEntry)
+			 struct pe_session *pe_session)
 {
-	if (LIM_IS_AP_ROLE(psessionEntry) &&
+	if (LIM_IS_AP_ROLE(pe_session) &&
 	    (pAssocReq->capabilityInfo.ibss)) {
 		/* Requesting STA asserting IBSS capability. */
 		pe_debug("Requesting STA asserting IBSS capability");
@@ -142,7 +142,7 @@
 	 * then AP must reject any station that does not support
 	 * shortSlot
 	 */
-	if (LIM_IS_AP_ROLE(psessionEntry) &&
+	if (LIM_IS_AP_ROLE(pe_session) &&
 	    (pLocalCapabs->shortSlotTime == 1)) {
 		if (mac->mlme_cfg->feature_flags.accept_short_slot_assoc) {
 			if (pAssocReq->capabilityInfo.shortSlotTime !=
@@ -182,7 +182,7 @@
 
 uint8_t
 lim_check_rx_basic_rates(tpAniSirGlobal mac, tSirMacRateSet rxRateSet,
-			 struct pe_session *psessionEntry)
+			 struct pe_session *pe_session)
 {
 	tSirMacRateSet *pRateSet, basicRate;
 	uint8_t i, j, k, match;
@@ -192,10 +192,10 @@
 		return false;
 
 	/* Copy operational rate set from session Entry */
-	qdf_mem_copy(pRateSet->rate, (psessionEntry->rateSet.rate),
-		     psessionEntry->rateSet.numRates);
+	qdf_mem_copy(pRateSet->rate, (pe_session->rateSet.rate),
+		     pe_session->rateSet.numRates);
 
-	pRateSet->numRates = psessionEntry->rateSet.numRates;
+	pRateSet->numRates = pe_session->rateSet.numRates;
 
 	/* Extract BSS basic rateset from operational rateset */
 	for (i = 0, j = 0;
@@ -547,21 +547,21 @@
 
 QDF_STATUS
 lim_cleanup_rx_path(tpAniSirGlobal mac, tpDphHashNode pStaDs,
-		    struct pe_session *psessionEntry)
+		    struct pe_session *pe_session)
 {
 	QDF_STATUS retCode = QDF_STATUS_SUCCESS;
 
 	pe_debug("Cleanup Rx Path for AID: %d"
-		"psessionEntry->limSmeState: %d, mlmState: %d",
-		pStaDs->assocId, psessionEntry->limSmeState,
+		"pe_session->limSmeState: %d, mlmState: %d",
+		pStaDs->assocId, pe_session->limSmeState,
 		pStaDs->mlmStaContext.mlmState);
 
-	psessionEntry->isCiscoVendorAP = false;
+	pe_session->isCiscoVendorAP = false;
 
 	if (mac->lim.gLimAddtsSent) {
 		MTRACE(mac_trace
 			       (mac, TRACE_CODE_TIMER_DEACTIVATE,
-			       psessionEntry->peSessionId, eLIM_ADDTS_RSP_TIMER));
+			       pe_session->peSessionId, eLIM_ADDTS_RSP_TIMER));
 		tx_timer_deactivate(&mac->lim.limTimers.gLimAddtsRspTimer);
 		pe_debug("Reset gLimAddtsSent flag and send addts timeout to SME");
 		lim_process_sme_addts_rsp_timeout(mac,
@@ -577,13 +577,13 @@
 			 * There is no context at Polaris to delete.
 			 * Release our assigned AID back to the free pool
 			 */
-			if (LIM_IS_AP_ROLE(psessionEntry)) {
-				lim_del_sta(mac, pStaDs, false, psessionEntry);
+			if (LIM_IS_AP_ROLE(pe_session)) {
+				lim_del_sta(mac, pStaDs, false, pe_session);
 				lim_release_peer_idx(mac, pStaDs->assocId,
-						     psessionEntry);
+						     pe_session);
 			}
 			lim_delete_dph_hash_entry(mac, pStaDs->staAddr,
-						  pStaDs->assocId, psessionEntry);
+						  pStaDs->assocId, pe_session);
 
 			return retCode;
 		}
@@ -597,17 +597,17 @@
 	 * releases those BDs
 	 */
 	pStaDs->valid = 0;
-	lim_send_sme_tsm_ie_ind(mac, psessionEntry, 0, 0, 0);
+	lim_send_sme_tsm_ie_ind(mac, pe_session, 0, 0, 0);
 	/* Any roaming related changes should be above this line */
-	if (lim_is_roam_synch_in_progress(psessionEntry))
+	if (lim_is_roam_synch_in_progress(pe_session))
 		return QDF_STATUS_SUCCESS;
 	pStaDs->mlmStaContext.mlmState = eLIM_MLM_WT_DEL_STA_RSP_STATE;
 
-	if (LIM_IS_STA_ROLE(psessionEntry)) {
+	if (LIM_IS_STA_ROLE(pe_session)) {
 		MTRACE(mac_trace
-		       (mac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId,
+		       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
 		       eLIM_MLM_WT_DEL_STA_RSP_STATE));
-		psessionEntry->limMlmState = eLIM_MLM_WT_DEL_STA_RSP_STATE;
+		pe_session->limMlmState = eLIM_MLM_WT_DEL_STA_RSP_STATE;
 		/* Deactivating probe after heart beat timer */
 		lim_deactivate_and_change_timer(mac, eLIM_PROBE_AFTER_HB_TIMER);
 		lim_deactivate_and_change_timer(mac, eLIM_JOIN_FAIL_TIMER);
@@ -617,14 +617,14 @@
 	mac->lim.gLimNumRxCleanup++;
 #endif
 	/* Do DEL BSS or DEL STA only if ADD BSS was success */
-	if (!psessionEntry->add_bss_failed) {
-		if (psessionEntry->limSmeState == eLIM_SME_JOIN_FAILURE_STATE) {
+	if (!pe_session->add_bss_failed) {
+		if (pe_session->limSmeState == eLIM_SME_JOIN_FAILURE_STATE) {
 			retCode =
-				lim_del_bss(mac, pStaDs, psessionEntry->bssIdx,
-					    psessionEntry);
+				lim_del_bss(mac, pStaDs, pe_session->bssIdx,
+					    pe_session);
 		} else
 			retCode = lim_del_sta(mac,
-					 pStaDs, true, psessionEntry);
+					 pStaDs, true, pe_session);
 	}
 
 	return retCode;
@@ -638,7 +638,7 @@
  * @staDsAssocId: sta ds association id
  * @mlmStaContext: MLM station context
  * @statusCode: Status code
- * @psessionEntry: Session entry
+ * @pe_session: Session entry
  *
  * This function is called to send appropriate CNF message to SME.
  *
@@ -647,31 +647,31 @@
 void
 lim_send_del_sta_cnf(tpAniSirGlobal mac, struct qdf_mac_addr sta_dsaddr,
 		     uint16_t staDsAssocId, tLimMlmStaContext mlmStaContext,
-		     tSirResultCodes statusCode, struct pe_session *psessionEntry)
+		     tSirResultCodes statusCode, struct pe_session *pe_session)
 {
 	tLimMlmDisassocCnf mlmDisassocCnf;
 	tLimMlmDeauthCnf mlmDeauthCnf;
 	tLimMlmPurgeStaInd mlmPurgeStaInd;
 
 	pe_debug("Sessionid: %d staDsAssocId: %d Trigger: %d statusCode: %d sta_dsaddr: "MAC_ADDRESS_STR,
-		psessionEntry->peSessionId, staDsAssocId,
+		pe_session->peSessionId, staDsAssocId,
 		mlmStaContext.cleanupTrigger, statusCode,
 		MAC_ADDR_ARRAY(sta_dsaddr.bytes));
 
-	if (LIM_IS_STA_ROLE(psessionEntry)) {
+	if (LIM_IS_STA_ROLE(pe_session)) {
 		/* Set BSSID at CFG to null */
 		tSirMacAddr nullAddr = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
 
-		sir_copy_mac_addr(nullAddr, psessionEntry->bssId);
+		sir_copy_mac_addr(nullAddr, pe_session->bssId);
 
 		/* Free up buffer allocated for JoinReq held by */
 		/* MLM state machine */
-		if (psessionEntry->pLimMlmJoinReq) {
-			qdf_mem_free(psessionEntry->pLimMlmJoinReq);
-			psessionEntry->pLimMlmJoinReq = NULL;
+		if (pe_session->pLimMlmJoinReq) {
+			qdf_mem_free(pe_session->pLimMlmJoinReq);
+			pe_session->pLimMlmJoinReq = NULL;
 		}
 
-		psessionEntry->limAID = 0;
+		pe_session->limAID = 0;
 	}
 
 	if ((mlmStaContext.cleanupTrigger ==
@@ -692,7 +692,7 @@
 		mlmDisassocCnf.resultCode = statusCode;
 		mlmDisassocCnf.disassocTrigger = mlmStaContext.cleanupTrigger;
 		/* Update PE session Id */
-		mlmDisassocCnf.sessionId = psessionEntry->peSessionId;
+		mlmDisassocCnf.sessionId = pe_session->peSessionId;
 
 		lim_post_sme_message(mac,
 				     LIM_MLM_DISASSOC_CNF,
@@ -711,7 +711,7 @@
 		mlmDeauthCnf.resultCode = statusCode;
 		mlmDeauthCnf.deauthTrigger = mlmStaContext.cleanupTrigger;
 		/* PE session Id */
-		mlmDeauthCnf.sessionId = psessionEntry->peSessionId;
+		mlmDeauthCnf.sessionId = pe_session->peSessionId;
 
 		lim_post_sme_message(mac,
 				     LIM_MLM_DEAUTH_CNF,
@@ -731,7 +731,7 @@
 			(uint8_t) mlmStaContext.disassocReason;
 		mlmPurgeStaInd.aid = staDsAssocId;
 		mlmPurgeStaInd.purgeTrigger = mlmStaContext.cleanupTrigger;
-		mlmPurgeStaInd.sessionId = psessionEntry->peSessionId;
+		mlmPurgeStaInd.sessionId = pe_session->peSessionId;
 
 		lim_post_sme_message(mac,
 				     LIM_MLM_PURGE_STA_IND,
@@ -742,13 +742,13 @@
 		uint8_t smesessionId;
 		uint16_t smetransactionId;
 
-		smesessionId = psessionEntry->smeSessionId;
-		smetransactionId = psessionEntry->transactionId;
+		smesessionId = pe_session->smeSessionId;
+		smetransactionId = pe_session->transactionId;
 
-		psessionEntry->limSmeState = eLIM_SME_JOIN_FAILURE_STATE;
+		pe_session->limSmeState = eLIM_SME_JOIN_FAILURE_STATE;
 		MTRACE(mac_trace
-			       (mac, TRACE_CODE_SME_STATE, psessionEntry->peSessionId,
-			       psessionEntry->limSmeState));
+			       (mac, TRACE_CODE_SME_STATE, pe_session->peSessionId,
+			       pe_session->limSmeState));
 
 		/* if it is a reassoc failure to join new AP */
 		if ((mlmStaContext.resultCode ==
@@ -761,37 +761,37 @@
 				"sessionId: %d",
 				mlmStaContext.resultCode,
 				mlmStaContext.protStatusCode,
-				psessionEntry->peSessionId);
+				pe_session->peSessionId);
 
 			lim_send_sme_join_reassoc_rsp(mac, eWNI_SME_REASSOC_RSP,
 						      mlmStaContext.resultCode,
 						      mlmStaContext.protStatusCode,
-						      psessionEntry, smesessionId,
+						      pe_session, smesessionId,
 						      smetransactionId);
 			if (mlmStaContext.resultCode != eSIR_SME_SUCCESS) {
-				pe_delete_session(mac, psessionEntry);
-				psessionEntry = NULL;
+				pe_delete_session(mac, pe_session);
+				pe_session = NULL;
 			}
 		} else {
-			qdf_mem_free(psessionEntry->pLimJoinReq);
-			psessionEntry->pLimJoinReq = NULL;
+			qdf_mem_free(pe_session->pLimJoinReq);
+			pe_session->pLimJoinReq = NULL;
 
 			pe_debug("Lim Posting eWNI_SME_JOIN_RSP to SME."
 				"resultCode: %d,statusCode: %d,"
 				"sessionId: %d",
 				mlmStaContext.resultCode,
 				mlmStaContext.protStatusCode,
-				psessionEntry->peSessionId);
+				pe_session->peSessionId);
 
 			lim_send_sme_join_reassoc_rsp(mac, eWNI_SME_JOIN_RSP,
 						      mlmStaContext.resultCode,
 						      mlmStaContext.protStatusCode,
-						      psessionEntry, smesessionId,
+						      pe_session, smesessionId,
 						      smetransactionId);
 
 			if (mlmStaContext.resultCode != eSIR_SME_SUCCESS) {
-				pe_delete_session(mac, psessionEntry);
-				psessionEntry = NULL;
+				pe_delete_session(mac, pe_session);
+				pe_session = NULL;
 			}
 		}
 
@@ -808,16 +808,16 @@
 		mlmDisassocCnf.resultCode = statusCode;
 		mlmDisassocCnf.disassocTrigger = eLIM_DUPLICATE_ENTRY;
 		/* Update PE session Id */
-		mlmDisassocCnf.sessionId = psessionEntry->peSessionId;
+		mlmDisassocCnf.sessionId = pe_session->peSessionId;
 
 		lim_post_sme_message(mac,
 				     LIM_MLM_DISASSOC_CNF,
 				     (uint32_t *) &mlmDisassocCnf);
 	}
 
-	if (NULL != psessionEntry && !LIM_IS_AP_ROLE(psessionEntry)) {
-		pe_delete_session(mac, psessionEntry);
-		psessionEntry = NULL;
+	if (NULL != pe_session && !LIM_IS_AP_ROLE(pe_session)) {
+		pe_delete_session(mac, pe_session);
+		pe_session = NULL;
 	}
 }
 
@@ -1629,7 +1629,7 @@
 QDF_STATUS
 lim_populate_peer_rate_set(tpAniSirGlobal mac,
 		tpSirSupportedRates pRates, uint8_t *pSupportedMCSSet,
-		uint8_t basicOnly, struct pe_session *psessionEntry,
+		uint8_t basicOnly, struct pe_session *pe_session,
 		tDot11fIEVHTCaps *pVHTCaps, tDot11fIEhe_cap *he_caps)
 {
 	tSirMacRateSet tempRateSet;
@@ -1637,30 +1637,30 @@
 	uint32_t i, j, val, min, isArate = 0;
 	qdf_size_t val_len;
 
-	/* copy operational rate set from psessionEntry */
-	if (psessionEntry->rateSet.numRates <= SIR_MAC_RATESET_EID_MAX) {
+	/* copy operational rate set from pe_session */
+	if (pe_session->rateSet.numRates <= SIR_MAC_RATESET_EID_MAX) {
 		qdf_mem_copy((uint8_t *) tempRateSet.rate,
-			     (uint8_t *) (psessionEntry->rateSet.rate),
-			     psessionEntry->rateSet.numRates);
-		tempRateSet.numRates = psessionEntry->rateSet.numRates;
+			     (uint8_t *) (pe_session->rateSet.rate),
+			     pe_session->rateSet.numRates);
+		tempRateSet.numRates = pe_session->rateSet.numRates;
 	} else {
 		pe_err("more than SIR_MAC_RATESET_EID_MAX rates");
 		return QDF_STATUS_E_FAILURE;
 	}
-	if ((psessionEntry->dot11mode == WNI_CFG_DOT11_MODE_11G) ||
-		(psessionEntry->dot11mode == WNI_CFG_DOT11_MODE_11A) ||
-		(psessionEntry->dot11mode == WNI_CFG_DOT11_MODE_11AC) ||
-		(psessionEntry->dot11mode == WNI_CFG_DOT11_MODE_11N)) {
-		if (psessionEntry->extRateSet.numRates <=
+	if ((pe_session->dot11mode == WNI_CFG_DOT11_MODE_11G) ||
+		(pe_session->dot11mode == WNI_CFG_DOT11_MODE_11A) ||
+		(pe_session->dot11mode == WNI_CFG_DOT11_MODE_11AC) ||
+		(pe_session->dot11mode == WNI_CFG_DOT11_MODE_11N)) {
+		if (pe_session->extRateSet.numRates <=
 		    SIR_MAC_RATESET_EID_MAX) {
 			qdf_mem_copy((uint8_t *) tempRateSet2.rate,
-				     (uint8_t *) (psessionEntry->extRateSet.
+				     (uint8_t *) (pe_session->extRateSet.
 						  rate),
-				     psessionEntry->extRateSet.numRates);
+				     pe_session->extRateSet.numRates);
 			tempRateSet2.numRates =
-				psessionEntry->extRateSet.numRates;
+				pe_session->extRateSet.numRates;
 		} else {
-			pe_err("psessionEntry->extRateSet.numRates more than SIR_MAC_RATESET_EID_MAX rates");
+			pe_err("pe_session->extRateSet.numRates more than SIR_MAC_RATESET_EID_MAX rates");
 			return QDF_STATUS_E_FAILURE;
 		}
 	} else
@@ -1727,7 +1727,7 @@
 		}
 	}
 
-	if (IS_DOT11_MODE_HT(psessionEntry->dot11mode)) {
+	if (IS_DOT11_MODE_HT(pe_session->dot11mode)) {
 		val_len = SIZE_OF_SUPPORTED_MCS_SET;
 		if (wlan_mlme_get_cfg_str(
 			pRates->supportedMCSSet,
@@ -1736,7 +1736,7 @@
 			pe_err("could not retrieve supportedMCSSet");
 			return QDF_STATUS_E_FAILURE;
 		}
-		if (psessionEntry->nss == NSS_1x1_MODE)
+		if (pe_session->nss == NSS_1x1_MODE)
 			pRates->supportedMCSSet[1] = 0;
 
 		/* if supported MCS Set of the peer is passed in, then do the
@@ -1756,26 +1756,26 @@
 			pRates->supportedMCSSet[0] = 0xFF;
 		}
 
-		psessionEntry->supported_nss_1x1 =
+		pe_session->supported_nss_1x1 =
 			((pRates->supportedMCSSet[1] != 0) ? false : true);
 		pe_debug("HT supported nss 1x1: %d",
-			psessionEntry->supported_nss_1x1);
+			pe_session->supported_nss_1x1);
 	}
 	lim_populate_vht_mcs_set(mac, pRates, pVHTCaps,
-			psessionEntry, psessionEntry->nss);
+			pe_session, pe_session->nss);
 
 	lim_populate_he_mcs_set(mac, pRates, he_caps,
-			psessionEntry, psessionEntry->nss);
+			pe_session, pe_session->nss);
 
-	if (IS_DOT11_MODE_HE(psessionEntry->dot11mode) && he_caps) {
-		lim_calculate_he_nss(pRates, psessionEntry);
-	} else if (IS_DOT11_MODE_VHT(psessionEntry->dot11mode)) {
+	if (IS_DOT11_MODE_HE(pe_session->dot11mode) && he_caps) {
+		lim_calculate_he_nss(pRates, pe_session);
+	} else if (IS_DOT11_MODE_VHT(pe_session->dot11mode)) {
 		if ((pRates->vhtRxMCSMap & MCSMAPMASK2x2) == MCSMAPMASK2x2)
-			psessionEntry->nss = NSS_1x1_MODE;
+			pe_session->nss = NSS_1x1_MODE;
 	} else if (pRates->supportedMCSSet[1] == 0) {
-		psessionEntry->nss = NSS_1x1_MODE;
+		pe_session->nss = NSS_1x1_MODE;
 	}
-	pe_debug("nss: %d", psessionEntry->nss);
+	pe_debug("nss: %d", pe_session->nss);
 
 	return QDF_STATUS_SUCCESS;
 } /*** lim_populate_peer_rate_set() ***/
@@ -2563,7 +2563,7 @@
 
 QDF_STATUS
 lim_del_sta(tpAniSirGlobal mac,
-	    tpDphHashNode pStaDs, bool fRespReqd, struct pe_session *psessionEntry)
+	    tpDphHashNode pStaDs, bool fRespReqd, struct pe_session *pe_session)
 {
 	tpDeleteStaParams pDelStaParams = NULL;
 	struct scheduler_msg msgQ = {0};
@@ -2581,14 +2581,14 @@
 	 * 5G-AS: Don't care
 	 */
 	if (!policy_mgr_is_hw_dbs_2x2_capable(mac->psoc) &&
-		LIM_IS_AP_ROLE(psessionEntry) &&
+		LIM_IS_AP_ROLE(pe_session) &&
 		(pStaDs->staType == STA_ENTRY_PEER) &&
 		!pStaDs->mlmStaContext.vhtCapability &&
-		(psessionEntry->nss == 2)) {
-		psessionEntry->ht_client_cnt--;
-		if (psessionEntry->ht_client_cnt == 0) {
+		(pe_session->nss == 2)) {
+		pe_session->ht_client_cnt--;
+		if (pe_session->ht_client_cnt == 0) {
 			pe_debug("clearing SMPS intolrent vdev_param");
-			wma_cli_set_command(psessionEntry->smeSessionId,
+			wma_cli_set_command(pe_session->smeSessionId,
 				(int)WMI_VDEV_PARAM_SMPS_INTOLERANT,
 				0, VDEV_CMD);
 		}
@@ -2604,12 +2604,12 @@
 	/* */
 
 #ifdef FEATURE_WLAN_TDLS
-	if (LIM_IS_STA_ROLE(psessionEntry) &&
+	if (LIM_IS_STA_ROLE(pe_session) &&
 	    (pStaDs->staType != STA_ENTRY_TDLS_PEER))
 #else
-	if (LIM_IS_STA_ROLE(psessionEntry))
+	if (LIM_IS_STA_ROLE(pe_session))
 #endif
-		pDelStaParams->staIdx = psessionEntry->staId;
+		pDelStaParams->staIdx = pe_session->staId;
 
 	else
 		pDelStaParams->staIdx = pStaDs->staIndex;
@@ -2627,18 +2627,18 @@
 				GET_LIM_STA_CONTEXT_MLM_STATE(pStaDs)) {
 				MTRACE(mac_trace
 					(mac, TRACE_CODE_MLM_STATE,
-					 psessionEntry->peSessionId,
+					 pe_session->peSessionId,
 					 eLIM_MLM_WT_DEL_STA_RSP_STATE));
 				SET_LIM_STA_CONTEXT_MLM_STATE(pStaDs,
 					eLIM_MLM_WT_DEL_STA_RSP_STATE);
 			}
-			if (LIM_IS_STA_ROLE(psessionEntry)) {
+			if (LIM_IS_STA_ROLE(pe_session)) {
 				MTRACE(mac_trace
 					(mac, TRACE_CODE_MLM_STATE,
-					 psessionEntry->peSessionId,
+					 pe_session->peSessionId,
 					 eLIM_MLM_WT_DEL_STA_RSP_STATE));
 
-				psessionEntry->limMlmState =
+				pe_session->limMlmState =
 					eLIM_MLM_WT_DEL_STA_RSP_STATE;
 
 			}
@@ -2652,8 +2652,8 @@
 	}
 
 	/* Update PE session ID */
-	pDelStaParams->sessionId = psessionEntry->peSessionId;
-	pDelStaParams->smesessionId = psessionEntry->smeSessionId;
+	pDelStaParams->sessionId = pe_session->peSessionId;
+	pDelStaParams->smesessionId = pe_session->smeSessionId;
 
 	pDelStaParams->staType = pStaDs->staType;
 	qdf_mem_copy((uint8_t *) pDelStaParams->staMac,
@@ -2671,7 +2671,7 @@
 		pDelStaParams->staIdx, pDelStaParams->assocId,
 		MAC_ADDR_ARRAY(pStaDs->staAddr));
 
-	MTRACE(mac_trace_msg_tx(mac, psessionEntry->peSessionId, msgQ.type));
+	MTRACE(mac_trace_msg_tx(mac, pe_session->peSessionId, msgQ.type));
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
 		if (fRespReqd)
@@ -2708,7 +2708,7 @@
 
 QDF_STATUS
 lim_add_sta_self(tpAniSirGlobal mac, uint16_t staIdx, uint8_t updateSta,
-		 struct pe_session *psessionEntry)
+		 struct pe_session *pe_session)
 {
 	tpAddStaParams pAddStaParams = NULL;
 	struct scheduler_msg msgQ = {0};
@@ -2732,7 +2732,7 @@
 	pe_debug("Roam Channel Bonding Mode %d",
 		(int)mac->roam.configParam.uCfgDot11Mode);
 
-	sir_copy_mac_addr(staMac, psessionEntry->selfMacAddr);
+	sir_copy_mac_addr(staMac, pe_session->selfMacAddr);
 	pe_debug(MAC_ADDRESS_STR ": ", MAC_ADDR_ARRAY(staMac));
 	pAddStaParams = qdf_mem_malloc(sizeof(tAddStaParams));
 	if (!pAddStaParams)
@@ -2743,20 +2743,20 @@
 		     (uint8_t *) staMac, sizeof(tSirMacAddr));
 
 	qdf_mem_copy((uint8_t *) pAddStaParams->bssId,
-		     psessionEntry->bssId, sizeof(tSirMacAddr));
+		     pe_session->bssId, sizeof(tSirMacAddr));
 
-	pAddStaParams->assocId = psessionEntry->limAID;
+	pAddStaParams->assocId = pe_session->limAID;
 	pAddStaParams->staType = STA_ENTRY_SELF;
 	pAddStaParams->status = QDF_STATUS_SUCCESS;
 	pAddStaParams->respReqd = 1;
 
 	/* Update  PE session ID */
-	pAddStaParams->sessionId = psessionEntry->peSessionId;
+	pAddStaParams->sessionId = pe_session->peSessionId;
 
 	/* Update SME session ID */
-	pAddStaParams->smesessionId = psessionEntry->smeSessionId;
+	pAddStaParams->smesessionId = pe_session->smeSessionId;
 
-	pAddStaParams->maxTxPower = psessionEntry->maxTxPower;
+	pAddStaParams->maxTxPower = pe_session->maxTxPower;
 
 	/* This will indicate HAL to "allocate" a new STA index */
 	pAddStaParams->staIdx = staIdx;
@@ -2766,12 +2766,12 @@
 					mac->mlme_cfg->ht_caps.short_preamble;
 
 	lim_populate_own_rate_set(mac, &pAddStaParams->supportedRates, NULL, false,
-				  psessionEntry, NULL, NULL);
+				  pe_session, NULL, NULL);
 	if (IS_DOT11_MODE_HT(selfStaDot11Mode)) {
 		pAddStaParams->htCapable = true;
 #ifdef DISABLE_GF_FOR_INTEROP
-		if ((psessionEntry->pLimJoinReq != NULL)
-		    && (!psessionEntry->pLimJoinReq->bssDescription.
+		if ((pe_session->pLimJoinReq != NULL)
+		    && (!pe_session->pLimJoinReq->bssDescription.
 			aniIndicator)) {
 			pe_err("Turning off Greenfield, when adding self entry");
 			pAddStaParams->greenFieldCapable =
@@ -2781,37 +2781,37 @@
 		{
 			pAddStaParams->greenFieldCapable =
 				lim_get_ht_capability(mac, eHT_GREENFIELD,
-						      psessionEntry);
+						      pe_session);
 			pAddStaParams->ch_width =
 				mac->roam.configParam.channelBondingMode5GHz;
 			pAddStaParams->mimoPS =
 				lim_get_ht_capability(mac, eHT_MIMO_POWER_SAVE,
-						      psessionEntry);
+						      pe_session);
 			pAddStaParams->rifsMode =
 				lim_get_ht_capability(mac, eHT_RIFS_MODE,
-						      psessionEntry);
+						      pe_session);
 			pAddStaParams->lsigTxopProtection =
 				lim_get_ht_capability(mac, eHT_LSIG_TXOP_PROTECTION,
-						      psessionEntry);
+						      pe_session);
 			pAddStaParams->maxAmpduDensity =
 				lim_get_ht_capability(mac, eHT_MPDU_DENSITY,
-						      psessionEntry);
+						      pe_session);
 			pAddStaParams->maxAmpduSize =
 				lim_get_ht_capability(mac, eHT_MAX_RX_AMPDU_FACTOR,
-						      psessionEntry);
+						      pe_session);
 			pAddStaParams->maxAmsduSize =
 				lim_get_ht_capability(mac, eHT_MAX_AMSDU_LENGTH,
-						      psessionEntry);
+						      pe_session);
 			pAddStaParams->max_amsdu_num =
 				lim_get_ht_capability(mac, eHT_MAX_AMSDU_NUM,
-						      psessionEntry);
+						      pe_session);
 			pAddStaParams->fDsssCckMode40Mhz =
 				lim_get_ht_capability(mac, eHT_DSSS_CCK_MODE_40MHZ,
-						      psessionEntry);
+						      pe_session);
 			pAddStaParams->fShortGI20Mhz =
-					psessionEntry->htConfig.ht_sgi20;
+					pe_session->htConfig.ht_sgi20;
 			pAddStaParams->fShortGI40Mhz =
-					psessionEntry->htConfig.ht_sgi40;
+					pe_session->htConfig.ht_sgi40;
 			pe_debug("greenFieldCapable: %d maxAmpduDensity: %d "
 				 "maxAmpduSize: %d",
 				pAddStaParams->greenFieldCapable,
@@ -2834,13 +2834,13 @@
 	pAddStaParams->vhtCapable = IS_DOT11_MODE_VHT(selfStaDot11Mode);
 	if (pAddStaParams->vhtCapable) {
 		pAddStaParams->ch_width =
-			psessionEntry->ch_width;
+			pe_session->ch_width;
 		pe_debug("VHT WIDTH SET %d", pAddStaParams->ch_width);
 	}
 	pAddStaParams->vhtTxBFCapable =
-		psessionEntry->vht_config.su_beam_formee;
+		pe_session->vht_config.su_beam_formee;
 	pAddStaParams->enable_su_tx_bformer =
-		psessionEntry->vht_config.su_beam_former;
+		pe_session->vht_config.su_beam_former;
 	pe_debug("vhtCapable: %d vhtTxBFCapable %d, su_bfer %d",
 		pAddStaParams->vhtCapable, pAddStaParams->vhtTxBFCapable,
 		pAddStaParams->enable_su_tx_bformer);
@@ -2851,25 +2851,25 @@
 		mac->mlme_cfg->vht_caps.vht_cap_info.ampdu_len_exponent;
 
 	pAddStaParams->vhtTxMUBformeeCapable =
-				psessionEntry->vht_config.mu_beam_formee;
-	pAddStaParams->enableVhtpAid = psessionEntry->enableVhtpAid;
-	pAddStaParams->enableAmpduPs = psessionEntry->enableAmpduPs;
-	pAddStaParams->enableHtSmps = (psessionEntry->enableHtSmps &&
-				(!psessionEntry->supported_nss_1x1));
-	pAddStaParams->htSmpsconfig = psessionEntry->htSmpsvalue;
+				pe_session->vht_config.mu_beam_formee;
+	pAddStaParams->enableVhtpAid = pe_session->enableVhtpAid;
+	pAddStaParams->enableAmpduPs = pe_session->enableAmpduPs;
+	pAddStaParams->enableHtSmps = (pe_session->enableHtSmps &&
+				(!pe_session->supported_nss_1x1));
+	pAddStaParams->htSmpsconfig = pe_session->htSmpsvalue;
 	pAddStaParams->send_smps_action =
-		psessionEntry->send_smps_action;
+		pe_session->send_smps_action;
 
 	/* For Self STA get the LDPC capability from session i.e config.ini */
 	pAddStaParams->htLdpcCapable =
-		(psessionEntry->txLdpcIniFeatureEnabled & 0x01);
+		(pe_session->txLdpcIniFeatureEnabled & 0x01);
 	pAddStaParams->vhtLdpcCapable =
-		((psessionEntry->txLdpcIniFeatureEnabled >> 1) & 0x01);
+		((pe_session->txLdpcIniFeatureEnabled >> 1) & 0x01);
 
 	listenInterval = mac->mlme_cfg->sap_cfg.listen_interval;
 	pAddStaParams->listenInterval = (uint16_t) listenInterval;
 
-	if (QDF_P2P_CLIENT_MODE == psessionEntry->pePersona) {
+	if (QDF_P2P_CLIENT_MODE == pe_session->pePersona) {
 		pAddStaParams->p2pCapableSta = 1;
 	}
 
@@ -2882,18 +2882,18 @@
 		pAddStaParams->htLdpcCapable, pAddStaParams->vhtLdpcCapable,
 		pAddStaParams->p2pCapableSta);
 
-	if (psessionEntry->isNonRoamReassoc) {
+	if (pe_session->isNonRoamReassoc) {
 		pAddStaParams->nonRoamReassoc = 1;
-		psessionEntry->isNonRoamReassoc = 0;
+		pe_session->isNonRoamReassoc = 0;
 	}
 	pe_debug("sessionid: %d  Assoc ID: %d listenInterval = %d "
 			       "shortPreambleSupported: %d",
-		psessionEntry->smeSessionId, pAddStaParams->assocId,
+		pe_session->smeSessionId, pAddStaParams->assocId,
 		pAddStaParams->listenInterval,
 		pAddStaParams->shortPreambleSupported);
 
 	if (IS_DOT11_MODE_HE(selfStaDot11Mode))
-		lim_add_self_he_cap(pAddStaParams, psessionEntry);
+		lim_add_self_he_cap(pAddStaParams, pe_session);
 
 	msgQ.type = WMA_ADD_STA_REQ;
 	msgQ.reserved = 0;
@@ -2904,7 +2904,7 @@
 			       "Sending WMA_ADD_STA_REQ. (aid %d)",
 		MAC_ADDR_ARRAY(pAddStaParams->staMac),
 		pAddStaParams->sessionId, pAddStaParams->assocId);
-	MTRACE(mac_trace_msg_tx(mac, psessionEntry->peSessionId, msgQ.type));
+	MTRACE(mac_trace_msg_tx(mac, pe_session->peSessionId, msgQ.type));
 
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
@@ -2932,7 +2932,7 @@
  * @return None
  */
 
-void lim_teardown_infra_bss(tpAniSirGlobal mac, struct pe_session *psessionEntry)
+void lim_teardown_infra_bss(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
 	tSirMacAddr bcAddr = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
 
@@ -2942,7 +2942,7 @@
 	 */
 	lim_send_disassoc_mgmt_frame(mac,
 				     eSIR_MAC_DISASSOC_LEAVING_BSS_REASON,
-				     bcAddr, psessionEntry, false);
+				     bcAddr, pe_session, false);
 } /*** end lim_teardown_infra_bss() ***/
 
 /**
@@ -2966,15 +2966,15 @@
 void lim_handle_cnf_wait_timeout(tpAniSirGlobal mac, uint16_t staId)
 {
 	tpDphHashNode pStaDs;
-	struct pe_session *psessionEntry = NULL;
+	struct pe_session *pe_session = NULL;
 
-	psessionEntry = pe_find_session_by_session_id(mac,
+	pe_session = pe_find_session_by_session_id(mac,
 			mac->lim.limTimers.gpLimCnfWaitTimer[staId].sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session Does not exist for given sessionID");
 		return;
 	}
-	pStaDs = dph_get_hash_entry(mac, staId, &psessionEntry->dph.dphHashTable);
+	pStaDs = dph_get_hash_entry(mac, staId, &pe_session->dph.dphHashTable);
 
 	if (pStaDs == NULL) {
 		pe_err("No STA context in SIR_LIM_CNF_WAIT_TIMEOUT");
@@ -2987,14 +2987,14 @@
 				pStaDs->assocId);
 		lim_print_mac_addr(mac, pStaDs->staAddr, LOGD);
 
-		if (LIM_IS_AP_ROLE(psessionEntry)) {
+		if (LIM_IS_AP_ROLE(pe_session)) {
 			lim_reject_association(mac, pStaDs->staAddr,
 					       pStaDs->mlmStaContext.subType,
 					       true,
 					       pStaDs->mlmStaContext.authType,
 					       pStaDs->assocId, true,
 					       eSIR_MAC_UNSPEC_FAILURE_STATUS,
-					       psessionEntry);
+					       pe_session);
 		}
 		break;
 
@@ -3361,7 +3361,7 @@
 
 QDF_STATUS
 lim_del_bss(tpAniSirGlobal mac, tpDphHashNode pStaDs, uint16_t bssIdx,
-	    struct pe_session *psessionEntry)
+	    struct pe_session *pe_session)
 {
 	tpDeleteBssParams pDelBssParams = NULL;
 	struct scheduler_msg msgQ = {0};
@@ -3371,7 +3371,7 @@
 	if (!pDelBssParams)
 		return QDF_STATUS_E_NOMEM;
 
-	pDelBssParams->sessionId = psessionEntry->peSessionId; /* update PE session Id */
+	pDelBssParams->sessionId = pe_session->peSessionId; /* update PE session Id */
 
 	/* DPH was storing the AssocID in staID field, */
 	/* staID is actually assigned by HAL when AddSTA message is sent. */
@@ -3381,12 +3381,12 @@
 		pStaDs->mlmStaContext.mlmState = eLIM_MLM_WT_DEL_BSS_RSP_STATE;
 	} else
 		pDelBssParams->bssIdx = bssIdx;
-	psessionEntry->limMlmState = eLIM_MLM_WT_DEL_BSS_RSP_STATE;
+	pe_session->limMlmState = eLIM_MLM_WT_DEL_BSS_RSP_STATE;
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId,
+		       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
 		       eLIM_MLM_WT_DEL_BSS_RSP_STATE));
 
-	if ((psessionEntry->peSessionId ==
+	if ((pe_session->peSessionId ==
 	     mac->lim.limTimers.gLimJoinFailureTimer.sessionId)
 	    && (true ==
 		tx_timer_running(&mac->lim.limTimers.gLimJoinFailureTimer))) {
@@ -3395,18 +3395,18 @@
 
 	pDelBssParams->status = QDF_STATUS_SUCCESS;
 	pDelBssParams->respReqd = 1;
-	qdf_mem_copy(pDelBssParams->bssid, psessionEntry->bssId,
+	qdf_mem_copy(pDelBssParams->bssid, pe_session->bssId,
 		     sizeof(tSirMacAddr));
-	pDelBssParams->smesessionId = psessionEntry->smeSessionId;
+	pDelBssParams->smesessionId = pe_session->smeSessionId;
 	pe_debug("Sessionid %d : Sending HAL_DELETE_BSS_REQ "
 			  "for bss idx: %X BSSID:" MAC_ADDRESS_STR,
 		       pDelBssParams->sessionId, pDelBssParams->bssIdx,
-		       MAC_ADDR_ARRAY(psessionEntry->bssId));
+		       MAC_ADDR_ARRAY(pe_session->bssId));
 	/* we need to defer the message until we get the response back from HAL. */
 	SET_LIM_PROCESS_DEFD_MESGS(mac, false);
 
-	pe_debug("process_ho_fail = %d", psessionEntry->process_ho_fail);
-	if (psessionEntry->process_ho_fail)
+	pe_debug("process_ho_fail = %d", pe_session->process_ho_fail);
+	if (pe_session->process_ho_fail)
 		msgQ.type = WMA_DELETE_BSS_HO_FAIL_REQ;
 	else
 		msgQ.type = WMA_DELETE_BSS_REQ;
@@ -3414,7 +3414,7 @@
 	msgQ.bodyptr = pDelBssParams;
 	msgQ.bodyval = 0;
 
-	MTRACE(mac_trace_msg_tx(mac, psessionEntry->peSessionId, msgQ.type));
+	MTRACE(mac_trace_msg_tx(mac, pe_session->peSessionId, msgQ.type));
 
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
@@ -3432,13 +3432,13 @@
  * @mac_ctx Pointer to Global MAC structure
  * @pAddBssParams: parameters required for add bss params.
  * @vht_caps: VHT capabilities.
- * @psessionEntry : session entry.
+ * @pe_session : session entry.
  *
  * Return : void
  */
 static void lim_update_vhtcaps_assoc_resp(tpAniSirGlobal mac_ctx,
 		tpAddBssParams pAddBssParams,
-		tDot11fIEVHTCaps *vht_caps, struct pe_session *psessionEntry)
+		tDot11fIEVHTCaps *vht_caps, struct pe_session *pe_session)
 {
 	pAddBssParams->staContext.vht_caps =
 		((vht_caps->maxMPDULen <<
@@ -3494,16 +3494,16 @@
  * @mac_ctx Pointer to Global MAC structure
  * @pAddBssParams: parameters required for add bss params.
  * @vht_oper: VHT Operations to update.
- * @psessionEntry : session entry.
+ * @pe_session : session entry.
  *
  * Return : void
  */
 static void lim_update_vht_oper_assoc_resp(tpAniSirGlobal mac_ctx,
 		tpAddBssParams pAddBssParams,
-		tDot11fIEVHTOperation *vht_oper, struct pe_session *psessionEntry)
+		tDot11fIEVHTOperation *vht_oper, struct pe_session *pe_session)
 {
 	if (vht_oper->chanWidth &&
-			psessionEntry->ch_width) {
+			pe_session->ch_width) {
 		pAddBssParams->ch_width = vht_oper->chanWidth + 1;
 
 		pAddBssParams->ch_center_freq_seg0 =
@@ -3565,7 +3565,7 @@
 QDF_STATUS lim_sta_send_add_bss(tpAniSirGlobal mac, tpSirAssocRsp pAssocRsp,
 				   tpSchBeaconStruct pBeaconStruct,
 				   tpSirBssDescription bssDescription,
-				   uint8_t updateEntry, struct pe_session *psessionEntry)
+				   uint8_t updateEntry, struct pe_session *pe_session)
 {
 	struct scheduler_msg msgQ = {0};
 	tpAddBssParams pAddBssParams = NULL;
@@ -3592,11 +3592,11 @@
 		     sizeof(tSirMacAddr));
 	/* Fill in tAddBssParams selfMacAddr */
 	qdf_mem_copy(pAddBssParams->selfMacAddr,
-		     psessionEntry->selfMacAddr, sizeof(tSirMacAddr));
+		     pe_session->selfMacAddr, sizeof(tSirMacAddr));
 
 	pe_debug("sessionid: %d updateEntry: %d limsystemrole: %d",
-		psessionEntry->smeSessionId, updateEntry,
-		GET_LIM_SYSTEM_ROLE(psessionEntry));
+		pe_session->smeSessionId, updateEntry,
+		GET_LIM_SYSTEM_ROLE(pe_session));
 
 	pe_debug("BSSID: " MAC_ADDRESS_STR, MAC_ADDR_ARRAY(pAddBssParams->bssId));
 
@@ -3605,7 +3605,7 @@
 	pAddBssParams->operMode = BSS_OPERATIONAL_MODE_STA;
 
 	/* Update PE session ID */
-	pAddBssParams->sessionId = psessionEntry->peSessionId;
+	pAddBssParams->sessionId = pe_session->peSessionId;
 
 	pAddBssParams->beaconInterval = bssDescription->beaconInterval;
 
@@ -3625,7 +3625,7 @@
 		     pAssocRsp->supportedRates.rate,
 		     pAssocRsp->supportedRates.numRates);
 
-	if (IS_DOT11_MODE_11B(psessionEntry->dot11mode) &&
+	if (IS_DOT11_MODE_11B(pe_session->dot11mode) &&
 	    bssDescription->nwType != eSIR_11B_NW_TYPE) {
 		pAddBssParams->nwType = eSIR_11B_NW_TYPE;
 	} else {
@@ -3635,13 +3635,13 @@
 	pAddBssParams->shortSlotTimeSupported =
 		(uint8_t) pAssocRsp->capabilityInfo.shortSlotTime;
 	pAddBssParams->llaCoexist =
-		(uint8_t) psessionEntry->beaconParams.llaCoexist;
+		(uint8_t) pe_session->beaconParams.llaCoexist;
 	pAddBssParams->llbCoexist =
-		(uint8_t) psessionEntry->beaconParams.llbCoexist;
+		(uint8_t) pe_session->beaconParams.llbCoexist;
 	pAddBssParams->llgCoexist =
-		(uint8_t) psessionEntry->beaconParams.llgCoexist;
+		(uint8_t) pe_session->beaconParams.llgCoexist;
 	pAddBssParams->ht20Coexist =
-		(uint8_t) psessionEntry->beaconParams.ht20Coexist;
+		(uint8_t) pe_session->beaconParams.ht20Coexist;
 
 	pe_debug("BSS Type %d Beacon Interval: %d dtimPeriod: %d "
 		 "cfpCount: %d", pAddBssParams->bssType,
@@ -3660,16 +3660,16 @@
 		pAddBssParams->llaCoexist, pAddBssParams->llbCoexist,
 		pAddBssParams->llgCoexist, pAddBssParams->ht20Coexist);
 
-	pAddBssParams->dot11_mode = psessionEntry->dot11mode;
+	pAddBssParams->dot11_mode = pe_session->dot11mode;
 	pe_debug("dot11_mode: %d", pAddBssParams->dot11_mode);
 
-	if (IS_DOT11_MODE_HT(psessionEntry->dot11mode))
+	if (IS_DOT11_MODE_HT(pe_session->dot11mode))
 		chanWidthSupp = lim_get_ht_capability(mac,
 						eHT_SUPPORTED_CHANNEL_WIDTH_SET,
-						psessionEntry);
+						pe_session);
 
 	/* Use the advertised capabilities from the received beacon/PR */
-	if (IS_DOT11_MODE_HT(psessionEntry->dot11mode)
+	if (IS_DOT11_MODE_HT(pe_session->dot11mode)
 	    && (pAssocRsp->HTCaps.present)) {
 		pAddBssParams->htCapable = pAssocRsp->HTCaps.present;
 		pe_debug("htCapable: %d", pAddBssParams->htCapable);
@@ -3718,11 +3718,11 @@
 
 	pAddBssParams->currentOperChannel = bssDescription->channelId;
 	pe_debug("currentOperChannel %d", pAddBssParams->currentOperChannel);
-	if (psessionEntry->vhtCapability && (pAssocRsp->VHTCaps.present)) {
+	if (pe_session->vhtCapability && (pAssocRsp->VHTCaps.present)) {
 		pAddBssParams->vhtCapable = pAssocRsp->VHTCaps.present;
 		vht_caps =  &pAssocRsp->VHTCaps;
 		vht_oper = &pAssocRsp->VHTOperation;
-	} else if (psessionEntry->vhtCapability &&
+	} else if (pe_session->vhtCapability &&
 			pAssocRsp->vendor_vht_ie.VHTCaps.present){
 		pAddBssParams->vhtCapable =
 			pAssocRsp->vendor_vht_ie.VHTCaps.present;
@@ -3735,10 +3735,10 @@
 	if (pAddBssParams->vhtCapable) {
 		if (vht_oper != NULL)
 			lim_update_vht_oper_assoc_resp(mac, pAddBssParams,
-					vht_oper, psessionEntry);
+					vht_oper, pe_session);
 		if (vht_caps != NULL)
 			lim_update_vhtcaps_assoc_resp(mac, pAddBssParams,
-					vht_caps, psessionEntry);
+					vht_caps, pe_session);
 	}
 
 	pe_debug("vhtCapable %d TxChannelWidth %d center_freq_0 %d center_freq_1 %d",
@@ -3746,10 +3746,10 @@
 			pAddBssParams->ch_center_freq_seg0,
 			pAddBssParams->ch_center_freq_seg1);
 
-	if (lim_is_session_he_capable(psessionEntry) &&
+	if (lim_is_session_he_capable(pe_session) &&
 			(pAssocRsp->he_cap.present)) {
 		lim_add_bss_he_cap(pAddBssParams, pAssocRsp);
-		lim_add_bss_he_cfg(pAddBssParams, psessionEntry);
+		lim_add_bss_he_cfg(pAddBssParams, pe_session);
 	}
 	/*
 	 * Populate the STA-related parameters here
@@ -3769,7 +3769,7 @@
 	/* Fill Assoc id from the dph table */
 	pStaDs = dph_lookup_hash_entry(mac, pAddBssParams->staContext.bssId,
 				&pAddBssParams->staContext.assocId,
-				&psessionEntry->dph.dphHashTable);
+				&pe_session->dph.dphHashTable);
 	if (pStaDs == NULL) {
 		pe_err("Couldn't get assoc id for " "MAC ADDR: "
 			MAC_ADDRESS_STR,
@@ -3779,7 +3779,7 @@
 	}
 
 	pAddBssParams->staContext.uAPSD =
-		psessionEntry->gUapsdPerAcBitmask;
+		pe_session->gUapsdPerAcBitmask;
 
 	pAddBssParams->staContext.maxSPLen = 0;
 	pAddBssParams->staContext.shortPreambleSupported =
@@ -3791,7 +3791,7 @@
 			MAC_ADDR_ARRAY(pAddBssParams->staContext.staMac),
 			pAddBssParams->staContext.shortPreambleSupported);
 
-	if (IS_DOT11_MODE_HT(psessionEntry->dot11mode)
+	if (IS_DOT11_MODE_HT(pe_session->dot11mode)
 			&& pBeaconStruct->HTCaps.present) {
 		pAddBssParams->staContext.us32MaxAmpduDuration = 0;
 		pAddBssParams->staContext.htCapable = 1;
@@ -3803,11 +3803,11 @@
 				pAddBssParams->staContext.htCapable,
 				pAddBssParams->staContext.greenFieldCapable,
 				pAddBssParams->staContext.lsigTxopProtection);
-		if (psessionEntry->htConfig.ht_tx_stbc)
+		if (pe_session->htConfig.ht_tx_stbc)
 			pAddBssParams->staContext.stbc_capable =
 				pAssocRsp->HTCaps.rxSTBC;
 
-		if (psessionEntry->vhtCapability &&
+		if (pe_session->vhtCapability &&
 				(IS_BSS_VHT_CAPABLE(pBeaconStruct->VHTCaps) ||
 				 IS_BSS_VHT_CAPABLE(pBeaconStruct->
 						    vendor_vht_ie.VHTCaps))) {
@@ -3824,24 +3824,24 @@
 
 			if ((vht_caps != NULL) && (vht_caps->suBeamFormerCap ||
 				vht_caps->muBeamformerCap) &&
-				psessionEntry->vht_config.su_beam_formee)
+				pe_session->vht_config.su_beam_formee)
 				sta_context->vhtTxBFCapable = 1;
 
 			if ((vht_caps != NULL) && vht_caps->muBeamformerCap &&
-				psessionEntry->vht_config.mu_beam_formee)
+				pe_session->vht_config.mu_beam_formee)
 				sta_context->vhtTxMUBformeeCapable = 1;
 
 			if ((vht_caps != NULL) && vht_caps->suBeamformeeCap &&
-				psessionEntry->vht_config.su_beam_former)
+				pe_session->vht_config.su_beam_former)
 				sta_context->enable_su_tx_bformer = 1;
 
 			if (vht_caps && pAddBssParams->staContext.stbc_capable)
 				pAddBssParams->staContext.stbc_capable =
 					vht_caps->rxSTBC;
 		}
-		if (lim_is_session_he_capable(psessionEntry) &&
+		if (lim_is_session_he_capable(pe_session) &&
 		    pAssocRsp->he_cap.present) {
-			lim_intersect_ap_he_caps(psessionEntry,
+			lim_intersect_ap_he_caps(pe_session,
 						 pAddBssParams,
 						 NULL,
 						 pAssocRsp);
@@ -3852,13 +3852,13 @@
 		 * in limExtractApCapability function intersection of FW
 		 * advertised channel width and AP advertised channel
 		 * width has been taken into account for calculating
-		 * psessionEntry->ch_width
+		 * pe_session->ch_width
 		 */
 		if (chanWidthSupp &&
 		    ((pAssocRsp->HTCaps.supportedChannelWidthSet) ||
 		    (pBeaconStruct->HTCaps.supportedChannelWidthSet))) {
 			pAddBssParams->staContext.ch_width =
-					psessionEntry->ch_width;
+					pe_session->ch_width;
 		} else {
 			sta_context->ch_width =	CH_WIDTH_20MHZ;
 			if (!vht_cap_info.enable_txbf_20mhz)
@@ -3888,14 +3888,14 @@
 		 * values are set as 0 in session entry then we will
 		 * hardcode this values to 0.
 		 */
-		if (psessionEntry->htConfig.ht_sgi20) {
+		if (pe_session->htConfig.ht_sgi20) {
 			pAddBssParams->staContext.fShortGI20Mhz =
 				(uint8_t)pAssocRsp->HTCaps.shortGI20MHz;
 		} else {
 			pAddBssParams->staContext.fShortGI20Mhz = false;
 		}
 
-		if (psessionEntry->htConfig.ht_sgi40) {
+		if (pe_session->htConfig.ht_sgi40) {
 			pAddBssParams->staContext.fShortGI40Mhz =
 				(uint8_t) pAssocRsp->HTCaps.shortGI40MHz;
 		} else {
@@ -3918,7 +3918,7 @@
 			pAddBssParams->staContext.htLdpcCapable = 0;
 			pAddBssParams->staContext.vhtLdpcCapable = 0;
 		} else {
-			if (psessionEntry->txLdpcIniFeatureEnabled & 0x1)
+			if (pe_session->txLdpcIniFeatureEnabled & 0x1)
 				pAddBssParams->staContext.htLdpcCapable =
 				    (uint8_t) pAssocRsp->HTCaps.advCodingCap;
 			else
@@ -3931,7 +3931,7 @@
 				pe_debug("VHT Caps is in vendor Specific IE");
 			}
 			if (vht_caps != NULL &&
-				(psessionEntry->txLdpcIniFeatureEnabled & 0x2)) {
+				(pe_session->txLdpcIniFeatureEnabled & 0x2)) {
 				if (!is_vht_cap_in_vendor_ie)
 					pAddBssParams->staContext.vhtLdpcCapable =
 					  (uint8_t) pAssocRsp->VHTCaps.ldpcCodingCap;
@@ -3964,7 +3964,7 @@
 				pAddBssParams->staContext.vhtLdpcCapable);
 	}
 	pAddBssParams->staContext.smesessionId =
-		psessionEntry->smeSessionId;
+		pe_session->smeSessionId;
 	pAddBssParams->staContext.wpa_rsn = pBeaconStruct->rsnPresent;
 	pAddBssParams->staContext.wpa_rsn |=
 		(pBeaconStruct->wpaPresent << 1);
@@ -3974,7 +3974,7 @@
 	 * wpa_rsn
 	 */
 	if ((!pAddBssParams->staContext.wpa_rsn)
-			&& (psessionEntry->isOSENConnection))
+			&& (pe_session->isOSENConnection))
 		pAddBssParams->staContext.wpa_rsn = 1;
 	qdf_mem_copy(&pAddBssParams->staContext.capab_info,
 			&pAssocRsp->capabilityInfo,
@@ -3984,15 +3984,15 @@
 			sizeof(pAddBssParams->staContext.ht_caps));
 
 	/* If WMM IE or 802.11E IE is present then enable WMM */
-	if ((psessionEntry->limWmeEnabled && pAssocRsp->wmeEdcaPresent) ||
-		(psessionEntry->limQosEnabled && pAssocRsp->edcaPresent))
+	if ((pe_session->limWmeEnabled && pAssocRsp->wmeEdcaPresent) ||
+		(pe_session->limQosEnabled && pAssocRsp->edcaPresent))
 		pAddBssParams->staContext.wmmEnabled = 1;
 	else
 		pAddBssParams->staContext.wmmEnabled = 0;
 
 	/* Update the rates */
 	pStaDs = dph_get_hash_entry(mac, DPH_STA_HASH_INDEX_PEER,
-				&psessionEntry->dph.dphHashTable);
+				&pe_session->dph.dphHashTable);
 	if (pStaDs != NULL) {
 		qdf_mem_copy((uint8_t *) &pAddBssParams->staContext.
 				supportedRates,
@@ -4000,42 +4000,42 @@
 				sizeof(tSirSupportedRates));
 	} else
 		pe_err("could not Update the supported rates");
-	pAddBssParams->staContext.encryptType = psessionEntry->encryptType;
+	pAddBssParams->staContext.encryptType = pe_session->encryptType;
 
-	pAddBssParams->maxTxPower = psessionEntry->maxTxPower;
+	pAddBssParams->maxTxPower = pe_session->maxTxPower;
 	pe_debug("maxTxPower: %d", pAddBssParams->maxTxPower);
 	/* FIXME_GEN4 - Any other value that can be used for initialization? */
 	pAddBssParams->status = QDF_STATUS_SUCCESS;
 	pAddBssParams->respReqd = true;
 	/* update persona */
-	pAddBssParams->halPersona = (uint8_t) psessionEntry->pePersona;
+	pAddBssParams->halPersona = (uint8_t) pe_session->pePersona;
 
-	if (QDF_P2P_CLIENT_MODE == psessionEntry->pePersona)
+	if (QDF_P2P_CLIENT_MODE == pe_session->pePersona)
 		pAddBssParams->staContext.p2pCapableSta = 1;
 
-	pAddBssParams->bSpectrumMgtEnabled = psessionEntry->spectrumMgtEnabled;
+	pAddBssParams->bSpectrumMgtEnabled = pe_session->spectrumMgtEnabled;
 
 	pAddBssParams->extSetStaKeyParamValid = 0;
 	pe_debug("extSetStaKeyParamValid: %d",
 		pAddBssParams->extSetStaKeyParamValid);
 
 #ifdef WLAN_FEATURE_11W
-	if (psessionEntry->limRmfEnabled) {
+	if (pe_session->limRmfEnabled) {
 		pAddBssParams->rmfEnabled = 1;
 		pAddBssParams->staContext.rmfEnabled = 1;
 	}
 #endif
 
 	/* Set a new state for MLME */
-	if (eLIM_MLM_WT_ASSOC_RSP_STATE == psessionEntry->limMlmState)
-		psessionEntry->limMlmState =
+	if (eLIM_MLM_WT_ASSOC_RSP_STATE == pe_session->limMlmState)
+		pe_session->limMlmState =
 			eLIM_MLM_WT_ADD_BSS_RSP_ASSOC_STATE;
 	else
-		psessionEntry->limMlmState =
+		pe_session->limMlmState =
 			eLIM_MLM_WT_ADD_BSS_RSP_REASSOC_STATE;
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId,
-		       psessionEntry->limMlmState));
+		       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
+		       pe_session->limMlmState));
 
 	if (!pAddBssParams->staContext.htLdpcCapable)
 		pAddBssParams->staContext.ht_caps &=
@@ -4053,10 +4053,10 @@
 	pe_debug("bSpectrumMgtEnabled: %d halPersona: %d setting "
 		"LimMlm state to %d",
 		pAddBssParams->bSpectrumMgtEnabled, pAddBssParams->halPersona,
-		psessionEntry->limMlmState);
-	if (psessionEntry->isNonRoamReassoc)
+		pe_session->limMlmState);
+	if (pe_session->isNonRoamReassoc)
 		pAddBssParams->nonRoamReassoc = 1;
-	pAddBssParams->nss = psessionEntry->nss;
+	pAddBssParams->nss = pe_session->nss;
 	pe_debug("nss value: %d", pAddBssParams->nss);
 
 	/* we need to defer the message until we get the response back from HAL. */
@@ -4069,7 +4069,7 @@
 		pAddBssParams->ch_width = CH_WIDTH_10MHZ;
 		pAddBssParams->staContext.ch_width = CH_WIDTH_10MHZ;
 	}
-	lim_set_sta_ctx_twt(&pAddBssParams->staContext, psessionEntry);
+	lim_set_sta_ctx_twt(&pAddBssParams->staContext, pe_session);
 
 	msgQ.type = WMA_ADD_BSS_REQ;
 	/** @ToDo : Update the Global counter to keeptrack of the PE <--> HAL messages*/
@@ -4078,8 +4078,8 @@
 	msgQ.bodyval = 0;
 
 	pe_debug("SessionId: %d Sending WMA_ADD_BSS_REQ",
-		psessionEntry->peSessionId);
-	MTRACE(mac_trace_msg_tx(mac, psessionEntry->peSessionId, msgQ.type));
+		pe_session->peSessionId);
+	MTRACE(mac_trace_msg_tx(mac, pe_session->peSessionId, msgQ.type));
 
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
@@ -4098,7 +4098,7 @@
 }
 
 QDF_STATUS lim_sta_send_add_bss_pre_assoc(tpAniSirGlobal mac, uint8_t updateEntry,
-					     struct pe_session *psessionEntry)
+					     struct pe_session *pe_session)
 {
 	struct scheduler_msg msgQ = {0};
 	tpAddBssParams pAddBssParams = NULL;
@@ -4110,7 +4110,7 @@
 	uint32_t listen_interval = MLME_CFG_LISTEN_INTERVAL;
 
 	tpSirBssDescription bssDescription =
-		&psessionEntry->pLimJoinReq->bssDescription;
+		&pe_session->pLimJoinReq->bssDescription;
 
 	pBeaconStruct = qdf_mem_malloc(sizeof(tSchBeaconStruct));
 	if (!pBeaconStruct)
@@ -4130,16 +4130,16 @@
 	if (mac->lim.gLimProtectionControl !=
 	    MLME_FORCE_POLICY_PROTECTION_DISABLE)
 		lim_decide_sta_protection_on_assoc(mac, pBeaconStruct,
-						   psessionEntry);
+						   pe_session);
 	qdf_mem_copy(pAddBssParams->bssId, bssDescription->bssId,
 		     sizeof(tSirMacAddr));
 
 	/* Fill in tAddBssParams selfMacAddr */
 	qdf_mem_copy(pAddBssParams->selfMacAddr,
-		     psessionEntry->selfMacAddr, sizeof(tSirMacAddr));
+		     pe_session->selfMacAddr, sizeof(tSirMacAddr));
 	pe_debug("sessionid: %d updateEntry = %d limsystemrole = %d",
-		psessionEntry->smeSessionId, updateEntry,
-		GET_LIM_SYSTEM_ROLE(psessionEntry));
+		pe_session->smeSessionId, updateEntry,
+		GET_LIM_SYSTEM_ROLE(pe_session));
 
 	pe_debug("BSSID: " MAC_ADDRESS_STR,
 		MAC_ADDR_ARRAY(pAddBssParams->bssId));
@@ -4148,7 +4148,7 @@
 	 * concurrent data transfer.
 	 */
 
-	pAddBssParams->bssType = psessionEntry->bssType; /* eSIR_INFRASTRUCTURE_MODE; */
+	pAddBssParams->bssType = pe_session->bssType; /* eSIR_INFRASTRUCTURE_MODE; */
 	pAddBssParams->operMode = BSS_OPERATIONAL_MODE_STA;
 
 	pAddBssParams->beaconInterval = bssDescription->beaconInterval;
@@ -4175,13 +4175,13 @@
 	pAddBssParams->shortSlotTimeSupported =
 		(uint8_t) pBeaconStruct->capabilityInfo.shortSlotTime;
 	pAddBssParams->llaCoexist =
-		(uint8_t) psessionEntry->beaconParams.llaCoexist;
+		(uint8_t) pe_session->beaconParams.llaCoexist;
 	pAddBssParams->llbCoexist =
-		(uint8_t) psessionEntry->beaconParams.llbCoexist;
+		(uint8_t) pe_session->beaconParams.llbCoexist;
 	pAddBssParams->llgCoexist =
-		(uint8_t) psessionEntry->beaconParams.llgCoexist;
+		(uint8_t) pe_session->beaconParams.llgCoexist;
 	pAddBssParams->ht20Coexist =
-		(uint8_t) psessionEntry->beaconParams.ht20Coexist;
+		(uint8_t) pe_session->beaconParams.ht20Coexist;
 
 	pe_debug("BSS Type %d Beacon Interval: %d dtimPeriod: %d "
 		"cfpCount: %d", pAddBssParams->bssType,
@@ -4200,7 +4200,7 @@
 		pAddBssParams->llaCoexist, pAddBssParams->llbCoexist,
 		pAddBssParams->llgCoexist, pAddBssParams->ht20Coexist);
 	/* Use the advertised capabilities from the received beacon/PR */
-	if (IS_DOT11_MODE_HT(psessionEntry->dot11mode)
+	if (IS_DOT11_MODE_HT(pe_session->dot11mode)
 	    && (pBeaconStruct->HTCaps.present)) {
 		pAddBssParams->htCapable = pBeaconStruct->HTCaps.present;
 		pe_debug("htCapable: %d", pAddBssParams->htCapable);
@@ -4214,7 +4214,7 @@
 			chanWidthSupp =
 				lim_get_ht_capability(mac,
 						      eHT_SUPPORTED_CHANNEL_WIDTH_SET,
-						      psessionEntry);
+						      pe_session);
 			if ((pBeaconStruct->HTCaps.supportedChannelWidthSet)
 			    && (chanWidthSupp)) {
 				pAddBssParams->ch_width =
@@ -4259,7 +4259,7 @@
 	pe_debug("currentOperChannel %d",
 		pAddBssParams->currentOperChannel);
 
-	if (psessionEntry->vhtCapability &&
+	if (pe_session->vhtCapability &&
 		(IS_BSS_VHT_CAPABLE(pBeaconStruct->VHTCaps) ||
 		 IS_BSS_VHT_CAPABLE(pBeaconStruct->vendor_vht_ie.VHTCaps))) {
 
@@ -4284,10 +4284,10 @@
 		 * in limExtractApCapability function intersection of FW
 		 * advertised channel width and AP advertised channel width has
 		 * been taken into account for calculating
-		 * psessionEntry->ch_width
+		 * pe_session->ch_width
 		 */
 		pAddBssParams->ch_width =
-			psessionEntry->ch_width;
+			pe_session->ch_width;
 		pAddBssParams->staContext.maxAmpduSize =
 			SIR_MAC_GET_VHT_MAX_AMPDU_EXPO(
 					pAddBssParams->staContext.vht_caps);
@@ -4295,10 +4295,10 @@
 		pAddBssParams->vhtCapable = 0;
 	}
 
-	if (lim_is_session_he_capable(psessionEntry) &&
+	if (lim_is_session_he_capable(pe_session) &&
 	    pBeaconStruct->he_cap.present) {
 		lim_update_bss_he_capable(mac, pAddBssParams);
-		lim_add_bss_he_cfg(pAddBssParams, psessionEntry);
+		lim_add_bss_he_cfg(pAddBssParams, pe_session);
 	}
 	pe_debug("vhtCapable %d vhtTxChannelWidthSet %d center_freq_seg0 - %d, center_freq_seg1 - %d",
 		pAddBssParams->vhtCapable, pAddBssParams->ch_width,
@@ -4327,10 +4327,10 @@
 			MAC_ADDR_ARRAY(pAddBssParams->staContext.staMac),
 			pAddBssParams->staContext.shortPreambleSupported);
 
-	pAddBssParams->dot11_mode = psessionEntry->dot11mode;
+	pAddBssParams->dot11_mode = pe_session->dot11mode;
 	pe_debug("dot11_mode:%d", pAddBssParams->dot11_mode);
 
-	if (IS_DOT11_MODE_HT(psessionEntry->dot11mode)
+	if (IS_DOT11_MODE_HT(pe_session->dot11mode)
 			&& (pBeaconStruct->HTCaps.present)) {
 		pAddBssParams->staContext.us32MaxAmpduDuration = 0;
 		pAddBssParams->staContext.htCapable = 1;
@@ -4342,7 +4342,7 @@
 				pAddBssParams->staContext.htCapable,
 				pAddBssParams->staContext.greenFieldCapable,
 				pAddBssParams->staContext.lsigTxopProtection);
-		if (psessionEntry->vhtCapability &&
+		if (pe_session->vhtCapability &&
 			(IS_BSS_VHT_CAPABLE(pBeaconStruct->VHTCaps) ||
 			 IS_BSS_VHT_CAPABLE(
 				 pBeaconStruct->vendor_vht_ie.VHTCaps))) {
@@ -4355,25 +4355,25 @@
 
 			if ((vht_caps != NULL) && (vht_caps->suBeamFormerCap ||
 				vht_caps->muBeamformerCap) &&
-				psessionEntry->vht_config.su_beam_formee)
+				pe_session->vht_config.su_beam_formee)
 				pAddBssParams->staContext.vhtTxBFCapable = 1;
 
 			if ((vht_caps != NULL) && vht_caps->muBeamformerCap &&
-				psessionEntry->vht_config.mu_beam_formee)
+				pe_session->vht_config.mu_beam_formee)
 				pAddBssParams->staContext.vhtTxMUBformeeCapable
 						= 1;
 
 			if ((vht_caps != NULL) && vht_caps->suBeamformeeCap &&
-				psessionEntry->vht_config.su_beam_former)
+				pe_session->vht_config.su_beam_former)
 				pAddBssParams->staContext.enable_su_tx_bformer
 						= 1;
 
 			pe_debug("StaContext: su_tx_bfer %d",
 				pAddBssParams->staContext.enable_su_tx_bformer);
 		}
-		if (lim_is_session_he_capable(psessionEntry) &&
+		if (lim_is_session_he_capable(pe_session) &&
 			pBeaconStruct->he_cap.present)
-			lim_intersect_ap_he_caps(psessionEntry, pAddBssParams,
+			lim_intersect_ap_he_caps(pe_session, pAddBssParams,
 					      pBeaconStruct, NULL);
 
 		if ((pBeaconStruct->HTCaps.supportedChannelWidthSet) &&
@@ -4409,14 +4409,14 @@
 		 * from AP supports. If these values are set as 0 in ini file
 		 * then we will hardcode this values to 0.
 		 */
-		if (true == psessionEntry->htConfig.ht_sgi20)
+		if (true == pe_session->htConfig.ht_sgi20)
 			pAddBssParams->staContext.fShortGI20Mhz =
 				(uint8_t)pBeaconStruct->HTCaps.shortGI20MHz;
 		else
 				pAddBssParams->staContext.fShortGI20Mhz =
 					false;
 
-		if (true == psessionEntry->htConfig.ht_sgi40)
+		if (true == pe_session->htConfig.ht_sgi40)
 			pAddBssParams->staContext.fShortGI40Mhz =
 				(uint8_t) pBeaconStruct->HTCaps.shortGI40MHz;
 		else
@@ -4429,7 +4429,7 @@
 			pAddBssParams->staContext.htLdpcCapable = 0;
 			pAddBssParams->staContext.vhtLdpcCapable = 0;
 		} else {
-			if (psessionEntry->txLdpcIniFeatureEnabled & 0x1)
+			if (pe_session->txLdpcIniFeatureEnabled & 0x1)
 				pAddBssParams->staContext.htLdpcCapable =
 					(uint8_t) pBeaconStruct->HTCaps.
 						advCodingCap;
@@ -4444,7 +4444,7 @@
 				pe_debug("VHT Caps are in vendor Specific IE");
 			}
 			if (vht_caps != NULL &&
-				(psessionEntry->txLdpcIniFeatureEnabled & 0x2))
+				(pe_session->txLdpcIniFeatureEnabled & 0x2))
 				pAddBssParams->staContext.vhtLdpcCapable =
 					(uint8_t) vht_caps->ldpcCodingCap;
 			else
@@ -4474,9 +4474,9 @@
 	 * If WMM IE or 802.11E IE is not present
 	 * and AP is HT AP then enable WMM
 	 */
-	if ((psessionEntry->limWmeEnabled && (pBeaconStruct->wmeEdcaPresent ||
+	if ((pe_session->limWmeEnabled && (pBeaconStruct->wmeEdcaPresent ||
 			pAddBssParams->staContext.htCapable)) ||
-			(psessionEntry->limQosEnabled &&
+			(pe_session->limQosEnabled &&
 			 (pBeaconStruct->edcaPresent ||
 			  pAddBssParams->staContext.htCapable)))
 		pAddBssParams->staContext.wmmEnabled = 1;
@@ -4488,46 +4488,46 @@
 			&pAddBssParams->staContext.
 			supportedRates,
 			pBeaconStruct->HTCaps.supportedMCSSet,
-			false, psessionEntry,
+			false, pe_session,
 			&pBeaconStruct->VHTCaps,
 			&pBeaconStruct->he_cap);
 
-	pAddBssParams->staContext.encryptType = psessionEntry->encryptType;
+	pAddBssParams->staContext.encryptType = pe_session->encryptType;
 
-	pAddBssParams->maxTxPower = psessionEntry->maxTxPower;
+	pAddBssParams->maxTxPower = pe_session->maxTxPower;
 	pe_debug("maxTxPower: %d", pAddBssParams->maxTxPower);
 
 	pAddBssParams->status = QDF_STATUS_SUCCESS;
 	pAddBssParams->respReqd = true;
 
-	pAddBssParams->staContext.smesessionId = psessionEntry->smeSessionId;
-	pAddBssParams->staContext.sessionId = psessionEntry->peSessionId;
-	pAddBssParams->sessionId = psessionEntry->peSessionId;
+	pAddBssParams->staContext.smesessionId = pe_session->smeSessionId;
+	pAddBssParams->staContext.sessionId = pe_session->peSessionId;
+	pAddBssParams->sessionId = pe_session->peSessionId;
 
-	pAddBssParams->halPersona = (uint8_t) psessionEntry->pePersona; /* update persona */
+	pAddBssParams->halPersona = (uint8_t) pe_session->pePersona; /* update persona */
 
-	pAddBssParams->bSpectrumMgtEnabled = psessionEntry->spectrumMgtEnabled;
+	pAddBssParams->bSpectrumMgtEnabled = pe_session->spectrumMgtEnabled;
 
 	pAddBssParams->extSetStaKeyParamValid = 0;
 	pe_debug("extSetStaKeyParamValid: %d",
 		pAddBssParams->extSetStaKeyParamValid);
 
 #ifdef WLAN_FEATURE_11W
-	if (psessionEntry->limRmfEnabled) {
+	if (pe_session->limRmfEnabled) {
 		pAddBssParams->rmfEnabled = 1;
 		pAddBssParams->staContext.rmfEnabled = 1;
 	}
 #endif
 
-	pAddBssParams->nss = psessionEntry->nss;
+	pAddBssParams->nss = pe_session->nss;
 	pe_debug("nss value: %d", pAddBssParams->nss);
 
 	/* Set a new state for MLME */
-	psessionEntry->limMlmState = eLIM_MLM_WT_ADD_BSS_RSP_PREASSOC_STATE;
+	pe_session->limMlmState = eLIM_MLM_WT_ADD_BSS_RSP_PREASSOC_STATE;
 
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId,
-		       psessionEntry->limMlmState));
+		       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
+		       pe_session->limMlmState));
 
 	pe_debug("staContext wmmEnabled: %d encryptType: %d "
 			       "p2pCapableSta: %d",
@@ -4538,7 +4538,7 @@
 	pe_debug("bSpectrumMgtEnabled: %d halPersona: %d setting "
 			       "LimMlm state to %d",
 		pAddBssParams->bSpectrumMgtEnabled, pAddBssParams->halPersona,
-		psessionEntry->limMlmState);
+		pe_session->limMlmState);
 
 	/* we need to defer the message until we get the response back from HAL. */
 	SET_LIM_PROCESS_DEFD_MESGS(mac, false);
@@ -4558,8 +4558,8 @@
 	msgQ.bodyval = 0;
 
 	pe_debug("SessionId:%d Sending WMA_ADD_BSS_REQ",
-		psessionEntry->peSessionId);
-	MTRACE(mac_trace_msg_tx(mac, psessionEntry->peSessionId, msgQ.type));
+		pe_session->peSessionId);
+	MTRACE(mac_trace_msg_tx(mac, pe_session->peSessionId, msgQ.type));
 
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
@@ -4586,7 +4586,7 @@
  * @mac:          mac global context
  * @pStaDs:        sta dph node
  * @statusCode:    status code
- * @psessionEntry: session context
+ * @pe_session: session context
  *
  * deletes DPH entry, changes the MLM mode for station, calls
  * lim_send_del_sta_cnf
@@ -4596,7 +4596,7 @@
 void
 lim_prepare_and_send_del_sta_cnf(tpAniSirGlobal mac, tpDphHashNode pStaDs,
 				 tSirResultCodes statusCode,
-				 struct pe_session *psessionEntry)
+				 struct pe_session *pe_session)
 {
 	uint16_t staDsAssocId = 0;
 	struct qdf_mac_addr sta_dsaddr;
@@ -4611,20 +4611,20 @@
 		     pStaDs->staAddr, QDF_MAC_ADDR_SIZE);
 
 	mlmStaContext = pStaDs->mlmStaContext;
-	if (LIM_IS_AP_ROLE(psessionEntry))
-		lim_release_peer_idx(mac, pStaDs->assocId, psessionEntry);
+	if (LIM_IS_AP_ROLE(pe_session))
+		lim_release_peer_idx(mac, pStaDs->assocId, pe_session);
 
 	lim_delete_dph_hash_entry(mac, pStaDs->staAddr, pStaDs->assocId,
-				  psessionEntry);
+				  pe_session);
 
-	if (LIM_IS_STA_ROLE(psessionEntry)) {
-		psessionEntry->limMlmState = eLIM_MLM_IDLE_STATE;
+	if (LIM_IS_STA_ROLE(pe_session)) {
+		pe_session->limMlmState = eLIM_MLM_IDLE_STATE;
 		MTRACE(mac_trace(mac, TRACE_CODE_MLM_STATE,
-				 psessionEntry->peSessionId,
-				 psessionEntry->limMlmState));
+				 pe_session->peSessionId,
+				 pe_session->limMlmState));
 	}
 	lim_send_del_sta_cnf(mac, sta_dsaddr, staDsAssocId, mlmStaContext,
-			     statusCode, psessionEntry);
+			     statusCode, pe_session);
 }
 
 /** -------------------------------------------------------------
@@ -4722,14 +4722,14 @@
 /* Util API to check if the txpower supported by STA is within range */
 QDF_STATUS lim_is_dot11h_power_capabilities_in_range(tpAniSirGlobal mac,
 							tSirAssocReq *assoc,
-							struct pe_session *psessionEntry)
+							struct pe_session *pe_session)
 {
 	int8_t localMaxTxPower;
 	uint32_t localPwrConstraint;
 
 	localMaxTxPower =
 		cfg_get_regulatory_max_transmit_power(mac,
-						      psessionEntry->currentOperChannel);
+						      pe_session->currentOperChannel);
 
 	if (wlan_cfg_get_int
 		    (mac, WNI_CFG_LOCAL_POWER_CONSTRAINT,
@@ -4786,13 +4786,13 @@
    \param  frameType - 802.11 frame type
    \param  frame - frame buffer
    \param  sessionId - id for the current session
-   \param  psessionEntry - PE session context
+   \param  pe_session - PE session context
    \return none
    -------------------------------------------------------------*/
 void lim_send_sme_unprotected_mgmt_frame_ind(tpAniSirGlobal mac, uint8_t frameType,
 					     uint8_t *frame, uint32_t frameLen,
 					     uint16_t sessionId,
-					     struct pe_session *psessionEntry)
+					     struct pe_session *pe_session)
 {
 	struct scheduler_msg mmhMsg = {0};
 	tSirSmeUnprotMgmtFrameInd *pSirSmeMgmtFrame = NULL;
@@ -4824,26 +4824,26 @@
    \fn     lim_send_sme_tsm_ie_ind
    \brief  Forwards the TSM IE information to SME.
    \param  tpAniSirGlobal    mac
-   \param  psessionEntry - PE session context
+   \param  pe_session - PE session context
    \param  tid - traffic id
    \param  state - tsm state (enabled/disabled)
    \param  measurementInterval - measurement interval
    \return none
    -------------------------------------------------------------*/
-void lim_send_sme_tsm_ie_ind(tpAniSirGlobal mac, struct pe_session *psessionEntry,
+void lim_send_sme_tsm_ie_ind(tpAniSirGlobal mac, struct pe_session *pe_session,
 			     uint8_t tid, uint8_t state, uint16_t measInterval)
 {
 	struct scheduler_msg mmhMsg = {0};
 	tpSirSmeTsmIEInd pSirSmeTsmIeInd = NULL;
 
-	if (!mac || !psessionEntry)
+	if (!mac || !pe_session)
 		return;
 
 	pSirSmeTsmIeInd = qdf_mem_malloc(sizeof(tSirSmeTsmIEInd));
 	if (!pSirSmeTsmIeInd)
 		return;
 
-	pSirSmeTsmIeInd->sessionId = psessionEntry->smeSessionId;
+	pSirSmeTsmIeInd->sessionId = pe_session->smeSessionId;
 	pSirSmeTsmIeInd->tsmIe.tsid = tid;
 	pSirSmeTsmIeInd->tsmIe.state = state;
 	pSirSmeTsmIeInd->tsmIe.msmt_interval = measInterval;
diff --git a/core/mac/src/pe/lim/lim_assoc_utils.h b/core/mac/src/pe/lim/lim_assoc_utils.h
index ecf1259..90ddf9f 100644
--- a/core/mac/src/pe/lim/lim_assoc_utils.h
+++ b/core/mac/src/pe/lim/lim_assoc_utils.h
@@ -62,7 +62,7 @@
 					 tpSirSupportedRates pRates,
 					 uint8_t *pSupportedMCSSet,
 					 uint8_t basicOnly,
-					 struct pe_session *psessionEntry,
+					 struct pe_session *pe_session,
 					 tDot11fIEVHTCaps *pVHTCaps,
 					 tDot11fIEhe_cap *he_caps);
 
@@ -70,7 +70,7 @@
 					tpSirSupportedRates pRates,
 					uint8_t *pSupportedMCSSet,
 					uint8_t basicOnly,
-					struct pe_session *psessionEntry,
+					struct pe_session *pe_session,
 					tDot11fIEVHTCaps *pVHTCaps,
 					tDot11fIEhe_cap *he_caps);
 
@@ -80,7 +80,7 @@
 			       tSirMacRateSet *pOperRateSet,
 			       tSirMacRateSet *pExtRateSet,
 			       uint8_t *pSupportedMCSSet,
-			       struct pe_session *psessionEntry,
+			       struct pe_session *pe_session,
 			       tDot11fIEVHTCaps *pVHTCaps,
 			       tDot11fIEhe_cap *he_caps);
 
@@ -98,13 +98,13 @@
 bool lim_is_reassoc_in_progress(tpAniSirGlobal, struct pe_session *);
 
 void lim_handle_add_bss_in_re_assoc_context(tpAniSirGlobal mac,
-		tpDphHashNode pStaDs, struct pe_session *psessionEntry);
+		tpDphHashNode pStaDs, struct pe_session *pe_session);
 void lim_handle_del_bss_in_re_assoc_context(tpAniSirGlobal mac,
-		   tpDphHashNode pStaDs, struct pe_session *psessionEntry);
+		   tpDphHashNode pStaDs, struct pe_session *pe_session);
 void lim_send_retry_reassoc_req_frame(tpAniSirGlobal mac,
-	      tLimMlmReassocReq *pMlmReassocReq, struct pe_session *psessionEntry);
+	      tLimMlmReassocReq *pMlmReassocReq, struct pe_session *pe_session);
 QDF_STATUS lim_add_ft_sta_self(tpAniSirGlobal mac, uint16_t assocId,
-				  struct pe_session *psessionEntry);
+				  struct pe_session *pe_session);
 #else
 static inline void lim_restore_pre_reassoc_state(tpAniSirGlobal mac_ctx,
 			tSirResultCodes res_code, uint16_t prot_status,
@@ -115,13 +115,13 @@
 			      struct pe_session *pe_session)
 {}
 static inline void lim_handle_add_bss_in_re_assoc_context(tpAniSirGlobal mac,
-		tpDphHashNode pStaDs, struct pe_session *psessionEntry)
+		tpDphHashNode pStaDs, struct pe_session *pe_session)
 {}
 static inline void lim_handle_del_bss_in_re_assoc_context(tpAniSirGlobal mac,
-		   tpDphHashNode pStaDs, struct pe_session *psessionEntry)
+		   tpDphHashNode pStaDs, struct pe_session *pe_session)
 {}
 static inline void lim_send_retry_reassoc_req_frame(tpAniSirGlobal mac,
-	      tLimMlmReassocReq *pMlmReassocReq, struct pe_session *psessionEntry)
+	      tLimMlmReassocReq *pMlmReassocReq, struct pe_session *pe_session)
 {}
 static inline bool lim_is_reassoc_in_progress(tpAniSirGlobal mac_ctx,
 		struct pe_session *pe_session)
@@ -129,7 +129,7 @@
 	return false;
 }
 static inline QDF_STATUS lim_add_ft_sta_self(tpAniSirGlobal mac,
-		uint16_t assocId, struct pe_session *psessionEntry)
+		uint16_t assocId, struct pe_session *pe_session)
 {
 	return QDF_STATUS_SUCCESS;
 }
@@ -150,7 +150,7 @@
 void
 lim_send_del_sta_cnf(tpAniSirGlobal mac, struct qdf_mac_addr sta_dsaddr,
 		     uint16_t staDsAssocId, tLimMlmStaContext mlmStaContext,
-		     tSirResultCodes statusCode, struct pe_session *psessionEntry);
+		     tSirResultCodes statusCode, struct pe_session *pe_session);
 
 void lim_handle_cnf_wait_timeout(tpAniSirGlobal mac, uint16_t staId);
 void lim_delete_dph_hash_entry(tpAniSirGlobal, tSirMacAddr, uint16_t, struct pe_session *);
@@ -159,18 +159,18 @@
 					 tpSirMacMgmtHdr, struct pe_session *);
 void lim_update_re_assoc_globals(tpAniSirGlobal mac,
 				 tpSirAssocRsp pAssocRsp,
-				 struct pe_session *psessionEntry);
+				 struct pe_session *pe_session);
 
 void lim_update_assoc_sta_datas(tpAniSirGlobal mac,
 				tpDphHashNode pStaDs, tpSirAssocRsp pAssocRsp,
-				struct pe_session *psessionEntry);
+				struct pe_session *pe_session);
 
 QDF_STATUS lim_sta_send_add_bss(tpAniSirGlobal mac, tpSirAssocRsp pAssocRsp,
 				   tpSchBeaconStruct pBeaconStruct,
 				   tpSirBssDescription bssDescription,
-				   uint8_t updateEntry, struct pe_session *psessionEntry);
+				   uint8_t updateEntry, struct pe_session *pe_session);
 QDF_STATUS lim_sta_send_add_bss_pre_assoc(tpAniSirGlobal mac, uint8_t updateEntry,
-					     struct pe_session *psessionEntry);
+					     struct pe_session *pe_session);
 
 void lim_prepare_and_send_del_sta_cnf(tpAniSirGlobal mac, tpDphHashNode pStaDs,
 				      tSirResultCodes statusCode, struct pe_session *);
@@ -202,15 +202,15 @@
 void lim_send_sme_unprotected_mgmt_frame_ind(tpAniSirGlobal mac, uint8_t frameType,
 					     uint8_t *frame, uint32_t frameLen,
 					     uint16_t sessionId,
-					     struct pe_session *psessionEntry);
+					     struct pe_session *pe_session);
 #endif
 
 #ifdef FEATURE_WLAN_ESE
-void lim_send_sme_tsm_ie_ind(tpAniSirGlobal mac, struct pe_session *psessionEntry,
+void lim_send_sme_tsm_ie_ind(tpAniSirGlobal mac, struct pe_session *pe_session,
 			     uint8_t tid, uint8_t state, uint16_t measInterval);
 #else
 static inline void lim_send_sme_tsm_ie_ind(tpAniSirGlobal mac,
-	struct pe_session *psessionEntry, uint8_t tid,
+	struct pe_session *pe_session, uint8_t tid,
 	uint8_t state, uint16_t measInterval)
 {}
 #endif /* FEATURE_WLAN_ESE */
@@ -218,7 +218,7 @@
 QDF_STATUS lim_populate_vht_mcs_set(tpAniSirGlobal mac,
 				       tpSirSupportedRates pRates,
 				       tDot11fIEVHTCaps *pPeerVHTCaps,
-				       struct pe_session *psessionEntry,
+				       struct pe_session *pe_session,
 				       uint8_t nss);
 
 #endif /* __LIM_ASSOC_UTILS_H */
diff --git a/core/mac/src/pe/lim/lim_ft.c b/core/mac/src/pe/lim/lim_ft.c
index 1dc747c..b75ab51 100644
--- a/core/mac/src/pe/lim/lim_ft.c
+++ b/core/mac/src/pe/lim/lim_ft.c
@@ -43,15 +43,15 @@
 				     tLimMlmSetKeysReq * pMlmSetKeysReq,
 				     uint16_t staIdx,
 				     uint8_t defWEPIdx,
-				     struct pe_session *sessionEntry, bool sendRsp);
+				     struct pe_session *pe_session, bool sendRsp);
 
 /*--------------------------------------------------------------------------
    Initialize the FT variables.
    ------------------------------------------------------------------------*/
-void lim_ft_open(tpAniSirGlobal mac, struct pe_session *psessionEntry)
+void lim_ft_open(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
-	if (psessionEntry)
-		qdf_mem_set(&psessionEntry->ftPEContext, sizeof(tftPEContext),
+	if (pe_session)
+		qdf_mem_set(&pe_session->ftPEContext, sizeof(tftPEContext),
 			    0);
 }
 
@@ -68,46 +68,46 @@
 	}
 }
 
-void lim_ft_cleanup(tpAniSirGlobal mac, struct pe_session *psessionEntry)
+void lim_ft_cleanup(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
-	if (NULL == psessionEntry) {
-		pe_err("psessionEntry is NULL");
+	if (NULL == pe_session) {
+		pe_err("pe_session is NULL");
 		return;
 	}
 
 	/* Nothing to be done if the session is not in STA mode */
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
-		pe_err("psessionEntry is not in STA mode");
+	if (!LIM_IS_STA_ROLE(pe_session)) {
+		pe_err("pe_session is not in STA mode");
 		return;
 	}
 
-	if (NULL != psessionEntry->ftPEContext.pFTPreAuthReq) {
+	if (NULL != pe_session->ftPEContext.pFTPreAuthReq) {
 		pe_debug("Freeing pFTPreAuthReq: %pK",
-			       psessionEntry->ftPEContext.pFTPreAuthReq);
+			       pe_session->ftPEContext.pFTPreAuthReq);
 		if (NULL !=
-		    psessionEntry->ftPEContext.pFTPreAuthReq->
+		    pe_session->ftPEContext.pFTPreAuthReq->
 		    pbssDescription) {
-			qdf_mem_free(psessionEntry->ftPEContext.pFTPreAuthReq->
+			qdf_mem_free(pe_session->ftPEContext.pFTPreAuthReq->
 				     pbssDescription);
-			psessionEntry->ftPEContext.pFTPreAuthReq->
+			pe_session->ftPEContext.pFTPreAuthReq->
 			pbssDescription = NULL;
 		}
-		qdf_mem_free(psessionEntry->ftPEContext.pFTPreAuthReq);
-		psessionEntry->ftPEContext.pFTPreAuthReq = NULL;
+		qdf_mem_free(pe_session->ftPEContext.pFTPreAuthReq);
+		pe_session->ftPEContext.pFTPreAuthReq = NULL;
 	}
 
-	if (psessionEntry->ftPEContext.pAddBssReq) {
-		qdf_mem_free(psessionEntry->ftPEContext.pAddBssReq);
-		psessionEntry->ftPEContext.pAddBssReq = NULL;
+	if (pe_session->ftPEContext.pAddBssReq) {
+		qdf_mem_free(pe_session->ftPEContext.pAddBssReq);
+		pe_session->ftPEContext.pAddBssReq = NULL;
 	}
 
-	if (psessionEntry->ftPEContext.pAddStaReq) {
-		qdf_mem_free(psessionEntry->ftPEContext.pAddStaReq);
-		psessionEntry->ftPEContext.pAddStaReq = NULL;
+	if (pe_session->ftPEContext.pAddStaReq) {
+		qdf_mem_free(pe_session->ftPEContext.pAddStaReq);
+		pe_session->ftPEContext.pAddStaReq = NULL;
 	}
 
 	/* The session is being deleted, cleanup the contents */
-	qdf_mem_set(&psessionEntry->ftPEContext, sizeof(tftPEContext), 0);
+	qdf_mem_set(&pe_session->ftPEContext, sizeof(tftPEContext), 0);
 }
 
 #if defined(WLAN_FEATURE_HOST_ROAM) || defined(WLAN_FEATURE_ROAM_OFFLOAD)
@@ -129,7 +129,7 @@
 
 	/* Nothing to be done if the session is not in STA mode */
 	if (!LIM_IS_STA_ROLE(ft_session)) {
-		pe_err("psessionEntry is not in STA mode");
+		pe_err("pe_session is not in STA mode");
 		return;
 	}
 
@@ -472,7 +472,7 @@
  * lim_fill_dot11mode() - to fill 802.11 mode in FT session
  * @mac_ctx: pointer to mac ctx
  * @ft_session: FT session
- * @psessionEntry: PE session
+ * @pe_session: PE session
  *
  * This API fills FT session's dot11mode either from pe session or
  * from CFG depending on the condition.
@@ -480,14 +480,14 @@
  * Return: none
  */
 static void lim_fill_dot11mode(tpAniSirGlobal mac_ctx,
-			struct pe_session *ft_session, struct pe_session *psessionEntry)
+			struct pe_session *ft_session, struct pe_session *pe_session)
 {
 	uint32_t self_dot11_mode;
 
-	if (psessionEntry->ftPEContext.pFTPreAuthReq &&
+	if (pe_session->ftPEContext.pFTPreAuthReq &&
 			!mac_ctx->roam.configParam.isRoamOffloadEnabled) {
 		ft_session->dot11mode =
-			psessionEntry->ftPEContext.pFTPreAuthReq->dot11mode;
+			pe_session->ftPEContext.pFTPreAuthReq->dot11mode;
 	} else {
 		wlan_cfg_get_int(mac_ctx, WNI_CFG_DOT11_MODE, &self_dot11_mode);
 		pe_debug("selfDot11Mode: %d", self_dot11_mode);
@@ -499,17 +499,17 @@
  * lim_fill_dot11mode() - to fill 802.11 mode in FT session
  * @mac_ctx: pointer to mac ctx
  * @ft_session: FT session
- * @psessionEntry: PE session
+ * @pe_session: PE session
  *
  * This API fills FT session's dot11mode either from pe session.
  *
  * Return: none
  */
 static void lim_fill_dot11mode(tpAniSirGlobal mac_ctx,
-			struct pe_session *ft_session, struct pe_session *psessionEntry)
+			struct pe_session *ft_session, struct pe_session *pe_session)
 {
 	ft_session->dot11mode =
-			psessionEntry->ftPEContext.pFTPreAuthReq->dot11mode;
+			pe_session->ftPEContext.pFTPreAuthReq->dot11mode;
 }
 #endif
 
@@ -522,7 +522,7 @@
  *------------------------------------------------------------------*/
 void lim_fill_ft_session(tpAniSirGlobal mac,
 			 tpSirBssDescription pbssDescription,
-			 struct pe_session *ft_session, struct pe_session *psessionEntry)
+			 struct pe_session *ft_session, struct pe_session *pe_session)
 {
 	uint8_t currentBssUapsd;
 	int8_t localPowerConstraint;
@@ -535,15 +535,15 @@
 		return;
 
 	/* Retrieve the session that was already created and update the entry */
-	ft_session->limWmeEnabled = psessionEntry->limWmeEnabled;
-	ft_session->limQosEnabled = psessionEntry->limQosEnabled;
-	ft_session->limWsmEnabled = psessionEntry->limWsmEnabled;
-	ft_session->lim11hEnable = psessionEntry->lim11hEnable;
-	ft_session->isOSENConnection = psessionEntry->isOSENConnection;
+	ft_session->limWmeEnabled = pe_session->limWmeEnabled;
+	ft_session->limQosEnabled = pe_session->limQosEnabled;
+	ft_session->limWsmEnabled = pe_session->limWsmEnabled;
+	ft_session->lim11hEnable = pe_session->lim11hEnable;
+	ft_session->isOSENConnection = pe_session->isOSENConnection;
 
 	/* Fields to be filled later */
 	ft_session->pLimJoinReq = NULL;
-	ft_session->smeSessionId = psessionEntry->smeSessionId;
+	ft_session->smeSessionId = pe_session->smeSessionId;
 	ft_session->transactionId = 0;
 
 	lim_extract_ap_capabilities(mac, (uint8_t *) pbssDescription->ieFields,
@@ -565,7 +565,7 @@
 	ft_session->ssId.length = pBeaconStruct->ssId.length;
 	qdf_mem_copy(ft_session->ssId.ssId, pBeaconStruct->ssId.ssId,
 		     ft_session->ssId.length);
-	lim_fill_dot11mode(mac, ft_session, psessionEntry);
+	lim_fill_dot11mode(mac, ft_session, pe_session);
 
 	pe_debug("dot11mode: %d", ft_session->dot11mode);
 	ft_session->vhtCapability =
@@ -629,15 +629,15 @@
 	}
 
 	sir_copy_mac_addr(ft_session->selfMacAddr,
-			  psessionEntry->selfMacAddr);
+			  pe_session->selfMacAddr);
 	sir_copy_mac_addr(ft_session->limReAssocbssId,
 			  pbssDescription->bssId);
-	sir_copy_mac_addr(ft_session->prev_ap_bssid, psessionEntry->bssId);
+	sir_copy_mac_addr(ft_session->prev_ap_bssid, pe_session->bssId);
 
 	/* Store beaconInterval */
 	ft_session->beaconParams.beaconInterval =
 		pbssDescription->beaconInterval;
-	ft_session->bssType = psessionEntry->bssType;
+	ft_session->bssType = pe_session->bssType;
 
 	ft_session->statypeForBss = STA_ENTRY_PEER;
 	ft_session->nwType = pbssDescription->nwType;
@@ -672,17 +672,17 @@
 	ft_session->limReassocBssPropCap =
 		ft_session->limCurrentBssPropCap;
 
-	ft_session->is11Rconnection = psessionEntry->is11Rconnection;
+	ft_session->is11Rconnection = pe_session->is11Rconnection;
 #ifdef FEATURE_WLAN_ESE
-	ft_session->isESEconnection = psessionEntry->isESEconnection;
+	ft_session->isESEconnection = pe_session->isESEconnection;
 	ft_session->is_ese_version_ie_present =
 		pBeaconStruct->is_ese_ver_ie_present;
 #endif
 	ft_session->isFastTransitionEnabled =
-		psessionEntry->isFastTransitionEnabled;
+		pe_session->isFastTransitionEnabled;
 
 	ft_session->isFastRoamIniFeatureEnabled =
-		psessionEntry->isFastRoamIniFeatureEnabled;
+		pe_session->isFastRoamIniFeatureEnabled;
 
 #ifdef FEATURE_WLAN_ESE
 	ft_session->maxTxPower =
@@ -696,7 +696,7 @@
 		regMax, localPowerConstraint,
 		mac->roam.configParam.nTxPowerCap,
 		ft_session->maxTxPower);
-	if (!lim_is_roam_synch_in_progress(psessionEntry)) {
+	if (!lim_is_roam_synch_in_progress(pe_session)) {
 		ft_session->limPrevSmeState = ft_session->limSmeState;
 		ft_session->limSmeState = eLIM_SME_WT_REASSOC_STATE;
 		MTRACE(mac_trace(mac,
@@ -704,17 +704,17 @@
 				ft_session->peSessionId,
 				ft_session->limSmeState));
 	}
-	ft_session->encryptType = psessionEntry->encryptType;
+	ft_session->encryptType = pe_session->encryptType;
 #ifdef WLAN_FEATURE_11W
-	ft_session->limRmfEnabled = psessionEntry->limRmfEnabled;
+	ft_session->limRmfEnabled = pe_session->limRmfEnabled;
 #endif
 	if ((ft_session->limRFBand == BAND_2G) &&
 		(ft_session->htSupportedChannelWidthSet ==
 		eHT_CHANNEL_WIDTH_40MHZ))
 		lim_init_obss_params(mac, ft_session);
 
-	ft_session->enableHtSmps = psessionEntry->enableHtSmps;
-	ft_session->htSmpsvalue = psessionEntry->htSmpsvalue;
+	ft_session->enableHtSmps = pe_session->enableHtSmps;
+	ft_session->htSmpsvalue = pe_session->htSmpsvalue;
 	/*
 	 * By default supported NSS 1x1 is set to true
 	 * and later on updated while determining session
@@ -740,7 +740,7 @@
 {
 	tAddBssParams *pAddBssParams;
 	tSirFTUpdateKeyInfo *pKeyInfo;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint8_t sessionId;
 
 	/* Sanity Check */
@@ -750,9 +750,9 @@
 
 	pKeyInfo = (tSirFTUpdateKeyInfo *) pMsgBuf;
 
-	psessionEntry = pe_find_session_by_bssid(mac, pKeyInfo->bssid.bytes,
+	pe_session = pe_find_session_by_bssid(mac, pKeyInfo->bssid.bytes,
 						 &sessionId);
-	if (NULL == psessionEntry) {
+	if (NULL == pe_session) {
 		pe_err("%s: Unable to find session for the following bssid",
 			       __func__);
 		lim_print_mac_addr(mac, pKeyInfo->bssid.bytes, LOGE);
@@ -760,40 +760,40 @@
 	}
 
 	/* Nothing to be done if the session is not in STA mode */
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
-		pe_err("psessionEntry is not in STA mode");
+	if (!LIM_IS_STA_ROLE(pe_session)) {
+		pe_err("pe_session is not in STA mode");
 		return false;
 	}
 
-	if (NULL == psessionEntry->ftPEContext.pAddBssReq) {
+	if (NULL == pe_session->ftPEContext.pAddBssReq) {
 		/* AddBss Req is NULL, save the keys to configure them later. */
 		tpLimMlmSetKeysReq pMlmSetKeysReq =
-			&psessionEntry->ftPEContext.PreAuthKeyInfo.
+			&pe_session->ftPEContext.PreAuthKeyInfo.
 			extSetStaKeyParam;
 
 		qdf_mem_zero(pMlmSetKeysReq, sizeof(tLimMlmSetKeysReq));
 		qdf_copy_macaddr(&pMlmSetKeysReq->peer_macaddr,
 				 &pKeyInfo->bssid);
-		pMlmSetKeysReq->sessionId = psessionEntry->peSessionId;
-		pMlmSetKeysReq->smesessionId = psessionEntry->smeSessionId;
+		pMlmSetKeysReq->sessionId = pe_session->peSessionId;
+		pMlmSetKeysReq->smesessionId = pe_session->smeSessionId;
 		pMlmSetKeysReq->edType = pKeyInfo->keyMaterial.edType;
 		pMlmSetKeysReq->numKeys = pKeyInfo->keyMaterial.numKeys;
 		qdf_mem_copy((uint8_t *) &pMlmSetKeysReq->key,
 			     (uint8_t *) &pKeyInfo->keyMaterial.key,
 			     sizeof(tSirKeys));
 
-		psessionEntry->ftPEContext.PreAuthKeyInfo.
+		pe_session->ftPEContext.PreAuthKeyInfo.
 		extSetStaKeyParamValid = true;
 
-		if (psessionEntry->ftPEContext.pAddStaReq == NULL) {
+		if (pe_session->ftPEContext.pAddStaReq == NULL) {
 			pe_err("pAddStaReq is NULL");
 			lim_send_set_sta_key_req(mac, pMlmSetKeysReq, 0, 0,
-						 psessionEntry, false);
-			psessionEntry->ftPEContext.PreAuthKeyInfo.
+						 pe_session, false);
+			pe_session->ftPEContext.PreAuthKeyInfo.
 			extSetStaKeyParamValid = false;
 		}
 	} else {
-		pAddBssParams = psessionEntry->ftPEContext.pAddBssReq;
+		pAddBssParams = pe_session->ftPEContext.pAddBssReq;
 
 		/* Store the key information in the ADD BSS parameters */
 		pAddBssParams->extSetStaKeyParamValid = 1;
@@ -865,7 +865,7 @@
 	uint16_t assocId = 0;
 	tSirMacAddr peerMacAddr;
 	uint8_t rspReqd = 1;
-	struct pe_session *psessionEntry = NULL;
+	struct pe_session *pe_session = NULL;
 	int i = 0;
 
 	pe_debug(" Received AGGR_QOS_RSP from HAL");
@@ -875,23 +875,23 @@
 		pe_err("NULL pAggrQosRspMsg");
 		return;
 	}
-	psessionEntry =
+	pe_session =
 		pe_find_session_by_session_id(mac, pAggrQosRspMsg->sessionId);
-	if (NULL == psessionEntry) {
+	if (NULL == pe_session) {
 		pe_err("Cant find session entry for %s", __func__);
 		if (pAggrQosRspMsg != NULL) {
 			qdf_mem_free(pAggrQosRspMsg);
 		}
 		return;
 	}
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
-		pe_err("psessionEntry is not in STA mode");
+	if (!LIM_IS_STA_ROLE(pe_session)) {
+		pe_err("pe_session is not in STA mode");
 		return;
 	}
 	for (i = 0; i < HAL_QOS_NUM_AC_MAX; i++) {
 		if ((((1 << i) & pAggrQosRspMsg->tspecIdx)) &&
 		    (pAggrQosRspMsg->status[i] != QDF_STATUS_SUCCESS)) {
-			sir_copy_mac_addr(peerMacAddr, psessionEntry->bssId);
+			sir_copy_mac_addr(peerMacAddr, pe_session->bssId);
 			addTsParam.staIdx = pAggrQosRspMsg->staIdx;
 			addTsParam.sessionId = pAggrQosRspMsg->sessionId;
 			addTsParam.tspec = pAggrQosRspMsg->tspec[i];
@@ -899,10 +899,10 @@
 			lim_send_delts_req_action_frame(mac, peerMacAddr, rspReqd,
 							&addTsParam.tspec.tsinfo,
 							&addTsParam.tspec,
-							psessionEntry);
+							pe_session);
 			pSta =
 				dph_lookup_assoc_id(mac, addTsParam.staIdx, &assocId,
-						    &psessionEntry->dph.dphHashTable);
+						    &pe_session->dph.dphHashTable);
 			if (pSta != NULL) {
 				lim_admit_control_delete_ts(mac, assocId,
 							    &addTsParam.tspec.
@@ -913,7 +913,7 @@
 		}
 	}
 	lim_ft_send_aggr_qos_rsp(mac, rspReqd, pAggrQosRspMsg,
-				 psessionEntry->smeSessionId);
+				 pe_session->smeSessionId);
 	if (pAggrQosRspMsg != NULL) {
 		qdf_mem_free(pAggrQosRspMsg);
 	}
@@ -925,7 +925,7 @@
 	struct scheduler_msg msg = {0};
 	tSirAggrQosReq *aggrQosReq = (tSirAggrQosReq *) pMsgBuf;
 	tpAggrAddTsParams pAggrAddTsParam;
-	struct pe_session *psessionEntry = NULL;
+	struct pe_session *pe_session = NULL;
 	tpLimTspecInfo tspecInfo;
 	uint8_t ac;
 	tpDphHashNode pSta;
@@ -937,10 +937,10 @@
 	if (!pAggrAddTsParam)
 		return QDF_STATUS_E_NOMEM;
 
-	psessionEntry = pe_find_session_by_bssid(mac, aggrQosReq->bssid.bytes,
+	pe_session = pe_find_session_by_bssid(mac, aggrQosReq->bssid.bytes,
 						 &sessionId);
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("psession Entry Null for sessionId: %d",
 			       aggrQosReq->sessionId);
 		qdf_mem_free(pAggrAddTsParam);
@@ -948,25 +948,25 @@
 	}
 
 	/* Nothing to be done if the session is not in STA mode */
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
-		pe_err("psessionEntry is not in STA mode");
+	if (!LIM_IS_STA_ROLE(pe_session)) {
+		pe_err("pe_session is not in STA mode");
 		qdf_mem_free(pAggrAddTsParam);
 		return QDF_STATUS_E_FAILURE;
 	}
 
 	pSta = dph_lookup_hash_entry(mac, aggrQosReq->bssid.bytes, &aid,
-				     &psessionEntry->dph.dphHashTable);
+				     &pe_session->dph.dphHashTable);
 	if (pSta == NULL) {
 		pe_err("Station context not found - ignoring AddTsRsp");
 		qdf_mem_free(pAggrAddTsParam);
 		return QDF_STATUS_E_FAILURE;
 	}
 
-	pAggrAddTsParam->staIdx = psessionEntry->staId;
+	pAggrAddTsParam->staIdx = pe_session->staId;
 	/* Fill in the sessionId specific to PE */
 	pAggrAddTsParam->sessionId = sessionId;
 	pAggrAddTsParam->tspecIdx = aggrQosReq->aggrInfo.tspecIdx;
-	pAggrAddTsParam->vdev_id = psessionEntry->smeSessionId;
+	pAggrAddTsParam->vdev_id = pe_session->smeSessionId;
 
 	for (i = 0; i < HAL_QOS_NUM_AC_MAX; i++) {
 		if (aggrQosReq->aggrInfo.tspecIdx & (1 << i)) {
@@ -983,13 +983,13 @@
 			 */
 			if (pTspec->tsinfo.traffic.psb == 1) {
 				lim_set_tspec_uapsd_mask_per_session(mac,
-								     psessionEntry,
+								     pe_session,
 								     &pTspec->
 								     tsinfo,
 								     SET_UAPSD_MASK);
 			} else {
 				lim_set_tspec_uapsd_mask_per_session(mac,
-								     psessionEntry,
+								     pe_session,
 								     &pTspec->
 								     tsinfo,
 								     CLEAR_UAPSD_MASK);
@@ -1004,33 +1004,33 @@
 			ac = upToAc(pTspec->tsinfo.traffic.userPrio);
 			if (pTspec->tsinfo.traffic.direction ==
 			    SIR_MAC_DIRECTION_UPLINK) {
-				psessionEntry->
+				pe_session->
 				gAcAdmitMask
 				[SIR_MAC_DIRECTION_UPLINK] |=
 					(1 << ac);
 			} else if (pTspec->tsinfo.traffic.direction ==
 				   SIR_MAC_DIRECTION_DNLINK) {
-				psessionEntry->
+				pe_session->
 				gAcAdmitMask
 				[SIR_MAC_DIRECTION_DNLINK] |=
 					(1 << ac);
 			} else if (pTspec->tsinfo.traffic.direction ==
 				   SIR_MAC_DIRECTION_BIDIR) {
-				psessionEntry->
+				pe_session->
 				gAcAdmitMask
 				[SIR_MAC_DIRECTION_UPLINK] |=
 					(1 << ac);
-				psessionEntry->
+				pe_session->
 					gAcAdmitMask
 					[SIR_MAC_DIRECTION_DNLINK] |=
 					(1 << ac);
 			}
 			lim_set_active_edca_params(mac,
-						   psessionEntry->gLimEdcaParams,
-						   psessionEntry);
+						   pe_session->gLimEdcaParams,
+						   pe_session);
 
 				lim_send_edca_params(mac,
-					     psessionEntry->gLimEdcaParamsActive,
+					     pe_session->gLimEdcaParamsActive,
 					     pSta->bssId, false);
 
 			if (QDF_STATUS_SUCCESS !=
@@ -1050,7 +1050,7 @@
 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
 	if (!mac->mlme_cfg->lfr.lfr3_roaming_offload ||
 	    (mac->mlme_cfg->lfr.lfr3_roaming_offload &&
-	     !psessionEntry->is11Rconnection))
+	     !pe_session->is11Rconnection))
 #endif
 	{
 	msg.type = WMA_AGGR_QOS_REQ;
@@ -1061,7 +1061,7 @@
 	 * WMA_AGGR_QOS_RSP from HAL.
 	 */
 	SET_LIM_PROCESS_DEFD_MESGS(mac, false);
-	MTRACE(mac_trace_msg_tx(mac, psessionEntry->peSessionId, msg.type));
+	MTRACE(mac_trace_msg_tx(mac, pe_session->peSessionId, msg.type));
 
 	if (QDF_STATUS_SUCCESS != wma_post_ctrl_msg(mac, &msg)) {
 			pe_warn("wma_post_ctrl_msg() failed");
@@ -1078,7 +1078,7 @@
 
 		/* Send the Aggr QoS response to SME */
 		lim_ft_send_aggr_qos_rsp(mac, true, pAggrAddTsParam,
-					 psessionEntry->smeSessionId);
+					 pe_session->smeSessionId);
 		if (pAggrAddTsParam != NULL) {
 			qdf_mem_free(pAggrAddTsParam);
 		}
diff --git a/core/mac/src/pe/lim/lim_ft_preauth.c b/core/mac/src/pe/lim/lim_ft_preauth.c
index 71e29c6..ce198c9 100644
--- a/core/mac/src/pe/lim/lim_ft_preauth.c
+++ b/core/mac/src/pe/lim/lim_ft_preauth.c
@@ -37,7 +37,7 @@
 /**
  * lim_ft_cleanup_pre_auth_info() - Cleanup preauth related information
  * @mac: Global MAC Context
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * This routine is called to free the FT context, session and other
  * information used during preauth operation.
@@ -45,52 +45,52 @@
  * Return: None
  */
 void lim_ft_cleanup_pre_auth_info(tpAniSirGlobal mac,
-		struct pe_session *psessionEntry)
+		struct pe_session *pe_session)
 {
 	struct pe_session *pReAssocSessionEntry = NULL;
 	uint8_t sessionId = 0;
 
-	if (!psessionEntry) {
-		pe_err("psessionEntry is NULL");
+	if (!pe_session) {
+		pe_err("pe_session is NULL");
 		return;
 	}
 
 	/* Nothing to be done if the session is not in STA mode */
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
-		pe_err("psessionEntry is not in STA mode");
+	if (!LIM_IS_STA_ROLE(pe_session)) {
+		pe_err("pe_session is not in STA mode");
 		return;
 	}
 
-	if (psessionEntry->ftPEContext.pFTPreAuthReq) {
+	if (pe_session->ftPEContext.pFTPreAuthReq) {
 		pReAssocSessionEntry =
 			pe_find_session_by_bssid(mac,
-						 psessionEntry->ftPEContext.
+						 pe_session->ftPEContext.
 						 pFTPreAuthReq->preAuthbssId,
 						 &sessionId);
 
-		if (psessionEntry->ftPEContext.pFTPreAuthReq->
+		if (pe_session->ftPEContext.pFTPreAuthReq->
 		    pbssDescription) {
-			qdf_mem_free(psessionEntry->ftPEContext.pFTPreAuthReq->
+			qdf_mem_free(pe_session->ftPEContext.pFTPreAuthReq->
 				     pbssDescription);
-			psessionEntry->ftPEContext.pFTPreAuthReq->
+			pe_session->ftPEContext.pFTPreAuthReq->
 			pbssDescription = NULL;
 		}
-		qdf_mem_free(psessionEntry->ftPEContext.pFTPreAuthReq);
-		psessionEntry->ftPEContext.pFTPreAuthReq = NULL;
+		qdf_mem_free(pe_session->ftPEContext.pFTPreAuthReq);
+		pe_session->ftPEContext.pFTPreAuthReq = NULL;
 	}
 
-	if (psessionEntry->ftPEContext.pAddBssReq) {
-		qdf_mem_free(psessionEntry->ftPEContext.pAddBssReq);
-		psessionEntry->ftPEContext.pAddBssReq = NULL;
+	if (pe_session->ftPEContext.pAddBssReq) {
+		qdf_mem_free(pe_session->ftPEContext.pAddBssReq);
+		pe_session->ftPEContext.pAddBssReq = NULL;
 	}
 
-	if (psessionEntry->ftPEContext.pAddStaReq) {
-		qdf_mem_free(psessionEntry->ftPEContext.pAddStaReq);
-		psessionEntry->ftPEContext.pAddStaReq = NULL;
+	if (pe_session->ftPEContext.pAddStaReq) {
+		qdf_mem_free(pe_session->ftPEContext.pAddStaReq);
+		pe_session->ftPEContext.pAddStaReq = NULL;
 	}
 
 	/* The session is being deleted, cleanup the contents */
-	qdf_mem_set(&psessionEntry->ftPEContext, sizeof(tftPEContext), 0);
+	qdf_mem_set(&pe_session->ftPEContext, sizeof(tftPEContext), 0);
 
 	/* Delete the session created while handling pre-auth response */
 	if (pReAssocSessionEntry) {
@@ -214,7 +214,7 @@
  * @mac: Global MAC Context
  * @status: Status Code
  * @data: pre-auth data
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * This routine will trigger the sending of authentication frame
  * to the peer.
@@ -222,25 +222,25 @@
  * Return: None
  */
 void lim_perform_ft_pre_auth(tpAniSirGlobal mac, QDF_STATUS status,
-			     uint32_t *data, struct pe_session *psessionEntry)
+			     uint32_t *data, struct pe_session *pe_session)
 {
 	tSirMacAuthFrameBody authFrame;
 	unsigned int session_id;
 	eCsrAuthType auth_type;
 
-	if (NULL == psessionEntry) {
-		pe_err("psessionEntry is NULL");
+	if (NULL == pe_session) {
+		pe_err("pe_session is NULL");
 		return;
 	}
-	session_id = psessionEntry->smeSessionId;
+	session_id = pe_session->smeSessionId;
 	auth_type =
 		mac->roam.roamSession[session_id].connectedProfile.AuthType;
 
-	if (psessionEntry->is11Rconnection &&
-	    psessionEntry->ftPEContext.pFTPreAuthReq) {
+	if (pe_session->is11Rconnection &&
+	    pe_session->ftPEContext.pFTPreAuthReq) {
 		/* Only 11r assoc has FT IEs */
 		if ((auth_type != eCSR_AUTH_TYPE_OPEN_SYSTEM) &&
-			(psessionEntry->ftPEContext.pFTPreAuthReq->ft_ies_length
+			(pe_session->ftPEContext.pFTPreAuthReq->ft_ies_length
 									== 0)) {
 			pe_err("FTIEs for Auth Req Seq 1 is absent");
 			goto preauth_fail;
@@ -253,13 +253,13 @@
 	}
 
 	/* Nothing to be done if the session is not in STA mode */
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
-		pe_err("psessionEntry is not in STA mode");
+	if (!LIM_IS_STA_ROLE(pe_session)) {
+		pe_err("pe_session is not in STA mode");
 		return;
 	}
 	pe_debug("Entered wait auth2 state for FT (old session %pK)",
-			psessionEntry);
-	if (psessionEntry->is11Rconnection) {
+			pe_session);
+	if (pe_session->is11Rconnection) {
 		/* Now we are on the right channel and need to send out Auth1
 		 * and receive Auth2
 		 */
@@ -274,75 +274,75 @@
 	authFrame.authStatusCode = 0;
 
 	mac->lim.limTimers.g_lim_periodic_auth_retry_timer.sessionId =
-				psessionEntry->peSessionId;
+				pe_session->peSessionId;
 
 	/* Start timer here to come back to operating channel */
 	mac->lim.limTimers.gLimFTPreAuthRspTimer.sessionId =
-		psessionEntry->peSessionId;
+		pe_session->peSessionId;
 	if (TX_SUCCESS !=
 	    tx_timer_activate(&mac->lim.limTimers.gLimFTPreAuthRspTimer)) {
 		pe_err("FT Auth Rsp Timer Start Failed");
 		goto preauth_fail;
 	}
 	MTRACE(mac_trace(mac, TRACE_CODE_TIMER_ACTIVATE,
-		psessionEntry->peSessionId, eLIM_FT_PREAUTH_RSP_TIMER));
+		pe_session->peSessionId, eLIM_FT_PREAUTH_RSP_TIMER));
 
 	pe_debug("FT Auth Rsp Timer Started");
 #ifdef FEATURE_WLAN_DIAG_SUPPORT
 	lim_diag_event_report(mac, WLAN_PE_DIAG_ROAM_AUTH_START_EVENT,
-			mac->lim.pSessionEntry, QDF_STATUS_SUCCESS, QDF_STATUS_SUCCESS);
+			mac->lim.pe_session, QDF_STATUS_SUCCESS, QDF_STATUS_SUCCESS);
 #endif
-	if (psessionEntry->ftPEContext.pFTPreAuthReq)
+	if (pe_session->ftPEContext.pFTPreAuthReq)
 		lim_send_auth_mgmt_frame(mac, &authFrame,
-			 psessionEntry->ftPEContext.pFTPreAuthReq->preAuthbssId,
-			 LIM_NO_WEP_IN_FC, psessionEntry);
+			 pe_session->ftPEContext.pFTPreAuthReq->preAuthbssId,
+			 LIM_NO_WEP_IN_FC, pe_session);
 
 	return;
 
 preauth_fail:
-	lim_handle_ft_pre_auth_rsp(mac, QDF_STATUS_E_FAILURE, NULL, 0, psessionEntry);
+	lim_handle_ft_pre_auth_rsp(mac, QDF_STATUS_E_FAILURE, NULL, 0, pe_session);
 	return;
 }
 
 /**
  * lim_ft_setup_auth_session() - Fill the FT Session
  * @mac: Global MAC Context
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * Setup the session and the add bss req for the pre-auth AP.
  *
  * Return: Success or Failure Status
  */
 QDF_STATUS lim_ft_setup_auth_session(tpAniSirGlobal mac,
-					struct pe_session *psessionEntry)
+					struct pe_session *pe_session)
 {
 	struct pe_session *ft_session = NULL;
 	uint8_t sessionId = 0;
 
 	ft_session =
-		pe_find_session_by_bssid(mac, psessionEntry->limReAssocbssId,
+		pe_find_session_by_bssid(mac, pe_session->limReAssocbssId,
 					 &sessionId);
 	if (ft_session == NULL) {
 		pe_err("No session found for bssid");
-		lim_print_mac_addr(mac, psessionEntry->limReAssocbssId, LOGE);
+		lim_print_mac_addr(mac, pe_session->limReAssocbssId, LOGE);
 		return QDF_STATUS_E_FAILURE;
 	}
 
 	/* Nothing to be done if the session is not in STA mode */
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
-		pe_err("psessionEntry is not in STA mode");
+	if (!LIM_IS_STA_ROLE(pe_session)) {
+		pe_err("pe_session is not in STA mode");
 		return QDF_STATUS_E_FAILURE;
 	}
 
-	if (psessionEntry->ftPEContext.pFTPreAuthReq &&
-	    psessionEntry->ftPEContext.pFTPreAuthReq->pbssDescription) {
+	if (pe_session->ftPEContext.pFTPreAuthReq &&
+	    pe_session->ftPEContext.pFTPreAuthReq->pbssDescription) {
 		lim_fill_ft_session(mac,
-				    psessionEntry->ftPEContext.pFTPreAuthReq->
+				    pe_session->ftPEContext.pFTPreAuthReq->
 				    pbssDescription, ft_session,
-				    psessionEntry);
+				    pe_session);
 
 		lim_ft_prepare_add_bss_req(mac, false, ft_session,
-		     psessionEntry->ftPEContext.pFTPreAuthReq->pbssDescription);
+		     pe_session->ftPEContext.pFTPreAuthReq->pbssDescription);
 	}
 
 	return QDF_STATUS_SUCCESS;
@@ -351,33 +351,33 @@
 /**
  * lim_ft_process_pre_auth_result() - Process the Auth frame
  * @mac: Global MAC context
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * Return: None
  */
 static void lim_ft_process_pre_auth_result(tpAniSirGlobal mac,
-					   struct pe_session *psessionEntry)
+					   struct pe_session *pe_session)
 {
-	if (NULL == psessionEntry ||
-	    NULL == psessionEntry->ftPEContext.pFTPreAuthReq)
+	if (NULL == pe_session ||
+	    NULL == pe_session->ftPEContext.pFTPreAuthReq)
 		return;
 
 	/* Nothing to be done if the session is not in STA mode */
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
-		pe_err("psessionEntry is not in STA mode");
+	if (!LIM_IS_STA_ROLE(pe_session)) {
+		pe_err("pe_session is not in STA mode");
 		return;
 	}
 
-	if (psessionEntry->ftPEContext.ftPreAuthStatus == QDF_STATUS_SUCCESS) {
-		psessionEntry->ftPEContext.ftPreAuthStatus =
-			lim_ft_setup_auth_session(mac, psessionEntry);
+	if (pe_session->ftPEContext.ftPreAuthStatus == QDF_STATUS_SUCCESS) {
+		pe_session->ftPEContext.ftPreAuthStatus =
+			lim_ft_setup_auth_session(mac, pe_session);
 	}
 	/* Post the FT Pre Auth Response to SME */
 	lim_post_ft_pre_auth_rsp(mac,
-		psessionEntry->ftPEContext.ftPreAuthStatus,
-		psessionEntry->ftPEContext.saved_auth_rsp,
-		psessionEntry->ftPEContext.saved_auth_rsp_length,
-		psessionEntry);
+		pe_session->ftPEContext.ftPreAuthStatus,
+		pe_session->ftPEContext.saved_auth_rsp,
+		pe_session->ftPEContext.saved_auth_rsp_length,
+		pe_session);
 }
 
 /**
@@ -386,7 +386,7 @@
  * @status: Status Code
  * @auth_rsp: Auth Response
  * @auth_rsp_length: Auth response length
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * Send the FT Pre Auth Response to SME whenever we have a status
  * ready to be sent to SME
@@ -398,60 +398,60 @@
  */
 void lim_handle_ft_pre_auth_rsp(tpAniSirGlobal mac, QDF_STATUS status,
 				uint8_t *auth_rsp, uint16_t auth_rsp_length,
-				struct pe_session *psessionEntry)
+				struct pe_session *pe_session)
 {
 	struct pe_session *ft_session = NULL;
 	uint8_t sessionId = 0;
 	tpSirBssDescription pbssDescription = NULL;
 #ifdef FEATURE_WLAN_DIAG_SUPPORT
 	lim_diag_event_report(mac, WLAN_PE_DIAG_PRE_AUTH_RSP_EVENT,
-			      psessionEntry, (uint16_t) status, 0);
+			      pe_session, (uint16_t) status, 0);
 #endif
 
 	/* Nothing to be done if the session is not in STA mode */
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
-		pe_err("psessionEntry is not in STA mode");
+	if (!LIM_IS_STA_ROLE(pe_session)) {
+		pe_err("pe_session is not in STA mode");
 		return;
 	}
 
 	/* Save the status of pre-auth */
-	psessionEntry->ftPEContext.ftPreAuthStatus = status;
+	pe_session->ftPEContext.ftPreAuthStatus = status;
 
 	/* Save the auth rsp, so we can send it to
 	 * SME once we resume link
 	 */
-	psessionEntry->ftPEContext.saved_auth_rsp_length = 0;
+	pe_session->ftPEContext.saved_auth_rsp_length = 0;
 	if ((auth_rsp != NULL) && (auth_rsp_length < MAX_FTIE_SIZE)) {
-		qdf_mem_copy(psessionEntry->ftPEContext.saved_auth_rsp,
+		qdf_mem_copy(pe_session->ftPEContext.saved_auth_rsp,
 			     auth_rsp, auth_rsp_length);
-		psessionEntry->ftPEContext.saved_auth_rsp_length =
+		pe_session->ftPEContext.saved_auth_rsp_length =
 			auth_rsp_length;
 	}
 
-	if (!psessionEntry->ftPEContext.pFTPreAuthReq ||
-	    !psessionEntry->ftPEContext.pFTPreAuthReq->pbssDescription) {
+	if (!pe_session->ftPEContext.pFTPreAuthReq ||
+	    !pe_session->ftPEContext.pFTPreAuthReq->pbssDescription) {
 		pe_err("pFTPreAuthReq or pbssDescription is NULL");
 		return;
 	}
 
 	/* Create FT session for the re-association at this point */
-	if (psessionEntry->ftPEContext.ftPreAuthStatus == QDF_STATUS_SUCCESS) {
+	if (pe_session->ftPEContext.ftPreAuthStatus == QDF_STATUS_SUCCESS) {
 		pbssDescription =
-		      psessionEntry->ftPEContext.pFTPreAuthReq->pbssDescription;
+		      pe_session->ftPEContext.pFTPreAuthReq->pbssDescription;
 		ft_session =
 			pe_create_session(mac, pbssDescription->bssId,
 					  &sessionId, mac->lim.maxStation,
-					  psessionEntry->bssType,
-					  psessionEntry->smeSessionId);
+					  pe_session->bssType,
+					  pe_session->smeSessionId);
 		if (!ft_session) {
 			pe_err("Session not created for pre-auth 11R AP");
 			status = QDF_STATUS_E_FAILURE;
-			psessionEntry->ftPEContext.ftPreAuthStatus = status;
+			pe_session->ftPEContext.ftPreAuthStatus = status;
 			goto send_rsp;
 		}
 
 		sir_copy_mac_addr(ft_session->selfMacAddr,
-				  psessionEntry->selfMacAddr);
+				  pe_session->selfMacAddr);
 		sir_copy_mac_addr(ft_session->limReAssocbssId,
 				  pbssDescription->bssId);
 
@@ -467,11 +467,11 @@
 
 		ft_session->limPrevSmeState = ft_session->limSmeState;
 		qdf_mem_copy(&(ft_session->htConfig),
-			     &(psessionEntry->htConfig),
-			     sizeof(psessionEntry->htConfig));
+			     &(pe_session->htConfig),
+			     sizeof(pe_session->htConfig));
 		ft_session->limSmeState = eLIM_SME_WT_REASSOC_STATE;
 
-		if (IS_5G_CH(psessionEntry->ftPEContext.pFTPreAuthReq->
+		if (IS_5G_CH(pe_session->ftPEContext.pFTPreAuthReq->
 			preAuthchannelNum))
 			ft_session->vdev_nss = mac->vdev_type_nss_5g.sta;
 		else
@@ -481,24 +481,24 @@
 			ft_session, ft_session->peSessionId);
 
 		/* Update the ReAssoc BSSID of the current session */
-		sir_copy_mac_addr(psessionEntry->limReAssocbssId,
+		sir_copy_mac_addr(pe_session->limReAssocbssId,
 				  pbssDescription->bssId);
-		lim_print_mac_addr(mac, psessionEntry->limReAssocbssId, LOGD);
+		lim_print_mac_addr(mac, pe_session->limReAssocbssId, LOGD);
 	}
 send_rsp:
-	if ((psessionEntry->currentOperChannel !=
-	     psessionEntry->ftPEContext.pFTPreAuthReq->preAuthchannelNum) ||
+	if ((pe_session->currentOperChannel !=
+	     pe_session->ftPEContext.pFTPreAuthReq->preAuthchannelNum) ||
 	    lim_is_in_mcc(mac)) {
 		/* Need to move to the original AP channel */
-		lim_process_abort_scan_ind(mac, psessionEntry->smeSessionId,
-			psessionEntry->ftPEContext.pFTPreAuthReq->scan_id,
+		lim_process_abort_scan_ind(mac, pe_session->smeSessionId,
+			pe_session->ftPEContext.pFTPreAuthReq->scan_id,
 			mac->lim.req_id | PREAUTH_REQUESTOR_ID);
 	} else {
 		pe_debug("Pre auth on same channel as connected AP channel %d\
 			and no mcc pe sessions exist",
-			psessionEntry->ftPEContext.pFTPreAuthReq->
+			pe_session->ftPEContext.pFTPreAuthReq->
 			preAuthchannelNum);
-		lim_ft_process_pre_auth_result(mac, psessionEntry);
+		lim_ft_process_pre_auth_result(mac, pe_session);
 	}
 }
 
diff --git a/core/mac/src/pe/lim/lim_ibss_peer_mgmt.c b/core/mac/src/pe/lim/lim_ibss_peer_mgmt.c
index 12da932..27af6b6 100644
--- a/core/mac/src/pe/lim/lim_ibss_peer_mgmt.c
+++ b/core/mac/src/pe/lim/lim_ibss_peer_mgmt.c
@@ -148,7 +148,7 @@
 ibss_peer_collect(tpAniSirGlobal mac,
 		  tpSchBeaconStruct pBeacon,
 		  tpSirMacMgmtHdr pHdr,
-		  tLimIbssPeerNode *peer, struct pe_session *psessionEntry)
+		  tLimIbssPeerNode *peer, struct pe_session *pe_session)
 {
 	qdf_mem_copy(peer->peerMacAddr, pHdr->sa, sizeof(tSirMacAddr));
 
@@ -163,7 +163,7 @@
 		peer->peerAtimWindowLength = pBeacon->IBSSParams.atim;
 	}
 
-	if (IS_DOT11_MODE_HT(psessionEntry->dot11mode) &&
+	if (IS_DOT11_MODE_HT(pe_session->dot11mode) &&
 	    (pBeacon->HTCaps.present)) {
 		peer->htCapable = pBeacon->HTCaps.present;
 		qdf_mem_copy((uint8_t *) peer->supportedMCSSet,
@@ -216,7 +216,7 @@
 /* handle change in peer qos/wme capabilities */
 static void
 ibss_sta_caps_update(tpAniSirGlobal mac,
-		     tLimIbssPeerNode *pPeerNode, struct pe_session *psessionEntry)
+		     tLimIbssPeerNode *pPeerNode, struct pe_session *pe_session)
 {
 	uint16_t peerIdx;
 	tpDphHashNode pStaDs;
@@ -225,12 +225,12 @@
 
 	/* if the peer node exists, update its qos capabilities */
 	pStaDs = dph_lookup_hash_entry(mac, pPeerNode->peerMacAddr, &peerIdx,
-				       &psessionEntry->dph.dphHashTable);
+				       &pe_session->dph.dphHashTable);
 	if (pStaDs == NULL)
 		return;
 
 	/* Update HT Capabilities */
-	if (IS_DOT11_MODE_HT(psessionEntry->dot11mode)) {
+	if (IS_DOT11_MODE_HT(pe_session->dot11mode)) {
 		pStaDs->mlmStaContext.htCapability = pPeerNode->htCapable;
 		if (pPeerNode->htCapable) {
 			pStaDs->htGreenfield = pPeerNode->htGreenfield;
@@ -253,7 +253,7 @@
 			pStaDs->htLdpcCapable = pPeerNode->htLdpcCapable;
 		}
 	}
-	if (IS_DOT11_MODE_VHT(psessionEntry->dot11mode)) {
+	if (IS_DOT11_MODE_VHT(pe_session->dot11mode)) {
 		pStaDs->mlmStaContext.vhtCapability = pPeerNode->vhtCapable;
 		if (pPeerNode->vhtCapable) {
 			pStaDs->vhtSupportedChannelWidthSet =
@@ -271,7 +271,7 @@
 	/* some STA's when joining Airgo IBSS, assert qos capability even when */
 	/* they don't support qos. however, they do not include the edca parameter */
 	/* set. so let's check for edcaParam in addition to the qos capability */
-	if (pPeerNode->capabilityInfo.qos && (psessionEntry->limQosEnabled)
+	if (pPeerNode->capabilityInfo.qos && (pe_session->limQosEnabled)
 	    && pPeerNode->edcaPresent) {
 		pStaDs->qosMode = 1;
 		pStaDs->wmeEnabled = 0;
@@ -287,7 +287,7 @@
 		pStaDs->lleEnabled = 0;
 	}
 	/* peer is wme capable but is not wme enabled yet */
-	if (pPeerNode->wmeInfoPresent && psessionEntry->limWmeEnabled) {
+	if (pPeerNode->wmeInfoPresent && pe_session->limWmeEnabled) {
 		pStaDs->qosMode = 1;
 		pStaDs->lleEnabled = 0;
 		if (!pStaDs->wmeEnabled) {
@@ -299,7 +299,7 @@
 	   considering. Added this code when we saw that one of the Peer Device
 	   was advertising WMM param where we were not honouring that. CR# 210756
 	 */
-	if (pPeerNode->wmeEdcaPresent && psessionEntry->limWmeEnabled) {
+	if (pPeerNode->wmeEdcaPresent && pe_session->limWmeEnabled) {
 		pStaDs->qosMode = 1;
 		pStaDs->lleEnabled = 0;
 		if (!pStaDs->wmeEnabled) {
@@ -318,11 +318,11 @@
 static void
 ibss_sta_rates_update(tpAniSirGlobal mac,
 		      tpDphHashNode pStaDs,
-		      tLimIbssPeerNode *peer, struct pe_session *psessionEntry)
+		      tLimIbssPeerNode *peer, struct pe_session *pe_session)
 {
 	lim_populate_matching_rate_set(mac, pStaDs, &peer->supportedRates,
 				       &peer->extendedRates,
-				       peer->supportedMCSSet, psessionEntry,
+				       peer->supportedMCSSet, pe_session,
 				       &peer->VHTCaps, NULL);
 	pStaDs->mlmStaContext.capabilityInfo = peer->capabilityInfo;
 } /*** end ibss_sta_info_update() ***/
@@ -350,11 +350,11 @@
 static void
 ibss_sta_info_update(tpAniSirGlobal mac,
 		     tpDphHashNode pStaDs,
-		     tLimIbssPeerNode *peer, struct pe_session *psessionEntry)
+		     tLimIbssPeerNode *peer, struct pe_session *pe_session)
 {
 	pStaDs->staType = STA_ENTRY_PEER;
-	ibss_sta_caps_update(mac, peer, psessionEntry);
-	ibss_sta_rates_update(mac, pStaDs, peer, psessionEntry);
+	ibss_sta_caps_update(mac, peer, pe_session);
+	ibss_sta_rates_update(mac, pStaDs, peer, pe_session);
 } /*** end ibss_sta_info_update() ***/
 
 static void ibss_coalesce_free(tpAniSirGlobal mac)
@@ -399,7 +399,7 @@
 static QDF_STATUS
 ibss_dph_entry_add(tpAniSirGlobal mac,
 		   tSirMacAddr peerAddr,
-		   tpDphHashNode *ppSta, struct pe_session *psessionEntry)
+		   tpDphHashNode *ppSta, struct pe_session *pe_session)
 {
 	uint16_t peerIdx;
 	tpDphHashNode pStaDs;
@@ -408,7 +408,7 @@
 
 	pStaDs =
 		dph_lookup_hash_entry(mac, peerAddr, &peerIdx,
-				      &psessionEntry->dph.dphHashTable);
+				      &pe_session->dph.dphHashTable);
 	if (pStaDs != NULL) {
 		/* Trying to add context for already existing STA in IBSS */
 		pe_err("STA exists already");
@@ -421,20 +421,20 @@
 	 * AID and then add an entry to hash table maintained
 	 * by DPH module.
 	 */
-	peerIdx = lim_assign_peer_idx(mac, psessionEntry);
+	peerIdx = lim_assign_peer_idx(mac, pe_session);
 
 	pStaDs =
-		dph_get_hash_entry(mac, peerIdx, &psessionEntry->dph.dphHashTable);
+		dph_get_hash_entry(mac, peerIdx, &pe_session->dph.dphHashTable);
 	if (pStaDs) {
 		(void)lim_del_sta(mac, pStaDs, false /*asynchronous */,
-				  psessionEntry);
+				  pe_session);
 		lim_delete_dph_hash_entry(mac, pStaDs->staAddr, peerIdx,
-					  psessionEntry);
+					  pe_session);
 	}
 
 	pStaDs =
 		dph_add_hash_entry(mac, peerAddr, peerIdx,
-				   &psessionEntry->dph.dphHashTable);
+				   &pe_session->dph.dphHashTable);
 	if (pStaDs == NULL) {
 		/* Could not add hash table entry */
 		pe_err("could not add hash entry at DPH for peerIdx/aid: %d MACaddr:",
@@ -475,7 +475,7 @@
 	}
 }
 
-void ibss_bss_add(tpAniSirGlobal mac, struct pe_session *psessionEntry)
+void ibss_bss_add(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
 	tLimMlmStartReq mlmStartReq;
 	uint32_t cfg;
@@ -489,14 +489,14 @@
 		return;
 	}
 
-	qdf_mem_copy(psessionEntry->bssId, pHdr->bssId, sizeof(tSirMacAddr));
+	qdf_mem_copy(pe_session->bssId, pHdr->bssId, sizeof(tSirMacAddr));
 
-	sir_copy_mac_addr(pHdr->bssId, psessionEntry->bssId);
+	sir_copy_mac_addr(pHdr->bssId, pe_session->bssId);
 
 	/* Copy beacon interval from sessionTable */
-	cfg = psessionEntry->beaconParams.beaconInterval;
+	cfg = pe_session->beaconParams.beaconInterval;
 	if (cfg != pBeacon->beaconInterval)
-		psessionEntry->beaconParams.beaconInterval =
+		pe_session->beaconParams.beaconInterval =
 			pBeacon->beaconInterval;
 
 	/* This function ibss_bss_add (and hence the below code) is only called during ibss coalescing. We need to
@@ -505,12 +505,12 @@
 	 * to peer's short slot using code below.
 	 */
 	/* If cfg is already set to current peer's capability then no need to set it again */
-	if (psessionEntry->shortSlotTimeSupported !=
+	if (pe_session->shortSlotTimeSupported !=
 	    pBeacon->capabilityInfo.shortSlotTime) {
-		psessionEntry->shortSlotTimeSupported =
+		pe_session->shortSlotTimeSupported =
 			pBeacon->capabilityInfo.shortSlotTime;
 	}
-	qdf_mem_copy((uint8_t *) &psessionEntry->pLimStartBssReq->
+	qdf_mem_copy((uint8_t *) &pe_session->pLimStartBssReq->
 		     operationalRateSet, (uint8_t *) &pBeacon->supportedRates,
 		     pBeacon->supportedRates.numRates);
 
@@ -545,42 +545,42 @@
 
 	qdf_mem_copy(mlmStartReq.bssId, pHdr->bssId, sizeof(tSirMacAddr));
 	mlmStartReq.rateSet.numRates =
-		psessionEntry->pLimStartBssReq->operationalRateSet.numRates;
+		pe_session->pLimStartBssReq->operationalRateSet.numRates;
 	qdf_mem_copy(&mlmStartReq.rateSet.rate[0],
-		     &psessionEntry->pLimStartBssReq->operationalRateSet.
+		     &pe_session->pLimStartBssReq->operationalRateSet.
 		     rate[0], mlmStartReq.rateSet.numRates);
 	mlmStartReq.bssType = eSIR_IBSS_MODE;
 	mlmStartReq.beaconPeriod = pBeacon->beaconInterval;
-	mlmStartReq.nwType = psessionEntry->pLimStartBssReq->nwType;    /* psessionEntry->nwType is also OK???? */
-	mlmStartReq.htCapable = psessionEntry->htCapability;
+	mlmStartReq.nwType = pe_session->pLimStartBssReq->nwType;    /* pe_session->nwType is also OK???? */
+	mlmStartReq.htCapable = pe_session->htCapability;
 	mlmStartReq.htOperMode = mac->lim.gHTOperMode;
 	mlmStartReq.dualCTSProtection = mac->lim.gHTDualCTSProtection;
-	mlmStartReq.txChannelWidthSet = psessionEntry->htRecommendedTxWidthSet;
+	mlmStartReq.txChannelWidthSet = pe_session->htRecommendedTxWidthSet;
 
 	/* reading the channel num from session Table */
-	mlmStartReq.channelNumber = psessionEntry->currentOperChannel;
+	mlmStartReq.channelNumber = pe_session->currentOperChannel;
 
-	mlmStartReq.cbMode = psessionEntry->pLimStartBssReq->cbMode;
+	mlmStartReq.cbMode = pe_session->pLimStartBssReq->cbMode;
 
 	/* Copy the SSID for RxP filtering based on SSID. */
 	qdf_mem_copy((uint8_t *) &mlmStartReq.ssId,
-		     (uint8_t *) &psessionEntry->pLimStartBssReq->ssId,
-		     psessionEntry->pLimStartBssReq->ssId.length + 1);
+		     (uint8_t *) &pe_session->pLimStartBssReq->ssId,
+		     pe_session->pLimStartBssReq->ssId.length + 1);
 
 	pe_debug("invoking ADD_BSS as part of coalescing!");
 #ifdef CONFIG_VDEV_SM
-	wlan_vdev_mlme_sm_deliver_evt(psessionEntry->vdev,
+	wlan_vdev_mlme_sm_deliver_evt(pe_session->vdev,
 				      WLAN_VDEV_SM_EV_START,
 				      sizeof(mlmStartReq), &mlmStartReq);
 #else
-	if (lim_mlm_add_bss(mac, &mlmStartReq, psessionEntry) !=
+	if (lim_mlm_add_bss(mac, &mlmStartReq, pe_session) !=
 	    eSIR_SME_SUCCESS) {
 		pe_err("AddBss failure");
 		return;
 	}
 #endif
 	/* Update fields in Beacon */
-	if (sch_set_fixed_beacon_fields(mac, psessionEntry) != QDF_STATUS_SUCCESS) {
+	if (sch_set_fixed_beacon_fields(mac, pe_session) != QDF_STATUS_SUCCESS) {
 		pe_err("Unable to set fixed Beacon fields");
 		return;
 	}
@@ -645,7 +645,7 @@
  * @return None
  */
 void lim_ibss_delete_all_peers(tpAniSirGlobal mac,
-			       struct pe_session *psessionEntry)
+			       struct pe_session *pe_session)
 {
 	tLimIbssPeerNode *pCurrNode, *pTempNode;
 	tpDphHashNode pStaDs;
@@ -667,17 +667,17 @@
 		 */
 		pStaDs =
 			dph_lookup_hash_entry(mac, pCurrNode->peerMacAddr, &peerIdx,
-					      &psessionEntry->dph.dphHashTable);
+					      &pe_session->dph.dphHashTable);
 		if (pStaDs) {
 
 			ibss_status_chg_notify(mac, pCurrNode->peerMacAddr,
 					       pStaDs->staIndex,
 					       eWNI_SME_IBSS_PEER_DEPARTED_IND,
-					       psessionEntry->smeSessionId);
-			lim_del_sta(mac, pStaDs, false, psessionEntry);
-			lim_release_peer_idx(mac, peerIdx, psessionEntry);
+					       pe_session->smeSessionId);
+			lim_del_sta(mac, pStaDs, false, pe_session);
+			lim_release_peer_idx(mac, peerIdx, pe_session);
 			dph_delete_hash_entry(mac, pStaDs->staAddr, peerIdx,
-					      &psessionEntry->dph.dphHashTable);
+					      &pe_session->dph.dphHashTable);
 		}
 
 		pTempNode = pCurrNode->next;
@@ -708,14 +708,14 @@
 	mac->lim.gLimIbssPeerList = NULL;
 #ifdef CONFIG_VDEV_SM
 	status =
-	   wlan_vdev_mlme_sm_deliver_evt(psessionEntry->vdev,
+	   wlan_vdev_mlme_sm_deliver_evt(pe_session->vdev,
 					 WLAN_VDEV_SM_EV_DISCONNECT_COMPLETE,
-					 sizeof(*psessionEntry), psessionEntry);
+					 sizeof(*pe_session), pe_session);
 	if (!mac->lim.gLimIbssCoalescingHappened &&
 	    QDF_IS_STATUS_ERROR(status)) {
 		pe_err("failed to post WLAN_VDEV_SM_EV_DISCONNECT_COMPLETE for vdevid %d",
-		       psessionEntry->smeSessionId);
-		lim_send_stop_bss_failure_resp(mac, psessionEntry);
+		       pe_session->smeSessionId);
+		lim_send_stop_bss_failure_resp(mac, pe_session);
 	}
 #endif
 }
@@ -724,15 +724,15 @@
  * lim_ibss_delete() - This function is called while tearing down an IBSS
  *
  * @mac: Pointer to Global MAC structure
- * @psessionEntry: Pointer to session entry
+ * @pe_session: Pointer to session entry
  *
  * Return: none
  */
 
-void lim_ibss_delete(tpAniSirGlobal mac, struct pe_session *psessionEntry)
+void lim_ibss_delete(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
 #ifndef CONFIG_VDEV_SM
-	lim_ibss_delete_all_peers(mac, psessionEntry);
+	lim_ibss_delete_all_peers(mac, pe_session);
 #endif
 	ibss_coalesce_free(mac);
 }
@@ -749,7 +749,7 @@
 static void
 lim_ibss_set_protection(tpAniSirGlobal mac, uint8_t enable,
 			tpUpdateBeaconParams pBeaconParams,
-			struct pe_session *psessionEntry)
+			struct pe_session *pe_session)
 {
 
 	if (!mac->lim.cfgProtection.fromllb) {
@@ -758,23 +758,23 @@
 	}
 
 	if (enable) {
-		psessionEntry->gLim11bParams.protectionEnabled = true;
+		pe_session->gLim11bParams.protectionEnabled = true;
 		if (false ==
-		    psessionEntry->beaconParams.
+		    pe_session->beaconParams.
 		    llbCoexist /*mac->lim.llbCoexist */) {
 			pe_debug("=> IBSS: Enable Protection");
 			pBeaconParams->llbCoexist =
-				psessionEntry->beaconParams.llbCoexist = true;
+				pe_session->beaconParams.llbCoexist = true;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_llBCOEXIST_CHANGED;
 		}
 	} else if (true ==
-		   psessionEntry->beaconParams.
+		   pe_session->beaconParams.
 		   llbCoexist /*mac->lim.llbCoexist */) {
-		psessionEntry->gLim11bParams.protectionEnabled = false;
+		pe_session->gLim11bParams.protectionEnabled = false;
 		pe_debug("===> IBSS: Disable protection");
 		pBeaconParams->llbCoexist =
-			psessionEntry->beaconParams.llbCoexist = false;
+			pe_session->beaconParams.llbCoexist = false;
 		pBeaconParams->paramChangeBitmap |= PARAM_llBCOEXIST_CHANGED;
 	}
 	return;
@@ -793,7 +793,7 @@
 lim_ibss_update_protection_params(tpAniSirGlobal mac,
 				  tSirMacAddr peerMacAddr,
 				  tLimProtStaCacheType protStaCacheType,
-				  struct pe_session *psessionEntry)
+				  struct pe_session *pe_session)
 {
 	uint32_t i;
 
@@ -832,9 +832,9 @@
 	mac->lim.protStaCache[i].protStaCacheType = protStaCacheType;
 	mac->lim.protStaCache[i].active = true;
 	if (eLIM_PROT_STA_CACHE_TYPE_llB == protStaCacheType) {
-		psessionEntry->gLim11bParams.numSta++;
+		pe_session->gLim11bParams.numSta++;
 	} else if (eLIM_PROT_STA_CACHE_TYPE_llG == protStaCacheType) {
-		psessionEntry->gLim11gParams.numSta++;
+		pe_session->gLim11gParams.numSta++;
 	}
 }
 
@@ -850,7 +850,7 @@
 static void
 lim_ibss_decide_protection(tpAniSirGlobal mac, tpDphHashNode pStaDs,
 			   tpUpdateBeaconParams pBeaconParams,
-			   struct pe_session *psessionEntry)
+			   struct pe_session *pe_session)
 {
 	enum band_info rfBand = BAND_UNKNOWN;
 	uint32_t phyMode;
@@ -864,13 +864,13 @@
 		return;
 	}
 
-	lim_get_rf_band_new(mac, &rfBand, psessionEntry);
+	lim_get_rf_band_new(mac, &rfBand, pe_session);
 	if (BAND_2G == rfBand) {
-		lim_get_phy_mode(mac, &phyMode, psessionEntry);
+		lim_get_phy_mode(mac, &phyMode, pe_session);
 
 		/* We are 11G or 11n. Check if we need protection from 11b Stations. */
 		if ((phyMode == WNI_CFG_PHY_MODE_11G)
-		    || (psessionEntry->htCapability)) {
+		    || (pe_session->htCapability)) {
 			/* As we found in the past, it is possible that a 11n STA sends
 			 * Beacon with HT IE but not ERP IE.  So the absence of ERP IE
 			 * in the Beacon is not enough to conclude that STA is 11b.
@@ -881,12 +881,12 @@
 				pe_err("Enable protection from 11B");
 				lim_ibss_set_protection(mac, true,
 							pBeaconParams,
-							psessionEntry);
+							pe_session);
 			}
 		}
 	}
 	lim_ibss_update_protection_params(mac, pStaDs->staAddr, protStaCacheType,
-					  psessionEntry);
+					  pe_session);
 	return;
 }
 
@@ -937,7 +937,7 @@
  */
 
 QDF_STATUS
-lim_ibss_sta_add(tpAniSirGlobal mac, void *pBody, struct pe_session *psessionEntry)
+lim_ibss_sta_add(tpAniSirGlobal mac, void *pBody, struct pe_session *pe_session)
 {
 	QDF_STATUS retCode = QDF_STATUS_SUCCESS;
 	tpDphHashNode pStaDs;
@@ -960,16 +960,16 @@
 	if (NULL != pPeerNode) {
 		retCode =
 			ibss_dph_entry_add(mac, *pPeerAddr, &pStaDs,
-					   psessionEntry);
+					   pe_session);
 		if (QDF_STATUS_SUCCESS == retCode) {
 			prevState = pStaDs->mlmStaContext.mlmState;
 			pStaDs->erpEnabled = pPeerNode->erpIePresent;
 
 			ibss_sta_info_update(mac, pStaDs, pPeerNode,
-					     psessionEntry);
+					     pe_session);
 			pe_debug("initiating ADD STA for the IBSS peer");
 			retCode =
-				lim_add_sta(mac, pStaDs, false, psessionEntry);
+				lim_add_sta(mac, pStaDs, false, pe_session);
 			if (retCode != QDF_STATUS_SUCCESS) {
 				pe_err("ibss-sta-add failed (reason %x)",
 					       retCode);
@@ -977,23 +977,23 @@
 				pStaDs->mlmStaContext.mlmState = prevState;
 				dph_delete_hash_entry(mac, pStaDs->staAddr,
 						      pStaDs->assocId,
-						      &psessionEntry->dph.
+						      &pe_session->dph.
 						      dphHashTable);
 			} else {
 				if (mac->lim.gLimProtectionControl !=
 				    MLME_FORCE_POLICY_PROTECTION_DISABLE)
 					lim_ibss_decide_protection(mac, pStaDs,
 								   &beaconParams,
-								   psessionEntry);
+								   pe_session);
 
 				if (beaconParams.paramChangeBitmap) {
 					pe_debug("---> Update Beacon Params");
 					sch_set_fixed_beacon_fields(mac,
-								    psessionEntry);
+								    pe_session);
 					beaconParams.bssIdx =
-						psessionEntry->bssIdx;
+						pe_session->bssIdx;
 					lim_send_beacon_params(mac, &beaconParams,
-							       psessionEntry);
+							       pe_session);
 				}
 			}
 		} else {
@@ -1180,7 +1180,7 @@
 
 /* handle the response from HAL for an ADD STA request */
 QDF_STATUS
-lim_ibss_add_sta_rsp(tpAniSirGlobal mac, void *msg, struct pe_session *psessionEntry)
+lim_ibss_add_sta_rsp(tpAniSirGlobal mac, void *msg, struct pe_session *pe_session)
 {
 	tpDphHashNode pStaDs;
 	uint16_t peerIdx;
@@ -1194,7 +1194,7 @@
 
 	pStaDs =
 		dph_lookup_hash_entry(mac, pAddStaParams->staMac, &peerIdx,
-				      &psessionEntry->dph.dphHashTable);
+				      &pe_session->dph.dphHashTable);
 	if (pStaDs == NULL) {
 		pe_err("IBSS: ADD_STA_RSP for unknown MAC addr: "MAC_ADDRESS_STR,
 			MAC_ADDR_ARRAY(pAddStaParams->staMac));
@@ -1207,7 +1207,7 @@
 			pAddStaParams->status,
 			MAC_ADDR_ARRAY(pAddStaParams->staMac));
 		lim_ibss_delete_peer(mac,
-			psessionEntry, pAddStaParams->staMac);
+			pe_session, pAddStaParams->staMac);
 		qdf_mem_free(pAddStaParams);
 		return QDF_STATUS_E_FAILURE;
 	}
@@ -1222,7 +1222,7 @@
 	ibss_status_chg_notify(mac, pAddStaParams->staMac,
 			       pStaDs->staIndex,
 			       eWNI_SME_IBSS_NEW_PEER_IND,
-			       psessionEntry->smeSessionId);
+			       pe_session->smeSessionId);
 
 	qdf_mem_free(pAddStaParams);
 
@@ -1230,7 +1230,7 @@
 }
 
 void lim_ibss_del_bss_rsp_when_coalescing(tpAniSirGlobal mac, void *msg,
-					  struct pe_session *psessionEntry)
+					  struct pe_session *pe_session)
 {
 	tpDeleteBssParams pDelBss = (tpDeleteBssParams) msg;
 
@@ -1249,17 +1249,17 @@
 
 #ifndef CONFIG_VDEV_SM
 	/* Delete peer entries. */
-	lim_ibss_delete_all_peers(mac, psessionEntry);
+	lim_ibss_delete_all_peers(mac, pe_session);
 #endif
 	/* add the new bss */
-	ibss_bss_add(mac, psessionEntry);
+	ibss_bss_add(mac, pe_session);
 end:
 	if (pDelBss != NULL)
 		qdf_mem_free(pDelBss);
 }
 
 void lim_ibss_add_bss_rsp_when_coalescing(tpAniSirGlobal mac, void *msg,
-					  struct pe_session *pSessionEntry)
+					  struct pe_session *pe_session)
 {
 	uint8_t infoLen;
 	tSirSmeNewBssInfo newBssInfo;
@@ -1288,17 +1288,17 @@
 
 	lim_send_sme_wm_status_change_ntf(mac, eSIR_SME_JOINED_NEW_BSS,
 					  (uint32_t *) &newBssInfo,
-					  infoLen, pSessionEntry->smeSessionId);
+					  infoLen, pe_session->smeSessionId);
 	{
 		/* Configure beacon and send beacons to HAL */
-		lim_send_beacon(mac, pSessionEntry);
+		lim_send_beacon(mac, pe_session);
 	}
 
 end:
 	ibss_coalesce_free(mac);
 }
 
-void lim_ibss_del_bss_rsp(tpAniSirGlobal mac, void *msg, struct pe_session *psessionEntry)
+void lim_ibss_del_bss_rsp(tpAniSirGlobal mac, void *msg, struct pe_session *pe_session)
 {
 	tSirResultCodes rc = eSIR_SME_SUCCESS;
 	tpDeleteBssParams pDelBss = (tpDeleteBssParams) msg;
@@ -1311,8 +1311,8 @@
 		goto end;
 	}
 
-	psessionEntry = pe_find_session_by_session_id(mac, pDelBss->sessionId);
-	if (psessionEntry == NULL) {
+	pe_session = pe_find_session_by_session_id(mac, pDelBss->sessionId);
+	if (pe_session == NULL) {
 		pe_err("Session Does not exist for given sessionID");
 		goto end;
 	}
@@ -1325,7 +1325,7 @@
 	 */
 	if (true == mac->lim.gLimIbssCoalescingHappened) {
 
-		lim_ibss_del_bss_rsp_when_coalescing(mac, msg, psessionEntry);
+		lim_ibss_del_bss_rsp_when_coalescing(mac, msg, pe_session);
 		return;
 	}
 
@@ -1337,42 +1337,42 @@
 	}
 
 	if (lim_set_link_state(mac, eSIR_LINK_IDLE_STATE, nullBssid,
-			       psessionEntry->selfMacAddr, NULL,
+			       pe_session->selfMacAddr, NULL,
 			       NULL) != QDF_STATUS_SUCCESS) {
 		pe_err("IBSS: DEL_BSS_RSP setLinkState failed");
 		rc = eSIR_SME_REFUSED;
 		goto end;
 	}
 
-	lim_ibss_delete(mac, psessionEntry);
+	lim_ibss_delete(mac, pe_session);
 
-	dph_hash_table_class_init(mac, &psessionEntry->dph.dphHashTable);
+	dph_hash_table_class_init(mac, &pe_session->dph.dphHashTable);
 	lim_delete_pre_auth_list(mac);
 
-	psessionEntry->limMlmState = eLIM_MLM_IDLE_STATE;
+	pe_session->limMlmState = eLIM_MLM_IDLE_STATE;
 
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId,
-		       psessionEntry->limMlmState));
+		       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
+		       pe_session->limMlmState));
 
-	psessionEntry->limSystemRole = eLIM_STA_ROLE;
+	pe_session->limSystemRole = eLIM_STA_ROLE;
 
 	/* Change the short slot operating mode to Default (which is 1 for now) so that when IBSS starts next time with Libra
 	 * as originator, it picks up the default. This enables us to remove hard coding of short slot = 1 from lim_apply_configuration
 	 */
-	psessionEntry->shortSlotTimeSupported =
+	pe_session->shortSlotTimeSupported =
 		cfg_default(CFG_SHORT_SLOT_TIME_ENABLED);
 
 end:
 	if (pDelBss != NULL)
 		qdf_mem_free(pDelBss);
 	/* Delete PE session once BSS is deleted */
-	if (NULL != psessionEntry) {
+	if (NULL != pe_session) {
 		lim_send_sme_rsp(mac, eWNI_SME_STOP_BSS_RSP, rc,
-				 psessionEntry->smeSessionId,
-				 psessionEntry->transactionId);
-		pe_delete_session(mac, psessionEntry);
-		psessionEntry = NULL;
+				 pe_session->smeSessionId,
+				 pe_session->transactionId);
+		pe_delete_session(mac, pe_session);
+		pe_session = NULL;
 	}
 }
 
@@ -1401,7 +1401,7 @@
 		  tpSirMacMgmtHdr pHdr,
 		  tpSchBeaconStruct pBeacon,
 		  uint8_t *pIEs,
-		  uint32_t ieLen, uint16_t fTsfLater, struct pe_session *psessionEntry)
+		  uint32_t ieLen, uint16_t fTsfLater, struct pe_session *pe_session)
 {
 	uint16_t peerIdx;
 	tSirMacAddr currentBssId;
@@ -1411,7 +1411,7 @@
 
 	qdf_mem_set((uint8_t *) &beaconParams, sizeof(tUpdateBeaconParams), 0);
 
-	sir_copy_mac_addr(currentBssId, psessionEntry->bssId);
+	sir_copy_mac_addr(currentBssId, pe_session->bssId);
 
 	pe_debug("Current BSSID :" MAC_ADDRESS_STR " Received BSSID :"
 		   MAC_ADDRESS_STR, MAC_ADDR_ARRAY(currentBssId),
@@ -1419,7 +1419,7 @@
 
 	/* Check for IBSS Coalescing only if Beacon is from different BSS */
 	if (qdf_mem_cmp(currentBssId, pHdr->bssId, sizeof(tSirMacAddr))
-	    && psessionEntry->isCoalesingInIBSSAllowed) {
+	    && pe_session->isCoalesingInIBSSAllowed) {
 		/*
 		 * If STA entry is already available in the LIM hash table, then it is
 		 * possible that the peer may have left and rejoined within the heartbeat
@@ -1432,7 +1432,7 @@
 		 */
 		pPeerNode = ibss_peer_find(mac, pHdr->sa);
 		if (NULL != pPeerNode) {
-			lim_ibss_delete_peer(mac, psessionEntry,
+			lim_ibss_delete_peer(mac, pe_session,
 							  pHdr->sa);
 			pe_warn("Peer attempting to reconnect before HB timeout, deleted");
 			return QDF_STATUS_E_INVAL;
@@ -1452,12 +1452,12 @@
 		pe_debug("IBSS Coalescing happened Delete BSSID :" MAC_ADDRESS_STR,
 			MAC_ADDR_ARRAY(currentBssId));
 #ifdef CONFIG_VDEV_SM
-		wlan_vdev_mlme_sm_deliver_evt(psessionEntry->vdev,
+		wlan_vdev_mlme_sm_deliver_evt(pe_session->vdev,
 					      WLAN_VDEV_SM_EV_DOWN,
-					      sizeof(*psessionEntry),
-					      psessionEntry);
+					      sizeof(*pe_session),
+					      pe_session);
 #else
-		ibss_bss_delete(mac, psessionEntry);
+		ibss_bss_delete(mac, pe_session);
 #endif
 		return QDF_STATUS_SUCCESS;
 	} else {
@@ -1501,7 +1501,7 @@
 		pPeerNode->beaconLen = 0;
 
 		ibss_peer_collect(mac, pBeacon, pHdr, pPeerNode,
-				  psessionEntry);
+				  pe_session);
 		pPeerNode->beacon = qdf_mem_malloc(ieLen);
 		if (pPeerNode->beacon) {
 			qdf_mem_copy(pPeerNode->beacon, pIEs, ieLen);
@@ -1511,17 +1511,17 @@
 
 		pStaDs =
 			dph_lookup_hash_entry(mac, pPeerNode->peerMacAddr, &peerIdx,
-					      &psessionEntry->dph.dphHashTable);
+					      &pe_session->dph.dphHashTable);
 		if (pStaDs != NULL) {
 			/* / DPH node already exists for the peer */
 			pe_warn("DPH Node present for just learned peer");
 			lim_print_mac_addr(mac, pPeerNode->peerMacAddr, LOGD);
 			ibss_sta_info_update(mac, pStaDs, pPeerNode,
-					     psessionEntry);
+					     pe_session);
 			return QDF_STATUS_SUCCESS;
 		}
 		retCode =
-			lim_ibss_sta_add(mac, pPeerNode->peerMacAddr, psessionEntry);
+			lim_ibss_sta_add(mac, pPeerNode->peerMacAddr, pe_session);
 		if (retCode != QDF_STATUS_SUCCESS) {
 			pe_err("lim-ibss-sta-add failed reason: %x", retCode);
 			lim_print_mac_addr(mac, pPeerNode->peerMacAddr, LOGE);
@@ -1530,33 +1530,33 @@
 		/* Decide protection mode */
 		pStaDs =
 			dph_lookup_hash_entry(mac, pPeerNode->peerMacAddr, &peerIdx,
-					      &psessionEntry->dph.dphHashTable);
+					      &pe_session->dph.dphHashTable);
 		if (mac->lim.gLimProtectionControl !=
 		    MLME_FORCE_POLICY_PROTECTION_DISABLE)
 			lim_ibss_decide_protection(mac, pStaDs, &beaconParams,
-						   psessionEntry);
+						   pe_session);
 
 		if (beaconParams.paramChangeBitmap) {
 			pe_err("beaconParams.paramChangeBitmap=1 ---> Update Beacon Params");
-			sch_set_fixed_beacon_fields(mac, psessionEntry);
-			beaconParams.bssIdx = psessionEntry->bssIdx;
-			lim_send_beacon_params(mac, &beaconParams, psessionEntry);
+			sch_set_fixed_beacon_fields(mac, pe_session);
+			beaconParams.bssIdx = pe_session->bssIdx;
+			lim_send_beacon_params(mac, &beaconParams, pe_session);
 		}
 	} else
-		ibss_sta_caps_update(mac, pPeerNode, psessionEntry);
+		ibss_sta_caps_update(mac, pPeerNode, pe_session);
 
-	if (psessionEntry->limSmeState != eLIM_SME_NORMAL_STATE)
+	if (pe_session->limSmeState != eLIM_SME_NORMAL_STATE)
 		return QDF_STATUS_SUCCESS;
 
 	/* Received Beacon from same IBSS we're */
 	/* currently part of. Inform Roaming algorithm */
 	/* if not already that IBSS is active. */
-	if (psessionEntry->limIbssActive == false) {
-		limResetHBPktCount(psessionEntry);
+	if (pe_session->limIbssActive == false) {
+		limResetHBPktCount(pe_session);
 		pe_warn("Partner joined our IBSS, Sending IBSS_ACTIVE Notification to SME");
-		psessionEntry->limIbssActive = true;
+		pe_session->limIbssActive = true;
 		lim_send_sme_wm_status_change_ntf(mac, eSIR_SME_IBSS_ACTIVE, NULL, 0,
-						  psessionEntry->smeSessionId);
+						  pe_session->smeSessionId);
 	}
 
 	return QDF_STATUS_SUCCESS;
@@ -1749,21 +1749,21 @@
    \brief Internal function. Deletes FW indicated peer which is inactive
  \
    \param  tpAniSirGlobal    mac
-   \param  struct pe_session *      psessionEntry
+   \param  struct pe_session *      pe_session
    \param  tpSirIbssPeerInactivityInd peerInactivityInd
    \return None
    -----------------------------------------------------------------*/
 static void
 __lim_ibss_peer_inactivity_handler(tpAniSirGlobal mac,
-				   struct pe_session *psessionEntry,
+				   struct pe_session *pe_session,
 				   tpSirIbssPeerInactivityInd peerInactivityInd)
 {
-	if (psessionEntry->limMlmState != eLIM_MLM_BSS_STARTED_STATE) {
+	if (pe_session->limMlmState != eLIM_MLM_BSS_STARTED_STATE) {
 		return;
 	}
 
 	/* delete the peer for which heartbeat is observed */
-	lim_ibss_delete_peer(mac, psessionEntry,
+	lim_ibss_delete_peer(mac, pe_session,
 					  peerInactivityInd->peer_addr.bytes);
 }
 
diff --git a/core/mac/src/pe/lim/lim_ibss_peer_mgmt.h b/core/mac/src/pe/lim/lim_ibss_peer_mgmt.h
index 4b4c1c4..cb7c689 100644
--- a/core/mac/src/pe/lim/lim_ibss_peer_mgmt.h
+++ b/core/mac/src/pe/lim/lim_ibss_peer_mgmt.h
@@ -58,7 +58,7 @@
 void lim_ibss_delete_all_peers(tpAniSirGlobal mac_ctx, struct pe_session *session);
 
 void lim_ibss_init(tpAniSirGlobal);
-void lim_ibss_delete(tpAniSirGlobal, struct pe_session *psessionEntry);
+void lim_ibss_delete(tpAniSirGlobal, struct pe_session *pe_session);
 QDF_STATUS lim_ibss_coalesce(tpAniSirGlobal, tpSirMacMgmtHdr,
 				tpSchBeaconStruct, uint8_t *, uint32_t, uint16_t,
 				struct pe_session *);
@@ -83,9 +83,9 @@
 void lim_ibss_del_bss_rsp(tpAniSirGlobal, void *, struct pe_session *);
 void lim_ibss_del_bss_rsp_when_coalescing(tpAniSirGlobal, void *, struct pe_session *);
 void lim_ibss_add_bss_rsp_when_coalescing(tpAniSirGlobal mac, void *msg,
-					  struct pe_session *pSessionEntry);
+					  struct pe_session *pe_session);
 void lim_ibss_decide_protection_on_delete(tpAniSirGlobal mac, tpDphHashNode pStaDs,
 					  tpUpdateBeaconParams pBeaconParams,
-					  struct pe_session *pSessionEntry);
-void lim_ibss_heart_beat_handle(tpAniSirGlobal mac, struct pe_session *psessionEntry);
+					  struct pe_session *pe_session);
+void lim_ibss_heart_beat_handle(tpAniSirGlobal mac, struct pe_session *pe_session);
 void lim_process_ibss_peer_inactivity(tpAniSirGlobal mac, void *buf);
diff --git a/core/mac/src/pe/lim/lim_link_monitoring_algo.c b/core/mac/src/pe/lim/lim_link_monitoring_algo.c
index a92de12..9b7338c 100644
--- a/core/mac/src/pe/lim/lim_link_monitoring_algo.c
+++ b/core/mac/src/pe/lim/lim_link_monitoring_algo.c
@@ -359,11 +359,11 @@
 {
 	tpDphHashNode pStaDs = NULL;
 
-	/* tear down the following sessionEntry */
-	struct pe_session *psessionEntry;
+	/* tear down the following pe_session */
+	struct pe_session *pe_session;
 
-	psessionEntry = pe_find_session_by_session_id(mac, sessionId);
-	if (psessionEntry == NULL) {
+	pe_session = pe_find_session_by_session_id(mac, sessionId);
+	if (pe_session == NULL) {
 		pe_err("Session Does not exist for given sessionID");
 		return;
 	}
@@ -372,7 +372,7 @@
 	 * and AP did not respond for Probe request.
 	 * Trigger link tear down.
 	 */
-	psessionEntry->pmmOffloadInfo.bcnmiss = false;
+	pe_session->pmmOffloadInfo.bcnmiss = false;
 
 	pe_info("No ProbeRsp from AP after HB failure. Tearing down link");
 
@@ -381,14 +381,14 @@
 
 	pStaDs =
 		dph_get_hash_entry(mac, DPH_STA_HASH_INDEX_PEER,
-				   &psessionEntry->dph.dphHashTable);
+				   &pe_session->dph.dphHashTable);
 
 	if (pStaDs != NULL) {
 		tLimMlmDeauthInd mlmDeauthInd;
 
 #ifdef FEATURE_WLAN_TDLS
 		/* Delete all TDLS peers connected before leaving BSS */
-		lim_delete_tdls_peers(mac, psessionEntry);
+		lim_delete_tdls_peers(mac, pe_session);
 #endif
 
 		pStaDs->mlmStaContext.disassocReason = reasonCode;
@@ -426,7 +426,7 @@
 		mlmDeauthInd.deauthTrigger =
 			pStaDs->mlmStaContext.cleanupTrigger;
 
-		if (LIM_IS_STA_ROLE(psessionEntry))
+		if (LIM_IS_STA_ROLE(pe_session))
 			lim_post_sme_message(mac, LIM_MLM_DEAUTH_IND,
 				     (uint32_t *) &mlmDeauthInd);
 		if (mac->mlme_cfg->gen.fatal_event_trigger)
@@ -435,7 +435,7 @@
 					WLAN_LOG_REASON_HB_FAILURE,
 					false, false);
 
-		lim_send_sme_deauth_ind(mac, pStaDs, psessionEntry);
+		lim_send_sme_deauth_ind(mac, pStaDs, pe_session);
 	}
 } /*** lim_tear_down_link_with_ap() ***/
 
diff --git a/core/mac/src/pe/lim/lim_process_action_frame.c b/core/mac/src/pe/lim/lim_process_action_frame.c
index a2e7021..bc45dd1 100644
--- a/core/mac/src/pe/lim/lim_process_action_frame.c
+++ b/core/mac/src/pe/lim/lim_process_action_frame.c
@@ -71,28 +71,28 @@
    -----------------------------------------------------------------*/
 void lim_stop_tx_and_switch_channel(tpAniSirGlobal mac, uint8_t sessionId)
 {
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 
-	psessionEntry = pe_find_session_by_session_id(mac, sessionId);
+	pe_session = pe_find_session_by_session_id(mac, sessionId);
 
-	if (NULL == psessionEntry) {
+	if (NULL == pe_session) {
 		pe_err("Session: %d not active", sessionId);
 		return;
 	}
 
-	if (psessionEntry->ftPEContext.pFTPreAuthReq) {
+	if (pe_session->ftPEContext.pFTPreAuthReq) {
 		pe_debug("Avoid Switch Channel req during pre auth");
 		return;
 	}
 
 	pe_debug("Channel switch Mode: %d",
-		       psessionEntry->gLimChannelSwitch.switchMode);
+		       pe_session->gLimChannelSwitch.switchMode);
 
 	mac->lim.limTimers.gLimChannelSwitchTimer.sessionId = sessionId;
 	/* change the channel immediately only if
 	 * the channel switch count is 0
 	 */
-	if (psessionEntry->gLimChannelSwitch.switchCount == 0) {
+	if (pe_session->gLimChannelSwitch.switchCount == 0) {
 		lim_process_channel_switch_timeout(mac);
 		return;
 	}
@@ -114,28 +114,28 @@
    and heartbeat timer tempororily.
 
    \param  mac
-   \param  psessionEntry
+   \param  pe_session
    \return NONE
    ------------------------------------------------------------*/
 QDF_STATUS lim_start_channel_switch(tpAniSirGlobal mac,
-				       struct pe_session *psessionEntry)
+				       struct pe_session *pe_session)
 {
 	pe_debug("Starting the channel switch");
 
 	/*If channel switch is already running and it is on a different session, just return */
 	/*This need to be removed for MCC */
 	if ((lim_is_chan_switch_running(mac) &&
-	     psessionEntry->gLimSpecMgmt.dot11hChanSwState !=
-	     eLIM_11H_CHANSW_RUNNING) || psessionEntry->csaOffloadEnable) {
+	     pe_session->gLimSpecMgmt.dot11hChanSwState !=
+	     eLIM_11H_CHANSW_RUNNING) || pe_session->csaOffloadEnable) {
 		pe_warn("Ignoring channel switch on session: %d",
-			psessionEntry->peSessionId);
+			pe_session->peSessionId);
 		return QDF_STATUS_SUCCESS;
 	}
 
 	/* Deactivate and change reconfigure the timeout value */
 	/* lim_deactivate_and_change_timer(mac, eLIM_CHANNEL_SWITCH_TIMER); */
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_TIMER_DEACTIVATE, psessionEntry->peSessionId,
+		       (mac, TRACE_CODE_TIMER_DEACTIVATE, pe_session->peSessionId,
 		       eLIM_CHANNEL_SWITCH_TIMER));
 	if (tx_timer_deactivate(&mac->lim.limTimers.gLimChannelSwitchTimer) !=
 	    QDF_STATUS_SUCCESS) {
@@ -144,14 +144,14 @@
 	}
 
 	if (tx_timer_change(&mac->lim.limTimers.gLimChannelSwitchTimer,
-			    psessionEntry->gLimChannelSwitch.switchTimeoutValue,
+			    pe_session->gLimChannelSwitch.switchTimeoutValue,
 			    0) != TX_SUCCESS) {
 		pe_err("tx_timer_change failed");
 		return QDF_STATUS_E_FAILURE;
 	}
 
 	/* Prepare for 11h channel switch */
-	lim_prepare_for11h_channel_switch(mac, psessionEntry);
+	lim_prepare_for11h_channel_switch(mac, pe_session);
 
 	/** Dont add any more statements here as we posted finish scan request
 	 * to HAL, wait till we get the response
@@ -628,7 +628,7 @@
 
 static void
 __lim_process_add_ts_req(tpAniSirGlobal mac, uint8_t *pRxPacketInfo,
-			 struct pe_session *psessionEntry)
+			 struct pe_session *pe_session)
 {
 }
 
@@ -1056,10 +1056,10 @@
 static void
 __lim_process_basic_meas_req(tpAniSirGlobal mac,
 			     tpSirMacMeasReqActionFrame pMeasReqFrame,
-			     tSirMacAddr peerMacAddr, struct pe_session *psessionEntry)
+			     tSirMacAddr peerMacAddr, struct pe_session *pe_session)
 {
 	if (lim_send_meas_report_frame(mac, pMeasReqFrame,
-				       peerMacAddr, psessionEntry) !=
+				       peerMacAddr, pe_session) !=
 					 QDF_STATUS_SUCCESS) {
 		pe_err("fail to send Basic Meas report");
 		return;
@@ -1068,10 +1068,10 @@
 static void
 __lim_process_cca_meas_req(tpAniSirGlobal mac,
 			   tpSirMacMeasReqActionFrame pMeasReqFrame,
-			   tSirMacAddr peerMacAddr, struct pe_session *psessionEntry)
+			   tSirMacAddr peerMacAddr, struct pe_session *pe_session)
 {
 	if (lim_send_meas_report_frame(mac, pMeasReqFrame,
-				       peerMacAddr, psessionEntry) !=
+				       peerMacAddr, pe_session) !=
 					 QDF_STATUS_SUCCESS) {
 		pe_err("fail to send CCA Meas report");
 		return;
@@ -1080,10 +1080,10 @@
 static void
 __lim_process_rpi_meas_req(tpAniSirGlobal mac,
 			   tpSirMacMeasReqActionFrame pMeasReqFrame,
-			   tSirMacAddr peerMacAddr, struct pe_session *psessionEntry)
+			   tSirMacAddr peerMacAddr, struct pe_session *pe_session)
 {
 	if (lim_send_meas_report_frame(mac, pMeasReqFrame,
-				       peerMacAddr, psessionEntry) !=
+				       peerMacAddr, pe_session) !=
 					 QDF_STATUS_SUCCESS) {
 		pe_err("fail to send RPI Meas report");
 		return;
@@ -1092,7 +1092,7 @@
 static void
 __lim_process_measurement_request_frame(tpAniSirGlobal mac,
 					uint8_t *pRxPacketInfo,
-					struct pe_session *psessionEntry)
+					struct pe_session *pe_session)
 {
 	tpSirMacMgmtHdr pHdr;
 	uint8_t *pBody;
@@ -1115,15 +1115,15 @@
 	switch (pMeasReqFrame->measReqIE.measType) {
 	case SIR_MAC_BASIC_MEASUREMENT_TYPE:
 		__lim_process_basic_meas_req(mac, pMeasReqFrame, pHdr->sa,
-					     psessionEntry);
+					     pe_session);
 		break;
 	case SIR_MAC_CCA_MEASUREMENT_TYPE:
 		__lim_process_cca_meas_req(mac, pMeasReqFrame, pHdr->sa,
-					   psessionEntry);
+					   pe_session);
 		break;
 	case SIR_MAC_RPI_MEASUREMENT_TYPE:
 		__lim_process_rpi_meas_req(mac, pMeasReqFrame, pHdr->sa,
-					   psessionEntry);
+					   pe_session);
 		break;
 	default:
 		pe_warn("Unknown Measurement Type: %d",
@@ -1133,7 +1133,7 @@
 } /*** end limProcessMeasurementRequestFrame ***/
 static void
 __lim_process_tpc_request_frame(tpAniSirGlobal mac, uint8_t *pRxPacketInfo,
-				struct pe_session *psessionEntry)
+				struct pe_session *pe_session)
 {
 	tpSirMacMgmtHdr pHdr;
 	uint8_t *pBody;
@@ -1156,7 +1156,7 @@
 	}
 	if (lim_send_tpc_report_frame(mac,
 				      pTpcReqFrame,
-				      pHdr->sa, psessionEntry) != QDF_STATUS_SUCCESS) {
+				      pHdr->sa, pe_session) != QDF_STATUS_SUCCESS) {
 		pe_err("fail to send TPC Report Frame");
 		return;
 	}
@@ -1165,7 +1165,7 @@
 
 static void
 __lim_process_sm_power_save_update(tpAniSirGlobal mac, uint8_t *pRxPacketInfo,
-				   struct pe_session *psessionEntry)
+				   struct pe_session *pe_session)
 {
 
 	tpSirMacMgmtHdr pHdr;
@@ -1182,7 +1182,7 @@
 
 	pSta =
 		dph_lookup_hash_entry(mac, pHdr->sa, &aid,
-				      &psessionEntry->dph.dphHashTable);
+				      &pe_session->dph.dphHashTable);
 	if (pSta == NULL) {
 		pe_err("STA context not found - ignoring UpdateSM PSave Mode from");
 		lim_print_mac_addr(mac, pHdr->sa, LOGE);
@@ -1231,13 +1231,13 @@
 	/** Update in the HAL Station Table for the Update of the Protection Mode */
 	pSta->htMIMOPSState = state;
 	lim_post_sm_state_update(mac, pSta->staIndex, pSta->htMIMOPSState,
-				 pSta->staAddr, psessionEntry->smeSessionId);
+				 pSta->staAddr, pe_session->smeSessionId);
 }
 
 
 static void
 __lim_process_radio_measure_request(tpAniSirGlobal mac, uint8_t *pRxPacketInfo,
-				    struct pe_session *psessionEntry)
+				    struct pe_session *pe_session)
 {
 	tpSirMacMgmtHdr pHdr;
 	tDot11fRadioMeasurementRequest *frm;
@@ -1249,7 +1249,7 @@
 	pBody = WMA_GET_RX_MPDU_DATA(pRxPacketInfo);
 	frameLen = WMA_GET_RX_PAYLOAD_LEN(pRxPacketInfo);
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		return;
 	}
 
@@ -1266,7 +1266,7 @@
 	mac->rrm.rrmPEContext.prev_rrm_report_seq_num = curr_seq_num;
 	lim_send_sme_mgmt_frame_ind(mac, pHdr->fc.subType, (uint8_t *)pHdr,
 		frameLen + sizeof(tSirMacMgmtHdr), 0,
-		WMA_GET_RX_CH(pRxPacketInfo), psessionEntry,
+		WMA_GET_RX_CH(pRxPacketInfo), pe_session,
 		WMA_GET_RX_RSSI_NORMALIZED(pRxPacketInfo));
 
 	frm = qdf_mem_malloc(sizeof(*frm));
@@ -1290,14 +1290,14 @@
 	/* Call rrm function to handle the request. */
 
 	rrm_process_radio_measurement_request(mac, pHdr->sa, frm,
-					      psessionEntry);
+					      pe_session);
 err:
 	qdf_mem_free(frm);
 }
 
 static QDF_STATUS
 __lim_process_link_measurement_req(tpAniSirGlobal mac, uint8_t *pRxPacketInfo,
-				   struct pe_session *psessionEntry)
+				   struct pe_session *pe_session)
 {
 	tpSirMacMgmtHdr pHdr;
 	tDot11fLinkMeasurementRequest frm;
@@ -1308,7 +1308,7 @@
 	pBody = WMA_GET_RX_MPDU_DATA(pRxPacketInfo);
 	frameLen = WMA_GET_RX_PAYLOAD_LEN(pRxPacketInfo);
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		return QDF_STATUS_E_FAILURE;
 	}
 
@@ -1330,13 +1330,13 @@
 	/* Call rrm function to handle the request. */
 
 	return rrm_process_link_measurement_request(mac, pRxPacketInfo, &frm,
-					     psessionEntry);
+					     pe_session);
 
 }
 
 static void
 __lim_process_neighbor_report(tpAniSirGlobal mac, uint8_t *pRxPacketInfo,
-			      struct pe_session *psessionEntry)
+			      struct pe_session *pe_session)
 {
 	tpSirMacMgmtHdr pHdr;
 	tDot11fNeighborReportResponse *pFrm;
@@ -1351,7 +1351,7 @@
 	if (!pFrm)
 		return;
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		qdf_mem_free(pFrm);
 		return;
 	}
@@ -1373,7 +1373,7 @@
 			nStatus, frameLen);
 	}
 	/* Call rrm function to handle the request. */
-	rrm_process_neighbor_report_response(mac, pFrm, psessionEntry);
+	rrm_process_neighbor_report_response(mac, pFrm, pe_session);
 
 	qdf_mem_free(pFrm);
 }
@@ -1395,13 +1395,13 @@
  *
  * @param  mac - Pointer to Global MAC structure
  * @param  *pRxPacketInfo - Handle to the Rx packet info
- * @param  psessionEntry - PE session entry
+ * @param  pe_session - PE session entry
  *
  * @return None
  */
 static void __lim_process_sa_query_request_action_frame(tpAniSirGlobal mac,
 							uint8_t *pRxPacketInfo,
-							struct pe_session *psessionEntry)
+							struct pe_session *pe_session)
 {
 	tpSirMacMgmtHdr pHdr;
 	uint8_t *pBody;
@@ -1425,7 +1425,7 @@
 		return;
 
 	/* 11w offload is enabled then firmware should not fwd this frame */
-	if (LIM_IS_STA_ROLE(psessionEntry) && mac->pmf_offload) {
+	if (LIM_IS_STA_ROLE(pe_session) && mac->pmf_offload) {
 		pe_err("11w offload enabled, SA Query req isn't expected");
 		return;
 	}
@@ -1442,7 +1442,7 @@
 	if (lim_send_sa_query_response_frame(mac,
 					     transId,
 					     pHdr->sa,
-					     psessionEntry) != QDF_STATUS_SUCCESS) {
+					     pe_session) != QDF_STATUS_SUCCESS) {
 		pe_err("fail to send SA query response action frame");
 		return;
 	}
@@ -1463,12 +1463,12 @@
  *
  * @param  mac - Pointer to Global MAC structure
  * @param  *pRxPacketInfo - Handle to the Rx packet info
- * @param  psessionEntry - PE session entry
+ * @param  pe_session - PE session entry
  * @return None
  */
 static void __lim_process_sa_query_response_action_frame(tpAniSirGlobal mac,
 							 uint8_t *pRxPacketInfo,
-							 struct pe_session *psessionEntry)
+							 struct pe_session *pe_session)
 {
 	tpSirMacMgmtHdr pHdr;
 	uint32_t frame_len;
@@ -1490,13 +1490,13 @@
 	/* When a station, supplicant handles SA Query Response.
 	 * Forward to SME to HDD to wpa_supplicant.
 	 */
-	if (LIM_IS_STA_ROLE(psessionEntry)) {
+	if (LIM_IS_STA_ROLE(pe_session)) {
 		lim_send_sme_mgmt_frame_ind(mac, pHdr->fc.subType,
 					    (uint8_t *)pHdr,
 					    frame_len + sizeof(tSirMacMgmtHdr),
 					    0,
 					    WMA_GET_RX_CH(pRxPacketInfo),
-					    psessionEntry,
+					    pe_session,
 					    WMA_GET_RX_RSSI_NORMALIZED(
 					    pRxPacketInfo));
 		return;
@@ -1508,7 +1508,7 @@
 
 	pSta =
 		dph_lookup_hash_entry(mac, pHdr->sa, &aid,
-				      &psessionEntry->dph.dphHashTable);
+				      &pe_session->dph.dphHashTable);
 	if (NULL == pSta)
 		return;
 
@@ -1557,28 +1557,28 @@
  ***NOTE:
  *
  * @param  mac - Global MAC structure
- * @param  psessionEntry - PE session entry
+ * @param  pe_session - PE session entry
  * @param  pHdr - Frame header
  * @param  category - Action frame category
  * @return true if frame should be dropped
  */
 
 static bool
-lim_drop_unprotected_action_frame(tpAniSirGlobal mac, struct pe_session *psessionEntry,
+lim_drop_unprotected_action_frame(tpAniSirGlobal mac, struct pe_session *pe_session,
 				  tpSirMacMgmtHdr pHdr, uint8_t category)
 {
 	uint16_t aid;
 	tpDphHashNode pStaDs;
 	bool rmfConnection = false;
 
-	if (LIM_IS_AP_ROLE(psessionEntry)) {
+	if (LIM_IS_AP_ROLE(pe_session)) {
 		pStaDs =
 			dph_lookup_hash_entry(mac, pHdr->sa, &aid,
-					      &psessionEntry->dph.dphHashTable);
+					      &pe_session->dph.dphHashTable);
 		if (pStaDs != NULL)
 			if (pStaDs->rmfEnabled)
 				rmfConnection = true;
-	} else if (psessionEntry->limRmfEnabled)
+	} else if (pe_session->limRmfEnabled)
 		rmfConnection = true;
 
 	if (rmfConnection && (pHdr->fc.wep == 0)) {
diff --git a/core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c b/core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c
index de5934c..f307668 100644
--- a/core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c
+++ b/core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c
@@ -45,7 +45,7 @@
 #include "lim_process_fils.h"
 
 extern QDF_STATUS sch_beacon_edca_process(tpAniSirGlobal mac,
-	tSirMacEdcaParamSetIE *edca, struct pe_session *psessionEntry);
+	tSirMacEdcaParamSetIE *edca, struct pe_session *pe_session);
 
 /**
  * lim_update_stads_htcap() - Updates station Descriptor HT capability
@@ -464,12 +464,12 @@
 static void lim_stop_reassoc_retry_timer(tpAniSirGlobal mac_ctx)
 {
 	mac_ctx->lim.reAssocRetryAttempt = 0;
-	if ((NULL != mac_ctx->lim.pSessionEntry)
+	if ((NULL != mac_ctx->lim.pe_session)
 		&& (NULL !=
-			mac_ctx->lim.pSessionEntry->pLimMlmReassocRetryReq)) {
+			mac_ctx->lim.pe_session->pLimMlmReassocRetryReq)) {
 		qdf_mem_free(
-			mac_ctx->lim.pSessionEntry->pLimMlmReassocRetryReq);
-		mac_ctx->lim.pSessionEntry->pLimMlmReassocRetryReq = NULL;
+			mac_ctx->lim.pe_session->pLimMlmReassocRetryReq);
+		mac_ctx->lim.pe_session->pLimMlmReassocRetryReq = NULL;
 	}
 	lim_deactivate_and_change_timer(mac_ctx, eLIM_REASSOC_FAIL_TIMER);
 }
diff --git a/core/mac/src/pe/lim/lim_process_auth_frame.c b/core/mac/src/pe/lim/lim_process_auth_frame.c
index 6902b2d..1c57053 100644
--- a/core/mac/src/pe/lim/lim_process_auth_frame.c
+++ b/core/mac/src/pe/lim/lim_process_auth_frame.c
@@ -71,18 +71,18 @@
 
 static inline unsigned int is_auth_valid(tpAniSirGlobal mac,
 					 tpSirMacAuthFrameBody auth,
-					 struct pe_session *sessionEntry)
+					 struct pe_session *pe_session)
 {
 	unsigned int valid = 1;
 
 	if (((auth->authTransactionSeqNumber == SIR_MAC_AUTH_FRAME_1) ||
 	    (auth->authTransactionSeqNumber == SIR_MAC_AUTH_FRAME_3)) &&
-	    (LIM_IS_STA_ROLE(sessionEntry)))
+	    (LIM_IS_STA_ROLE(pe_session)))
 		valid = 0;
 
 	if (((auth->authTransactionSeqNumber == SIR_MAC_AUTH_FRAME_2) ||
 	    (auth->authTransactionSeqNumber == SIR_MAC_AUTH_FRAME_4)) &&
-	    (LIM_IS_AP_ROLE(sessionEntry)))
+	    (LIM_IS_AP_ROLE(pe_session)))
 		valid = 0;
 
 	if (((auth->authTransactionSeqNumber == SIR_MAC_AUTH_FRAME_3) ||
@@ -1512,7 +1512,7 @@
 						void *body)
 {
 	tpSirMacMgmtHdr pHdr;
-	struct pe_session *psessionEntry = NULL;
+	struct pe_session *pe_session = NULL;
 	uint8_t *pBody;
 	uint16_t frameLen;
 	tSirMacAuthFrameBody rxAuthFrame;
@@ -1537,18 +1537,18 @@
 		    mac->lim.gpSession[i].ftPEContext.ftPreAuthSession ==
 		    true) {
 			/* Found the session */
-			psessionEntry = &mac->lim.gpSession[i];
+			pe_session = &mac->lim.gpSession[i];
 			mac->lim.gpSession[i].ftPEContext.ftPreAuthSession =
 				false;
 		}
 	}
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_debug("cannot find session id in FT pre-auth phase");
 		return QDF_STATUS_E_FAILURE;
 	}
 
-	if (psessionEntry->ftPEContext.pFTPreAuthReq == NULL) {
+	if (pe_session->ftPEContext.pFTPreAuthReq == NULL) {
 		pe_err("Error: No FT");
 		/* No FT in progress. */
 		return QDF_STATUS_E_FAILURE;
@@ -1560,7 +1560,7 @@
 	}
 	lim_print_mac_addr(mac, pHdr->bssId, LOGD);
 	lim_print_mac_addr(mac,
-			   psessionEntry->ftPEContext.pFTPreAuthReq->preAuthbssId,
+			   pe_session->ftPEContext.pFTPreAuthReq->preAuthbssId,
 			   LOGD);
 	pe_debug("seqControl: 0x%X",
 		((pHdr->seqControl.seqNumHi << 8) |
@@ -1569,7 +1569,7 @@
 
 	/* Check that its the same bssId we have for preAuth */
 	if (qdf_mem_cmp
-		    (psessionEntry->ftPEContext.pFTPreAuthReq->preAuthbssId,
+		    (pe_session->ftPEContext.pFTPreAuthReq->preAuthbssId,
 		    pHdr->bssId, sizeof(tSirMacAddr))) {
 		pe_err("Error: Same bssid as preauth BSSID");
 		/* In this case SME if indeed has triggered a */
@@ -1578,7 +1578,7 @@
 	}
 
 	if (true ==
-	    psessionEntry->ftPEContext.pFTPreAuthReq->bPreAuthRspProcessed) {
+	    pe_session->ftPEContext.pFTPreAuthReq->bPreAuthRspProcessed) {
 		/*
 		 * This is likely a duplicate for the same pre-auth request.
 		 * PE/LIM already posted a response to SME. Hence, drop it.
@@ -1597,14 +1597,14 @@
 		 * pre-auth.
 		 */
 		pe_debug("Auth rsp already posted to SME"
-			       " (session %pK, FT session %pK)", psessionEntry,
-			       psessionEntry);
+			       " (session %pK, FT session %pK)", pe_session,
+			       pe_session);
 		return QDF_STATUS_SUCCESS;
 	} else {
 		pe_warn("Auth rsp not yet posted to SME"
-			       " (session %pK, FT session %pK)", psessionEntry,
-			       psessionEntry);
-		psessionEntry->ftPEContext.pFTPreAuthReq->bPreAuthRspProcessed =
+			       " (session %pK, FT session %pK)", pe_session,
+			       pe_session);
+		pe_session->ftPEContext.pFTPreAuthReq->bPreAuthRspProcessed =
 			true;
 	}
 
@@ -1617,7 +1617,7 @@
 	     QDF_STATUS_SUCCESS)) {
 		pe_err("failed to convert Auth frame to struct");
 		lim_handle_ft_pre_auth_rsp(mac, QDF_STATUS_E_FAILURE, NULL, 0,
-					   psessionEntry);
+					   pe_session);
 		return QDF_STATUS_E_FAILURE;
 	}
 	pRxAuthFrameBody = &rxAuthFrame;
@@ -1647,7 +1647,7 @@
 	}
 
 	/* Send the Auth response to SME */
-	lim_handle_ft_pre_auth_rsp(mac, ret_status, pBody, frameLen, psessionEntry);
+	lim_handle_ft_pre_auth_rsp(mac, ret_status, pBody, frameLen, pe_session);
 
 	return ret_status;
 }
diff --git a/core/mac/src/pe/lim/lim_process_cfg_updates.c b/core/mac/src/pe/lim/lim_process_cfg_updates.c
index fdcfe8d..8c4eef6 100644
--- a/core/mac/src/pe/lim/lim_process_cfg_updates.c
+++ b/core/mac/src/pe/lim/lim_process_cfg_updates.c
@@ -37,7 +37,7 @@
 #include "sch_api.h"
 #include "rrm_api.h"
 
-static void lim_update_config(tpAniSirGlobal mac, struct pe_session *psessionEntry);
+static void lim_update_config(tpAniSirGlobal mac, struct pe_session *pe_session);
 
 void lim_set_cfg_protection(tpAniSirGlobal mac, struct pe_session *pesessionEntry)
 {
@@ -157,33 +157,33 @@
  * @return None
  */
 
-void lim_apply_configuration(tpAniSirGlobal mac, struct pe_session *psessionEntry)
+void lim_apply_configuration(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
 	uint32_t val = 0, phyMode;
 
 	pe_debug("Applying config");
 
-	psessionEntry->limSentCapsChangeNtf = false;
+	pe_session->limSentCapsChangeNtf = false;
 
-	lim_get_phy_mode(mac, &phyMode, psessionEntry);
+	lim_get_phy_mode(mac, &phyMode, pe_session);
 
-	lim_update_config(mac, psessionEntry);
+	lim_update_config(mac, pe_session);
 
-	lim_get_short_slot_from_phy_mode(mac, psessionEntry, phyMode,
-					 &psessionEntry->shortSlotTimeSupported);
+	lim_get_short_slot_from_phy_mode(mac, pe_session, phyMode,
+					 &pe_session->shortSlotTimeSupported);
 
-	lim_set_cfg_protection(mac, psessionEntry);
+	lim_set_cfg_protection(mac, pe_session);
 
 	/* Added for BT - AMP Support */
-	if (LIM_IS_AP_ROLE(psessionEntry) ||
-	    LIM_IS_IBSS_ROLE(psessionEntry)) {
+	if (LIM_IS_AP_ROLE(pe_session) ||
+	    LIM_IS_IBSS_ROLE(pe_session)) {
 		/* This check is required to ensure the beacon generation is not done
 		   as a part of join request for a BT-AMP station */
 
-		if (psessionEntry->statypeForBss == STA_ENTRY_SELF) {
+		if (pe_session->statypeForBss == STA_ENTRY_SELF) {
 			pe_debug("Initializing BT-AMP beacon generation");
-			sch_set_beacon_interval(mac, psessionEntry);
-			sch_set_fixed_beacon_fields(mac, psessionEntry);
+			sch_set_beacon_interval(mac, pe_session);
+			sch_set_fixed_beacon_fields(mac, pe_session);
 		}
 	}
 
@@ -211,42 +211,42 @@
  * @return None
  */
 
-static void lim_update_config(tpAniSirGlobal mac, struct pe_session *psessionEntry)
+static void lim_update_config(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
 	uint32_t val;
 	bool enabled;
 
-	psessionEntry->beaconParams.fShortPreamble =
+	pe_session->beaconParams.fShortPreamble =
 					mac->mlme_cfg->ht_caps.short_preamble;
 
 	/* In STA case this parameter is filled during the join request */
-	if (LIM_IS_AP_ROLE(psessionEntry) ||
-		LIM_IS_IBSS_ROLE(psessionEntry)) {
+	if (LIM_IS_AP_ROLE(pe_session) ||
+		LIM_IS_IBSS_ROLE(pe_session)) {
 		enabled = mac->mlme_cfg->wmm_params.wme_enabled;
-		psessionEntry->limWmeEnabled = enabled;
+		pe_session->limWmeEnabled = enabled;
 	}
 	enabled = mac->mlme_cfg->wmm_params.wsm_enabled;
-	psessionEntry->limWsmEnabled = enabled;
+	pe_session->limWsmEnabled = enabled;
 
-	if ((!psessionEntry->limWmeEnabled) && (psessionEntry->limWsmEnabled)) {
+	if ((!pe_session->limWmeEnabled) && (pe_session->limWsmEnabled)) {
 		pe_err("Can't enable WSM without WME");
-		psessionEntry->limWsmEnabled = 0;
+		pe_session->limWsmEnabled = 0;
 	}
 	/* In STA , this parameter is filled during the join request */
-	if (LIM_IS_AP_ROLE(psessionEntry) || LIM_IS_IBSS_ROLE(psessionEntry)) {
+	if (LIM_IS_AP_ROLE(pe_session) || LIM_IS_IBSS_ROLE(pe_session)) {
 		enabled = mac->mlme_cfg->wmm_params.qos_enabled;
-		psessionEntry->limQosEnabled = enabled;
+		pe_session->limQosEnabled = enabled;
 	}
-	psessionEntry->limHcfEnabled = mac->mlme_cfg->feature_flags.enable_hcf;
+	pe_session->limHcfEnabled = mac->mlme_cfg->feature_flags.enable_hcf;
 
 	/* AP: WSM should enable HCF as well, for STA enable WSM only after */
 	/* association response is received */
-	if (psessionEntry->limWsmEnabled && LIM_IS_AP_ROLE(psessionEntry))
-		psessionEntry->limHcfEnabled = 1;
+	if (pe_session->limWsmEnabled && LIM_IS_AP_ROLE(pe_session))
+		pe_session->limHcfEnabled = 1;
 
 	if (wlan_cfg_get_int(mac, WNI_CFG_11D_ENABLED, &val) != QDF_STATUS_SUCCESS)
 		pe_err("cfg get 11d enabled failed");
-	psessionEntry->lim11dEnabled = (val) ? 1 : 0;
+	pe_session->lim11dEnabled = (val) ? 1 : 0;
 
 	pe_debug("Updated Lim shadow state based on CFG");
 }
diff --git a/core/mac/src/pe/lim/lim_process_deauth_frame.c b/core/mac/src/pe/lim/lim_process_deauth_frame.c
index 59a0e3b..74fc953 100644
--- a/core/mac/src/pe/lim/lim_process_deauth_frame.c
+++ b/core/mac/src/pe/lim/lim_process_deauth_frame.c
@@ -59,7 +59,7 @@
 
 void
 lim_process_deauth_frame(tpAniSirGlobal mac, uint8_t *pRxPacketInfo,
-			 struct pe_session *psessionEntry)
+			 struct pe_session *pe_session)
 {
 	uint8_t *pBody;
 	uint16_t reasonCode;
@@ -81,9 +81,9 @@
 		return ;
 	}
 
-	if (LIM_IS_STA_ROLE(psessionEntry) &&
-	    ((eLIM_SME_WT_DISASSOC_STATE == psessionEntry->limSmeState) ||
-	     (eLIM_SME_WT_DEAUTH_STATE == psessionEntry->limSmeState))) {
+	if (LIM_IS_STA_ROLE(pe_session) &&
+	    ((eLIM_SME_WT_DISASSOC_STATE == pe_session->limSmeState) ||
+	     (eLIM_SME_WT_DEAUTH_STATE == pe_session->limSmeState))) {
 		/*Every 15th deauth frame will be logged in kmsg */
 		if (!(mac->lim.deauthMsgCnt & 0xF)) {
 			pe_debug("received Deauth frame in DEAUTH_WT_STATE"
@@ -110,13 +110,13 @@
 		return;
 	}
 	if (!lim_validate_received_frame_a1_addr(mac,
-			pHdr->da, psessionEntry)) {
+			pHdr->da, pe_session)) {
 		pe_err("rx frame doesn't have valid a1 address, drop it");
 		return;
 	}
 #ifdef WLAN_FEATURE_11W
 	/* PMF: If this session is a PMF session, then ensure that this frame was protected */
-	if (psessionEntry->limRmfEnabled
+	if (pe_session->limRmfEnabled
 	    && (WMA_GET_RX_DPU_FEEDBACK(pRxPacketInfo) &
 		DPU_FEEDBACK_UNPROTECTED_ERROR)) {
 		pe_debug("received an unprotected deauth from AP");
@@ -124,7 +124,7 @@
 		 * When 11w offload is enabled then
 		 * firmware should not fwd this frame
 		 */
-		if (LIM_IS_STA_ROLE(psessionEntry) && mac->pmf_offload) {
+		if (LIM_IS_STA_ROLE(pe_session) && mac->pmf_offload) {
 			pe_err("11w offload is enable,unprotected deauth is not expected");
 			return;
 		}
@@ -137,8 +137,8 @@
 							(uint8_t *) pHdr,
 							(frameLen +
 							 sizeof(tSirMacMgmtHdr)),
-							psessionEntry->smeSessionId,
-							psessionEntry);
+							pe_session->smeSessionId,
+							pe_session);
 		return;
 	}
 #endif
@@ -150,9 +150,9 @@
 			"(mlm state = %s, sme state = %d systemrole = %d "
 			"RSSI = %d) with reason code %d [%s] from "
 			MAC_ADDRESS_STR, MAC_ADDR_ARRAY(pHdr->da),
-			lim_mlm_state_str(psessionEntry->limMlmState),
-			psessionEntry->limSmeState,
-			GET_LIM_SYSTEM_ROLE(psessionEntry), frame_rssi,
+			lim_mlm_state_str(pe_session->limMlmState),
+			pe_session->limSmeState,
+			GET_LIM_SYSTEM_ROLE(pe_session), frame_rssi,
 			reasonCode, lim_dot11_reason_str(reasonCode),
 			MAC_ADDR_ARRAY(pHdr->sa));
 
@@ -167,7 +167,7 @@
 	}
 
 	lim_diag_event_report(mac, WLAN_PE_DIAG_DEAUTH_FRAME_EVENT,
-		psessionEntry, 0, reasonCode);
+		pe_session, 0, reasonCode);
 
 	if (lim_check_disassoc_deauth_ack_pending(mac, (uint8_t *) pHdr->sa)) {
 		pe_debug("Ignore the Deauth received, while waiting for ack of "
@@ -176,7 +176,7 @@
 		return;
 	}
 
-	if (LIM_IS_AP_ROLE(psessionEntry)) {
+	if (LIM_IS_AP_ROLE(pe_session)) {
 		switch (reasonCode) {
 		case eSIR_MAC_UNSPEC_FAILURE_REASON:
 		case eSIR_MAC_DEAUTH_LEAVING_BSS_REASON:
@@ -192,7 +192,7 @@
 
 			break;
 		}
-	} else if (LIM_IS_STA_ROLE(psessionEntry)) {
+	} else if (LIM_IS_STA_ROLE(pe_session)) {
 		switch (reasonCode) {
 		case eSIR_MAC_UNSPEC_FAILURE_REASON:
 		case eSIR_MAC_PREV_AUTH_NOT_VALID_REASON:
@@ -217,7 +217,7 @@
 		/* or un-known role. Log and ignore it */
 		pe_err("received Deauth frame with reasonCode %d in role %d from "
 			MAC_ADDRESS_STR, reasonCode,
-			GET_LIM_SYSTEM_ROLE(psessionEntry),
+			GET_LIM_SYSTEM_ROLE(pe_session),
 			MAC_ADDR_ARRAY(pHdr->sa));
 
 		return;
@@ -242,19 +242,19 @@
 	 *     with normal deauth processing.
 	 */
 	pRoamSessionEntry =
-		pe_find_session_by_bssid(mac, psessionEntry->limReAssocbssId,
+		pe_find_session_by_bssid(mac, pe_session->limReAssocbssId,
 							&roamSessionId);
 
-	if (lim_is_reassoc_in_progress(mac, psessionEntry) ||
+	if (lim_is_reassoc_in_progress(mac, pe_session) ||
 	    lim_is_reassoc_in_progress(mac, pRoamSessionEntry) ||
-	    psessionEntry->fw_roaming_started) {
+	    pe_session->fw_roaming_started) {
 		/*
 		 * For LFR3, the roaming bssid is not known during ROAM_START,
 		 * so check if the deauth is received from current AP when
 		 * roaming is being done in the firmware
 		 */
-		if (psessionEntry->fw_roaming_started &&
-		    IS_CURRENT_BSSID(mac, pHdr->sa, psessionEntry)) {
+		if (pe_session->fw_roaming_started &&
+		    IS_CURRENT_BSSID(mac, pHdr->sa, pe_session)) {
 			pe_debug("LFR3: Drop deauth frame from connected AP");
 			/*
 			 * recvd_deauth_while_roaming will be stored in the
@@ -265,33 +265,33 @@
 			 * roaming succeeds, then this session gets deleted and
 			 * new session is created.
 			 */
-			psessionEntry->recvd_deauth_while_roaming = true;
-			psessionEntry->deauth_disassoc_rc = reasonCode;
+			pe_session->recvd_deauth_while_roaming = true;
+			pe_session->deauth_disassoc_rc = reasonCode;
 			return;
 		}
-		if (!IS_REASSOC_BSSID(mac, pHdr->sa, psessionEntry)) {
+		if (!IS_REASSOC_BSSID(mac, pHdr->sa, pe_session)) {
 			pe_debug("Rcv Deauth from unknown/different "
 				"AP while ReAssoc. Ignore " MAC_ADDRESS_STR
 				"limReAssocbssId : " MAC_ADDRESS_STR,
 				MAC_ADDR_ARRAY(pHdr->sa),
-				MAC_ADDR_ARRAY(psessionEntry->limReAssocbssId));
+				MAC_ADDR_ARRAY(pe_session->limReAssocbssId));
 			return;
 		}
 
 		/** Received deauth from the new AP to which we tried to ReAssociate.
 		 *  Drop ReAssoc and Restore the Previous context( current connected AP).
 		 */
-		if (!IS_CURRENT_BSSID(mac, pHdr->sa, psessionEntry)) {
+		if (!IS_CURRENT_BSSID(mac, pHdr->sa, pe_session)) {
 			pe_debug("received DeAuth from the New AP to "
 				"which ReAssoc is sent " MAC_ADDRESS_STR
-				"psessionEntry->bssId: " MAC_ADDRESS_STR,
+				"pe_session->bssId: " MAC_ADDRESS_STR,
 				MAC_ADDR_ARRAY(pHdr->sa),
-				MAC_ADDR_ARRAY(psessionEntry->bssId));
+				MAC_ADDR_ARRAY(pe_session->bssId));
 
 			lim_restore_pre_reassoc_state(mac,
 						      eSIR_SME_REASSOC_REFUSED,
 						      reasonCode,
-						      psessionEntry);
+						      pe_session);
 			return;
 		}
 	}
@@ -299,8 +299,8 @@
 	/* If received DeAuth from AP other than the one we're trying to join with
 	 * nor associated with, then ignore deauth and delete Pre-auth entry.
 	 */
-	if (!LIM_IS_AP_ROLE(psessionEntry)) {
-		if (!IS_CURRENT_BSSID(mac, pHdr->bssId, psessionEntry)) {
+	if (!LIM_IS_AP_ROLE(pe_session)) {
+		if (!IS_CURRENT_BSSID(mac, pHdr->bssId, pe_session)) {
 			pe_err("received DeAuth from an AP other "
 				"than we're trying to join. Ignore. "
 				MAC_ADDRESS_STR, MAC_ADDR_ARRAY(pHdr->sa));
@@ -313,7 +313,7 @@
 		}
 	}
 
-	lim_perform_deauth(mac, psessionEntry, reasonCode, pHdr->sa,
+	lim_perform_deauth(mac, pe_session, reasonCode, pHdr->sa,
 			   frame_rssi);
 
 
diff --git a/core/mac/src/pe/lim/lim_process_disassoc_frame.c b/core/mac/src/pe/lim/lim_process_disassoc_frame.c
index 131c4f3..e3d56a4 100644
--- a/core/mac/src/pe/lim/lim_process_disassoc_frame.c
+++ b/core/mac/src/pe/lim/lim_process_disassoc_frame.c
@@ -62,7 +62,7 @@
  */
 void
 lim_process_disassoc_frame(tpAniSirGlobal mac, uint8_t *pRxPacketInfo,
-			   struct pe_session *psessionEntry)
+			   struct pe_session *pe_session)
 {
 	uint8_t *pBody;
 	uint16_t aid, reasonCode;
@@ -91,18 +91,18 @@
 		return;
 	}
 	if (!lim_validate_received_frame_a1_addr(mac,
-			pHdr->da, psessionEntry)) {
+			pHdr->da, pe_session)) {
 		pe_err("rx frame doesn't have valid a1 address, drop it");
 		return;
 	}
 
-	if (LIM_IS_STA_ROLE(psessionEntry) &&
-		((eLIM_SME_WT_DISASSOC_STATE == psessionEntry->limSmeState) ||
-		(eLIM_SME_WT_DEAUTH_STATE == psessionEntry->limSmeState))) {
+	if (LIM_IS_STA_ROLE(pe_session) &&
+		((eLIM_SME_WT_DISASSOC_STATE == pe_session->limSmeState) ||
+		(eLIM_SME_WT_DEAUTH_STATE == pe_session->limSmeState))) {
 		if (!(mac->lim.disassocMsgCnt & 0xF)) {
 			pe_debug("received Disassoc frame in %s"
 				"already processing previously received Disassoc frame, dropping this %d",
-				 lim_sme_state_str(psessionEntry->limSmeState),
+				 lim_sme_state_str(pe_session->limSmeState),
 				 ++mac->lim.disassocMsgCnt);
 		} else {
 			mac->lim.disassocMsgCnt++;
@@ -111,7 +111,7 @@
 	}
 #ifdef WLAN_FEATURE_11W
 	/* PMF: If this session is a PMF session, then ensure that this frame was protected */
-	if (psessionEntry->limRmfEnabled
+	if (pe_session->limRmfEnabled
 	    && (WMA_GET_RX_DPU_FEEDBACK(pRxPacketInfo) &
 		DPU_FEEDBACK_UNPROTECTED_ERROR)) {
 		pe_err("received an unprotected disassoc from AP");
@@ -119,7 +119,7 @@
 		 * When 11w offload is enabled then
 		 * firmware should not fwd this frame
 		 */
-		if (LIM_IS_STA_ROLE(psessionEntry) &&  mac->pmf_offload) {
+		if (LIM_IS_STA_ROLE(pe_session) &&  mac->pmf_offload) {
 			pe_err("11w offload is enable,unprotected disassoc is not expected");
 			return;
 		}
@@ -131,8 +131,8 @@
 							(uint8_t *) pHdr,
 							(frame_len +
 							 sizeof(tSirMacMgmtHdr)),
-							psessionEntry->smeSessionId,
-							psessionEntry);
+							pe_session->smeSessionId,
+							pe_session);
 		return;
 	}
 #endif
@@ -149,11 +149,11 @@
 		 "(mlm state=%s, sme state=%d RSSI=%d),"
 		 "with reason code %d [%s] from " MAC_ADDRESS_STR,
 		 MAC_ADDR_ARRAY(pHdr->da),
-		 lim_mlm_state_str(psessionEntry->limMlmState),
-		 psessionEntry->limSmeState, frame_rssi, reasonCode,
+		 lim_mlm_state_str(pe_session->limMlmState),
+		 pe_session->limSmeState, frame_rssi, reasonCode,
 		 lim_dot11_reason_str(reasonCode), MAC_ADDR_ARRAY(pHdr->sa));
 	lim_diag_event_report(mac, WLAN_PE_DIAG_DISASSOC_FRAME_EVENT,
-		psessionEntry, 0, reasonCode);
+		pe_session, 0, reasonCode);
 
 	if (mac->mlme_cfg->gen.fatal_event_trigger &&
 	    (reasonCode != eSIR_MAC_UNSPEC_FAILURE_REASON &&
@@ -170,7 +170,7 @@
 	 */
 	pStaDs =
 		dph_lookup_hash_entry(mac, pHdr->sa, &aid,
-				      &psessionEntry->dph.dphHashTable);
+				      &pe_session->dph.dphHashTable);
 
 	if (pStaDs == NULL) {
 		/**
@@ -194,17 +194,17 @@
 	}
 
 	/** If we are in the Wait for ReAssoc Rsp state */
-	if (lim_is_reassoc_in_progress(mac, psessionEntry)) {
+	if (lim_is_reassoc_in_progress(mac, pe_session)) {
 		/*
 		 * For LFR3, the roaming bssid is not known during ROAM_START,
 		 * so check if the disassoc is received from current AP when
 		 * roaming is being done in the firmware
 		 */
-		if (psessionEntry->fw_roaming_started &&
-		    IS_CURRENT_BSSID(mac, pHdr->sa, psessionEntry)) {
+		if (pe_session->fw_roaming_started &&
+		    IS_CURRENT_BSSID(mac, pHdr->sa, pe_session)) {
 			pe_debug("Dropping disassoc frame from connected AP");
-			psessionEntry->recvd_disassoc_while_roaming = true;
-			psessionEntry->deauth_disassoc_rc = reasonCode;
+			pe_session->recvd_disassoc_while_roaming = true;
+			pe_session->deauth_disassoc_rc = reasonCode;
 			return;
 		}
 		/** If we had received the DisAssoc from,
@@ -212,24 +212,24 @@
 		 *     b. Unknown AP
 		 *   drop/ignore the DisAssoc received
 		 */
-		if (!IS_REASSOC_BSSID(mac, pHdr->sa, psessionEntry)) {
+		if (!IS_REASSOC_BSSID(mac, pHdr->sa, pe_session)) {
 			pe_err("Ignore DisAssoc while Processing ReAssoc");
 			return;
 		}
 		/** If the Disassoc is received from the new AP to which we tried to ReAssociate
 		 *  Drop ReAssoc and Restore the Previous context( current connected AP).
 		 */
-		if (!IS_CURRENT_BSSID(mac, pHdr->sa, psessionEntry)) {
+		if (!IS_CURRENT_BSSID(mac, pHdr->sa, pe_session)) {
 			pe_debug("received Disassoc from the New AP to which ReAssoc is sent");
 			lim_restore_pre_reassoc_state(mac,
 						      eSIR_SME_REASSOC_REFUSED,
 						      reasonCode,
-						      psessionEntry);
+						      pe_session);
 			return;
 		}
 	}
 
-	if (LIM_IS_AP_ROLE(psessionEntry)) {
+	if (LIM_IS_AP_ROLE(pe_session)) {
 		switch (reasonCode) {
 		case eSIR_MAC_UNSPEC_FAILURE_REASON:
 		case eSIR_MAC_DISASSOC_DUE_TO_INACTIVITY_REASON:
@@ -248,17 +248,17 @@
 				reasonCode, MAC_ADDR_ARRAY(pHdr->sa));
 			break;
 		}
-	} else if (LIM_IS_STA_ROLE(psessionEntry) &&
-		   ((psessionEntry->limSmeState != eLIM_SME_WT_JOIN_STATE) &&
-		   (psessionEntry->limSmeState != eLIM_SME_WT_AUTH_STATE) &&
-		   (psessionEntry->limSmeState != eLIM_SME_WT_ASSOC_STATE) &&
-		   (psessionEntry->limSmeState != eLIM_SME_WT_REASSOC_STATE))) {
+	} else if (LIM_IS_STA_ROLE(pe_session) &&
+		   ((pe_session->limSmeState != eLIM_SME_WT_JOIN_STATE) &&
+		   (pe_session->limSmeState != eLIM_SME_WT_AUTH_STATE) &&
+		   (pe_session->limSmeState != eLIM_SME_WT_ASSOC_STATE) &&
+		   (pe_session->limSmeState != eLIM_SME_WT_REASSOC_STATE))) {
 		switch (reasonCode) {
 		case eSIR_MAC_DEAUTH_LEAVING_BSS_REASON:
 		case eSIR_MAC_DISASSOC_LEAVING_BSS_REASON:
 			/* Valid reasonCode in received Disassociation frame */
 			/* as long as we're not about to channel switch */
-			if (psessionEntry->gLimChannelSwitch.state !=
+			if (pe_session->gLimChannelSwitch.state !=
 			    eLIM_CHANNEL_SWITCH_IDLE) {
 				pe_err("Ignoring disassoc frame due to upcoming channel switch, from "MAC_ADDRESS_STR,
 					MAC_ADDR_ARRAY(pHdr->sa));
@@ -274,7 +274,7 @@
 		/* or un-known role. Log and ignore it */
 		pe_err("received Disassoc frame with invalid reasonCode: %d in role:"
 				"%d in sme state: %d from " MAC_ADDRESS_STR, reasonCode,
-			GET_LIM_SYSTEM_ROLE(psessionEntry), psessionEntry->limSmeState,
+			GET_LIM_SYSTEM_ROLE(pe_session), pe_session->limSmeState,
 			MAC_ADDR_ARRAY(pHdr->sa));
 
 		return;
@@ -293,7 +293,7 @@
 		return;
 	}
 	pStaDs->sta_deletion_in_progress = true;
-	lim_disassoc_tdls_peers(mac, psessionEntry, pHdr->sa);
+	lim_disassoc_tdls_peers(mac, pe_session, pHdr->sa);
 	if (pStaDs->mlmStaContext.mlmState != eLIM_MLM_LINK_ESTABLISHED_STATE) {
 		/**
 		 * Requesting STA is in some 'transient' state?
@@ -310,7 +310,7 @@
 	} /* if (pStaDs->mlmStaContext.mlmState != eLIM_MLM_LINK_ESTABLISHED_STATE) */
 
 	lim_perform_disassoc(mac, frame_rssi, reasonCode,
-			     psessionEntry, pHdr->sa);
+			     pe_session, pHdr->sa);
 
 } /*** end lim_process_disassoc_frame() ***/
 
diff --git a/core/mac/src/pe/lim/lim_process_message_queue.c b/core/mac/src/pe/lim/lim_process_message_queue.c
index c9b9d40..9c427ae 100644
--- a/core/mac/src/pe/lim/lim_process_message_queue.c
+++ b/core/mac/src/pe/lim/lim_process_message_queue.c
@@ -675,9 +675,9 @@
  * Beacon Handling Cases:
  * during scanning, when no session is active:
  *    handled by lim_handle_frames_in_scan_state before __lim_handle_beacon call is invoked.
- * during scanning, when any session is active, but beacon/Pr does not belong to that session, psessionEntry will be null.
+ * during scanning, when any session is active, but beacon/Pr does not belong to that session, pe_session will be null.
  *    handled by lim_handle_frames_in_scan_state before __lim_handle_beacon call is invoked.
- * during scanning, when any session is active, and beacon/Pr belongs to one of the session, psessionEntry will not be null.
+ * during scanning, when any session is active, and beacon/Pr belongs to one of the session, pe_session will not be null.
  *    handled by lim_handle_frames_in_scan_state before __lim_handle_beacon call is invoked.
  * Not scanning, no session:
  *    there should not be any beacon coming, if coming, should be dropped.
@@ -685,7 +685,7 @@
  */
 static void
 __lim_handle_beacon(tpAniSirGlobal mac, struct scheduler_msg *pMsg,
-		    struct pe_session *psessionEntry)
+		    struct pe_session *pe_session)
 {
 	uint8_t *pRxPacketInfo;
 
@@ -695,13 +695,13 @@
 	/* This function should not be called if beacon is received in scan state. */
 	/* So not doing any checks for the global state. */
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		sch_beacon_process(mac, pRxPacketInfo, NULL);
-	} else if ((psessionEntry->limSmeState == eLIM_SME_LINK_EST_STATE) ||
-		   (psessionEntry->limSmeState == eLIM_SME_NORMAL_STATE)) {
-		sch_beacon_process(mac, pRxPacketInfo, psessionEntry);
+	} else if ((pe_session->limSmeState == eLIM_SME_LINK_EST_STATE) ||
+		   (pe_session->limSmeState == eLIM_SME_NORMAL_STATE)) {
+		sch_beacon_process(mac, pRxPacketInfo, pe_session);
 	} else
-		lim_process_beacon_frame(mac, pRxPacketInfo, psessionEntry);
+		lim_process_beacon_frame(mac, pRxPacketInfo, pe_session);
 
 	return;
 }
@@ -1121,7 +1121,7 @@
 	uint8_t *pRxPacketInfo = NULL;
 	tSirMacFrameCtl fc;
 	tpSirMacMgmtHdr pHdr = NULL;
-	struct pe_session *psessionEntry = NULL;
+	struct pe_session *pe_session = NULL;
 	uint8_t sessionId;
 	bool isFrmFt = false;
 	uint8_t channel;
@@ -1142,10 +1142,10 @@
 	   (!is_hw_sbs_capable ||
 	   (is_hw_sbs_capable && wlan_reg_is_dfs_ch(mac->pdev, channel))) &&
 	    mac->sap.SapDfsInfo.is_dfs_cac_timer_running) {
-		psessionEntry = pe_find_session_by_bssid(mac,
+		pe_session = pe_find_session_by_bssid(mac,
 					pHdr->bssId, &sessionId);
-		if (psessionEntry &&
-		    (QDF_SAP_MODE == psessionEntry->pePersona)) {
+		if (pe_session &&
+		    (QDF_SAP_MODE == pe_session->pePersona)) {
 			pe_debug("CAC timer running - drop the frame");
 			goto end;
 		}
@@ -1188,9 +1188,9 @@
 	}
 #endif
 	/* Added For BT-AMP Support */
-	psessionEntry = pe_find_session_by_bssid(mac, pHdr->bssId,
+	pe_session = pe_find_session_by_bssid(mac, pHdr->bssId,
 						 &sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		if (fc.subType == SIR_MAC_MGMT_AUTH) {
 			pe_debug("ProtVersion %d, Type %d, Subtype %d rateIndex=%d",
 				fc.protVer, fc.type, fc.subType,
@@ -1208,27 +1208,27 @@
 		    (fc.subType != SIR_MAC_MGMT_PROBE_REQ)
 		    && (fc.subType != SIR_MAC_MGMT_ACTION)) {
 
-			psessionEntry = pe_find_session_by_peer_sta(mac,
+			pe_session = pe_find_session_by_peer_sta(mac,
 						pHdr->sa, &sessionId);
-			if (psessionEntry == NULL) {
+			if (pe_session == NULL) {
 				pe_debug("session does not exist for bssId");
 				lim_print_mac_addr(mac, pHdr->sa, LOGD);
 				goto end;
 			} else {
 				pe_debug("SessionId:%d exists for given Bssid",
-					psessionEntry->peSessionId);
+					pe_session->peSessionId);
 			}
 		}
 		/*  For p2p resp frames search for valid session with DA as */
 		/*  BSSID will be SA and session will be present with DA only */
 		if (fc.subType == SIR_MAC_MGMT_ACTION) {
-			psessionEntry =
+			pe_session =
 				pe_find_session_by_bssid(mac, pHdr->da, &sessionId);
 		}
 	}
 
 	/* Check if frame is registered by HDD */
-	if (lim_check_mgmt_registered_frames(mac, pRxPacketInfo, psessionEntry)) {
+	if (lim_check_mgmt_registered_frames(mac, pRxPacketInfo, pe_session)) {
 		pe_debug("Received frame is passed to SME");
 		goto end;
 	}
@@ -1257,11 +1257,11 @@
 		switch (fc.subType) {
 		case SIR_MAC_MGMT_ASSOC_REQ:
 			/* Make sure the role supports Association */
-			if (LIM_IS_AP_ROLE(psessionEntry))
+			if (LIM_IS_AP_ROLE(pe_session))
 				lim_process_assoc_req_frame(mac,
 							    pRxPacketInfo,
 							    LIM_ASSOC,
-							    psessionEntry);
+							    pe_session);
 			else {
 				pe_err("unexpected message received %X",
 					limMsg->type);
@@ -1273,16 +1273,16 @@
 		case SIR_MAC_MGMT_ASSOC_RSP:
 			lim_process_assoc_rsp_frame(mac, pRxPacketInfo,
 						    LIM_ASSOC,
-						    psessionEntry);
+						    pe_session);
 			break;
 
 		case SIR_MAC_MGMT_REASSOC_REQ:
 			/* Make sure the role supports Reassociation */
-			if (LIM_IS_AP_ROLE(psessionEntry)) {
+			if (LIM_IS_AP_ROLE(pe_session)) {
 				lim_process_assoc_req_frame(mac,
 							    pRxPacketInfo,
 							    LIM_REASSOC,
-							    psessionEntry);
+							    pe_session);
 			} else {
 				pe_err("unexpected message received %X",
 					limMsg->type);
@@ -1294,43 +1294,43 @@
 		case SIR_MAC_MGMT_REASSOC_RSP:
 			lim_process_assoc_rsp_frame(mac, pRxPacketInfo,
 						    LIM_REASSOC,
-						    psessionEntry);
+						    pe_session);
 			break;
 
 		case SIR_MAC_MGMT_PROBE_REQ:
 			lim_process_probe_req_frame_multiple_bss(mac,
 								 pRxPacketInfo,
-								 psessionEntry);
+								 pe_session);
 			break;
 
 		case SIR_MAC_MGMT_PROBE_RSP:
-			if (psessionEntry)
+			if (pe_session)
 				lim_process_probe_rsp_frame(mac,
 							    pRxPacketInfo,
-							    psessionEntry);
+							    pe_session);
 			break;
 
 		case SIR_MAC_MGMT_BEACON:
-			__lim_handle_beacon(mac, limMsg, psessionEntry);
+			__lim_handle_beacon(mac, limMsg, pe_session);
 			break;
 
 		case SIR_MAC_MGMT_DISASSOC:
 			lim_process_disassoc_frame(mac, pRxPacketInfo,
-						   psessionEntry);
+						   pe_session);
 			break;
 
 		case SIR_MAC_MGMT_AUTH:
 			lim_process_auth_frame(mac, pRxPacketInfo,
-					       psessionEntry);
+					       pe_session);
 			break;
 
 		case SIR_MAC_MGMT_DEAUTH:
 			lim_process_deauth_frame(mac, pRxPacketInfo,
-						 psessionEntry);
+						 pe_session);
 			break;
 
 		case SIR_MAC_MGMT_ACTION:
-			if (psessionEntry == NULL)
+			if (pe_session == NULL)
 				lim_process_action_frame_no_session(mac,
 								    pRxPacketInfo);
 			else {
@@ -1338,11 +1338,11 @@
 					    (pRxPacketInfo))
 					lim_handle_unknown_a2_index_frames
 						(mac, pRxPacketInfo,
-						psessionEntry);
+						pe_session);
 				else
 					lim_process_action_frame(mac,
 								 pRxPacketInfo,
-								 psessionEntry);
+								 pe_session);
 			}
 			break;
 		default:
@@ -1363,7 +1363,7 @@
 	} /* switch (fc.type) */
 	if (lim_is_mgmt_frame_loggable(fc.type, fc.subType))
 		lim_diag_mgmt_rx_event_report(mac, pHdr,
-					      psessionEntry,
+					      pe_session,
 					      QDF_STATUS_SUCCESS, QDF_STATUS_SUCCESS);
 end:
 	lim_pkt_free(mac, TXRX_FRM_802_11_MGMT, pRxPacketInfo,
@@ -2193,7 +2193,7 @@
 
 void
 handle_ht_capabilityand_ht_info(struct mac_context *mac,
-				struct pe_session *psessionEntry)
+				struct pe_session *pe_session)
 {
 	struct mlme_ht_capabilities_info *ht_cap_info;
 
@@ -2243,16 +2243,16 @@
 
 	/* The lim globals for channelwidth and secondary chnl have been removed and should not be used during no session;
 	 * instead direct cfg is read and used when no session for transmission of mgmt frames (same as old);
-	 * For now, we might come here during init and join with sessionEntry = NULL; in that case just fill the globals which exist
+	 * For now, we might come here during init and join with pe_session = NULL; in that case just fill the globals which exist
 	 * Sessionized entries values will be filled in join or add bss req. The ones which are missed in join are filled below
 	 */
-	if (psessionEntry != NULL) {
-		psessionEntry->htCapability =
-			IS_DOT11_MODE_HT(psessionEntry->dot11mode);
-		psessionEntry->beaconParams.fLsigTXOPProtectionFullSupport =
+	if (pe_session != NULL) {
+		pe_session->htCapability =
+			IS_DOT11_MODE_HT(pe_session->dot11mode);
+		pe_session->beaconParams.fLsigTXOPProtectionFullSupport =
 			(uint8_t)mac->mlme_cfg->ht_caps.info_field_3.
 			lsig_txop_protection_full_support;
-		lim_init_obss_params(mac, psessionEntry);
+		lim_init_obss_params(mac, pe_session);
 	}
 }
 
diff --git a/core/mac/src/pe/lim/lim_process_mlm_host_roam.c b/core/mac/src/pe/lim/lim_process_mlm_host_roam.c
index e580527..fe78df8 100644
--- a/core/mac/src/pe/lim/lim_process_mlm_host_roam.c
+++ b/core/mac/src/pe/lim/lim_process_mlm_host_roam.c
@@ -136,7 +136,7 @@
 	/* Apply previously set configuration at HW */
 	lim_apply_configuration(mac_ctx, session);
 
-	/* store the channel switch sessionEntry in the lim global var */
+	/* store the channel switch pe_session in the lim global var */
 	session->channelChangeReasonCode =
 		LIM_SWITCH_CHANNEL_REASSOC;
 
@@ -165,7 +165,7 @@
  * @mac: Global MAC Context
  * @resultCode: Result code
  * @protStatusCode: Protocol Status Code
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * This function is called to process reassoc failures
  * upon receiving REASSOC_CNF with a failure code or
@@ -175,22 +175,22 @@
  */
 static void lim_handle_sme_reaasoc_result(tpAniSirGlobal mac,
 		tSirResultCodes resultCode, uint16_t protStatusCode,
-		struct pe_session *psessionEntry)
+		struct pe_session *pe_session)
 {
 	tpDphHashNode pStaDs = NULL;
 	uint8_t smesessionId;
 	uint16_t smetransactionId;
 
-	if (psessionEntry == NULL) {
-		pe_err("psessionEntry is NULL");
+	if (pe_session == NULL) {
+		pe_err("pe_session is NULL");
 		return;
 	}
-	smesessionId = psessionEntry->smeSessionId;
-	smetransactionId = psessionEntry->transactionId;
+	smesessionId = pe_session->smeSessionId;
+	smetransactionId = pe_session->transactionId;
 	if (resultCode != eSIR_SME_SUCCESS) {
 		pStaDs =
 			dph_get_hash_entry(mac, DPH_STA_HASH_INDEX_PEER,
-					   &psessionEntry->dph.dphHashTable);
+					   &pe_session->dph.dphHashTable);
 		if (pStaDs != NULL) {
 			pStaDs->mlmStaContext.disassocReason =
 				eSIR_MAC_UNSPEC_FAILURE_REASON;
@@ -198,12 +198,12 @@
 				eLIM_JOIN_FAILURE;
 			pStaDs->mlmStaContext.resultCode = resultCode;
 			pStaDs->mlmStaContext.protStatusCode = protStatusCode;
-			lim_cleanup_rx_path(mac, pStaDs, psessionEntry);
+			lim_cleanup_rx_path(mac, pStaDs, pe_session);
 			/* Cleanup if add bss failed */
-			if (psessionEntry->add_bss_failed) {
+			if (pe_session->add_bss_failed) {
 				dph_delete_hash_entry(mac,
 					 pStaDs->staAddr, pStaDs->assocId,
-					 &psessionEntry->dph.dphHashTable);
+					 &pe_session->dph.dphHashTable);
 				goto error;
 			}
 			return;
@@ -212,13 +212,13 @@
 error:
 	/* Delete the session if REASSOC failure occurred. */
 	if (resultCode != eSIR_SME_SUCCESS) {
-		if (NULL != psessionEntry) {
-			pe_delete_session(mac, psessionEntry);
-			psessionEntry = NULL;
+		if (NULL != pe_session) {
+			pe_delete_session(mac, pe_session);
+			pe_session = NULL;
 		}
 	}
 	lim_send_sme_join_reassoc_rsp(mac, eWNI_SME_REASSOC_RSP, resultCode,
-		protStatusCode, psessionEntry, smesessionId, smetransactionId);
+		protStatusCode, pe_session, smesessionId, smetransactionId);
 }
 
 /**
@@ -339,7 +339,7 @@
  * lim_process_sta_mlm_add_bss_rsp_ft() - Handle the ADD BSS response
  * @mac: Global MAC context
  * @limMsgQ: ADD BSS Parameters
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * Function to handle WMA_ADD_BSS_RSP, in FT reassoc state.
  * Send ReAssociation Request.
@@ -347,7 +347,7 @@
  *Return: None
  */
 void lim_process_sta_mlm_add_bss_rsp_ft(tpAniSirGlobal mac,
-		struct scheduler_msg *limMsgQ, struct pe_session *psessionEntry)
+		struct scheduler_msg *limMsgQ, struct pe_session *pe_session)
 {
 	tLimMlmReassocCnf mlmReassocCnf; /* keep sme */
 	tpDphHashNode pStaDs = NULL;
@@ -363,13 +363,13 @@
 		goto end;
 	}
 	if (eLIM_MLM_WT_ADD_BSS_RSP_FT_REASSOC_STATE !=
-	    psessionEntry->limMlmState) {
+	    pe_session->limMlmState) {
 		goto end;
 	}
 
 	pStaDs = dph_add_hash_entry(mac, pAddBssParams->bssId,
 					DPH_STA_HASH_INDEX_PEER,
-					&psessionEntry->dph.dphHashTable);
+					&pe_session->dph.dphHashTable);
 	if (pStaDs == NULL) {
 		/* Could not add hash table entry */
 		pe_err("could not add hash entry at DPH for");
@@ -380,14 +380,14 @@
 	/* Prepare and send Reassociation request frame */
 	/* start reassoc timer. */
 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
-	if (psessionEntry->bRoamSynchInProgress != true) {
+	if (pe_session->bRoamSynchInProgress != true) {
 #endif
 		mac->lim.limTimers.gLimReassocFailureTimer.sessionId =
-			psessionEntry->peSessionId;
+			pe_session->peSessionId;
 		/* / Start reassociation failure timer */
 		MTRACE(mac_trace
 			(mac, TRACE_CODE_TIMER_ACTIVATE,
-			 psessionEntry->peSessionId, eLIM_REASSOC_FAIL_TIMER));
+			 pe_session->peSessionId, eLIM_REASSOC_FAIL_TIMER));
 		if (tx_timer_activate
 			(&mac->lim.limTimers.gLimReassocFailureTimer)
 			!= TX_SUCCESS) {
@@ -402,37 +402,37 @@
 				eSIR_MAC_UNSPEC_FAILURE_STATUS;
 			goto end;
 		}
-		mac->lim.pSessionEntry = psessionEntry;
-		if (NULL == mac->lim.pSessionEntry->pLimMlmReassocRetryReq) {
+		mac->lim.pe_session = pe_session;
+		if (NULL == mac->lim.pe_session->pLimMlmReassocRetryReq) {
 			/* Take a copy of reassoc request for retrying */
-			mac->lim.pSessionEntry->pLimMlmReassocRetryReq =
+			mac->lim.pe_session->pLimMlmReassocRetryReq =
 				qdf_mem_malloc(sizeof(tLimMlmReassocReq));
-			if (!mac->lim.pSessionEntry->pLimMlmReassocRetryReq)
+			if (!mac->lim.pe_session->pLimMlmReassocRetryReq)
 				goto end;
-			qdf_mem_copy(mac->lim.pSessionEntry->
+			qdf_mem_copy(mac->lim.pe_session->
 					pLimMlmReassocRetryReq,
-					psessionEntry->pLimMlmReassocReq,
+					pe_session->pLimMlmReassocReq,
 					sizeof(tLimMlmReassocReq));
 		}
 		mac->lim.reAssocRetryAttempt = 0;
 		lim_send_reassoc_req_with_ft_ies_mgmt_frame(mac,
-				psessionEntry->
+				pe_session->
 				pLimMlmReassocReq,
-				psessionEntry);
+				pe_session);
 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
 	} else {
 		pe_debug("LFR3:Do not activate timer and dont send the reassoc");
 	}
 #endif
-	psessionEntry->limPrevMlmState = psessionEntry->limMlmState;
-	psessionEntry->limMlmState = eLIM_MLM_WT_FT_REASSOC_RSP_STATE;
+	pe_session->limPrevMlmState = pe_session->limMlmState;
+	pe_session->limMlmState = eLIM_MLM_WT_FT_REASSOC_RSP_STATE;
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId,
+		       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
 		       eLIM_MLM_WT_FT_REASSOC_RSP_STATE));
 	pe_debug("Set the mlm state: %d session: %d",
-		       psessionEntry->limMlmState, psessionEntry->peSessionId);
+		       pe_session->limMlmState, pe_session->peSessionId);
 
-	psessionEntry->bssIdx = (uint8_t) pAddBssParams->bssIdx;
+	pe_session->bssIdx = (uint8_t) pAddBssParams->bssIdx;
 
 	/* Success, handle below */
 	pStaDs->bssId = pAddBssParams->bssIdx;
@@ -440,7 +440,7 @@
 	pStaDs->staIndex = pAddBssParams->staContext.staIdx;
 
 	rrm_cache_mgmt_tx_power(mac, pAddBssParams->txMgmtPower,
-			psessionEntry);
+			pe_session);
 
 	pAddStaParams = qdf_mem_malloc(sizeof(tAddStaParams));
 	if (!pAddStaParams)
@@ -448,80 +448,80 @@
 
 	/* / Add STA context at MAC HW (BMU, RHP & TFP) */
 	qdf_mem_copy((uint8_t *) pAddStaParams->staMac,
-		     (uint8_t *) psessionEntry->selfMacAddr,
+		     (uint8_t *) pe_session->selfMacAddr,
 		     sizeof(tSirMacAddr));
 
 	qdf_mem_copy((uint8_t *) pAddStaParams->bssId,
-		     psessionEntry->bssId, sizeof(tSirMacAddr));
+		     pe_session->bssId, sizeof(tSirMacAddr));
 
 	pAddStaParams->staType = STA_ENTRY_SELF;
 	pAddStaParams->status = QDF_STATUS_SUCCESS;
 	pAddStaParams->respReqd = 1;
 
 	/* Update  PE session ID */
-	pAddStaParams->sessionId = psessionEntry->peSessionId;
-	pAddStaParams->smesessionId = psessionEntry->smeSessionId;
+	pAddStaParams->sessionId = pe_session->peSessionId;
+	pAddStaParams->smesessionId = pe_session->smeSessionId;
 
 	/* This will indicate HAL to "allocate" a new STA index */
 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
-	if (psessionEntry->bRoamSynchInProgress != true)
+	if (pe_session->bRoamSynchInProgress != true)
 #endif
 		pAddStaParams->staIdx = STA_INVALID_IDX;
 	pAddStaParams->updateSta = false;
 
 	pAddStaParams->shortPreambleSupported =
-		(uint8_t) psessionEntry->beaconParams.fShortPreamble;
+		(uint8_t) pe_session->beaconParams.fShortPreamble;
 	lim_populate_peer_rate_set(mac, &pAddStaParams->supportedRates, NULL,
-				   false, psessionEntry, NULL, NULL);
+				   false, pe_session, NULL, NULL);
 
-	if (psessionEntry->htCapability) {
-		pAddStaParams->htCapable = psessionEntry->htCapability;
-		pAddStaParams->vhtCapable = psessionEntry->vhtCapability;
-		pAddStaParams->ch_width = psessionEntry->ch_width;
+	if (pe_session->htCapability) {
+		pAddStaParams->htCapable = pe_session->htCapability;
+		pAddStaParams->vhtCapable = pe_session->vhtCapability;
+		pAddStaParams->ch_width = pe_session->ch_width;
 		pAddStaParams->greenFieldCapable =
 			lim_get_ht_capability(mac, eHT_GREENFIELD,
-					      psessionEntry);
+					      pe_session);
 		pAddStaParams->mimoPS =
 			lim_get_ht_capability(mac, eHT_MIMO_POWER_SAVE,
-					      psessionEntry);
+					      pe_session);
 		pAddStaParams->rifsMode =
 			lim_get_ht_capability(mac, eHT_RIFS_MODE,
-					psessionEntry);
+					pe_session);
 		pAddStaParams->lsigTxopProtection =
 			lim_get_ht_capability(mac, eHT_LSIG_TXOP_PROTECTION,
-					      psessionEntry);
+					      pe_session);
 		pAddStaParams->maxAmpduDensity =
 			lim_get_ht_capability(mac, eHT_MPDU_DENSITY,
-					psessionEntry);
+					pe_session);
 		pAddStaParams->maxAmpduSize =
 			lim_get_ht_capability(mac, eHT_MAX_RX_AMPDU_FACTOR,
-					      psessionEntry);
+					      pe_session);
 		pAddStaParams->maxAmsduSize =
 			lim_get_ht_capability(mac, eHT_MAX_AMSDU_LENGTH,
-					      psessionEntry);
+					      pe_session);
 		pAddStaParams->max_amsdu_num =
 			lim_get_ht_capability(mac, eHT_MAX_AMSDU_NUM,
-					      psessionEntry);
+					      pe_session);
 		pAddStaParams->fDsssCckMode40Mhz =
 			lim_get_ht_capability(mac, eHT_DSSS_CCK_MODE_40MHZ,
-					      psessionEntry);
+					      pe_session);
 		pAddStaParams->fShortGI20Mhz =
 			lim_get_ht_capability(mac, eHT_SHORT_GI_20MHZ,
-					psessionEntry);
+					pe_session);
 		pAddStaParams->fShortGI40Mhz =
 			lim_get_ht_capability(mac, eHT_SHORT_GI_40MHZ,
-					psessionEntry);
+					pe_session);
 	}
 
 	listenInterval = mac->mlme_cfg->sap_cfg.listen_interval;
 	pAddStaParams->listenInterval = (uint16_t) listenInterval;
 
 	wlan_cfg_get_int(mac, WNI_CFG_DOT11_MODE, &selfStaDot11Mode);
-	pAddStaParams->encryptType = psessionEntry->encryptType;
-	pAddStaParams->maxTxPower = psessionEntry->maxTxPower;
+	pAddStaParams->encryptType = pe_session->encryptType;
+	pAddStaParams->maxTxPower = pe_session->maxTxPower;
 
 	/* Lets save this for when we receive the Reassoc Rsp */
-	psessionEntry->ftPEContext.pAddStaReq = pAddStaParams;
+	pe_session->ftPEContext.pAddStaReq = pAddStaParams;
 
 	if (pAddBssParams != NULL) {
 		qdf_mem_free(pAddBssParams);
@@ -529,20 +529,20 @@
 		limMsgQ->bodyptr = NULL;
 	}
 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
-	if (psessionEntry->bRoamSynchInProgress) {
+	if (pe_session->bRoamSynchInProgress) {
 		pe_debug("LFR3:Prep and save AddStaReq for post-assoc-rsp");
 		lim_process_assoc_rsp_frame(mac, mac->roam.pReassocResp,
-					    LIM_REASSOC, psessionEntry);
+					    LIM_REASSOC, pe_session);
 	}
 #endif
 	return;
 
 end:
 	/* Free up buffer allocated for reassocReq */
-	if (psessionEntry != NULL)
-		if (psessionEntry->pLimMlmReassocReq != NULL) {
-			qdf_mem_free(psessionEntry->pLimMlmReassocReq);
-			psessionEntry->pLimMlmReassocReq = NULL;
+	if (pe_session != NULL)
+		if (pe_session->pLimMlmReassocReq != NULL) {
+			qdf_mem_free(pe_session->pLimMlmReassocReq);
+			pe_session->pLimMlmReassocReq = NULL;
 		}
 
 	if (pAddBssParams != NULL) {
@@ -554,8 +554,8 @@
 	mlmReassocCnf.resultCode = eSIR_SME_FT_REASSOC_FAILURE;
 	mlmReassocCnf.protStatusCode = eSIR_MAC_UNSPEC_FAILURE_STATUS;
 	/* Update PE session Id */
-	if (psessionEntry != NULL)
-		mlmReassocCnf.sessionId = psessionEntry->peSessionId;
+	if (pe_session != NULL)
+		mlmReassocCnf.sessionId = pe_session->peSessionId;
 	else
 		mlmReassocCnf.sessionId = 0;
 
@@ -595,7 +595,7 @@
 
 	/* Nothing to be done if the session is not in STA mode */
 	if (!LIM_IS_STA_ROLE(session)) {
-		pe_err("psessionEntry is not in STA mode");
+		pe_err("pe_session is not in STA mode");
 		qdf_mem_free(reassoc_req);
 		return;
 	}
diff --git a/core/mac/src/pe/lim/lim_process_mlm_req_messages.c b/core/mac/src/pe/lim/lim_process_mlm_req_messages.c
index a9b9d41..5be5af7 100644
--- a/core/mac/src/pe/lim/lim_process_mlm_req_messages.c
+++ b/core/mac/src/pe/lim/lim_process_mlm_req_messages.c
@@ -2325,7 +2325,7 @@
 
 void lim_process_auth_failure_timeout(tpAniSirGlobal mac_ctx)
 {
-	/* fetch the sessionEntry based on the sessionId */
+	/* fetch the pe_session based on the sessionId */
 	struct pe_session *session;
 	uint32_t val;
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM
@@ -2457,7 +2457,7 @@
 #endif
 	/*
 	 * to fetch the lim/mlm state based on the session_id, use the
-	 * below sessionEntry
+	 * below pe_session
 	 */
 	uint8_t session_id;
 
diff --git a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c
index 15f78f6..4a0be96 100644
--- a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c
+++ b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c
@@ -152,7 +152,7 @@
  */
 void lim_process_mlm_start_cnf(tpAniSirGlobal mac, uint32_t *pMsgBuf)
 {
-	struct pe_session *psessionEntry = NULL;
+	struct pe_session *pe_session = NULL;
 	tLimMlmStartCnf *pLimMlmStartCnf;
 	uint8_t smesessionId;
 	uint16_t smetransactionId;
@@ -164,22 +164,22 @@
 		return;
 	}
 	pLimMlmStartCnf = (tLimMlmStartCnf *) pMsgBuf;
-	psessionEntry = pe_find_session_by_session_id(mac,
+	pe_session = pe_find_session_by_session_id(mac,
 				pLimMlmStartCnf->sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session does Not exist with given sessionId");
 		return;
 	}
-	smesessionId = psessionEntry->smeSessionId;
-	smetransactionId = psessionEntry->transactionId;
+	smesessionId = pe_session->smeSessionId;
+	smetransactionId = pe_session->transactionId;
 
-	if (psessionEntry->limSmeState != eLIM_SME_WT_START_BSS_STATE) {
+	if (pe_session->limSmeState != eLIM_SME_WT_START_BSS_STATE) {
 		/*
 		 * Should not have received Start confirm from MLM
 		 * in other states. Log error.
 		 */
 		pe_err("received unexpected MLM_START_CNF in state %X",
-				psessionEntry->limSmeState);
+				pe_session->limSmeState);
 		return;
 	}
 	if (((tLimMlmStartCnf *) pMsgBuf)->resultCode == eSIR_SME_SUCCESS) {
@@ -189,47 +189,47 @@
 		 * module starts writing Beacon frames into TFP's
 		 * Beacon file register.
 		 */
-		psessionEntry->limSmeState = eLIM_SME_NORMAL_STATE;
+		pe_session->limSmeState = eLIM_SME_NORMAL_STATE;
 		MTRACE(mac_trace
-			       (mac, TRACE_CODE_SME_STATE, psessionEntry->peSessionId,
-			       psessionEntry->limSmeState));
-		if (psessionEntry->bssType == eSIR_INFRA_AP_MODE)
+			       (mac, TRACE_CODE_SME_STATE, pe_session->peSessionId,
+			       pe_session->limSmeState));
+		if (pe_session->bssType == eSIR_INFRA_AP_MODE)
 			pe_debug("*** Started BSS in INFRA AP SIDE***");
-		else if (psessionEntry->bssType == eSIR_NDI_MODE)
+		else if (pe_session->bssType == eSIR_NDI_MODE)
 			pe_debug("*** Started BSS in NDI mode ***");
 		else
 			pe_debug("*** Started BSS ***");
 	} else {
 		/* Start BSS is a failure */
-		pe_delete_session(mac, psessionEntry);
-		psessionEntry = NULL;
+		pe_delete_session(mac, pe_session);
+		pe_session = NULL;
 		pe_err("Start BSS Failed");
 	}
 	/* Send response to Host */
 	lim_send_sme_start_bss_rsp(mac, eWNI_SME_START_BSS_RSP,
 				((tLimMlmStartCnf *)pMsgBuf)->resultCode,
-				psessionEntry, smesessionId, smetransactionId);
-	if ((psessionEntry != NULL) &&
+				pe_session, smesessionId, smetransactionId);
+	if ((pe_session != NULL) &&
 		(((tLimMlmStartCnf *) pMsgBuf)->resultCode ==
 						eSIR_SME_SUCCESS)) {
-		channelId = psessionEntry->pLimStartBssReq->channelId;
-		lim_ndi_mlme_vdev_up_transition(psessionEntry);
+		channelId = pe_session->pLimStartBssReq->channelId;
+		lim_ndi_mlme_vdev_up_transition(pe_session);
 
 		/* We should start beacon transmission only if the channel
 		 * on which we are operating is non-DFS until the channel
 		 * availability check is done. The PE will receive an explicit
 		 * request from upper layers to start the beacon transmission
 		 */
-		if (!(LIM_IS_IBSS_ROLE(psessionEntry) ||
-			(LIM_IS_AP_ROLE(psessionEntry))))
+		if (!(LIM_IS_IBSS_ROLE(pe_session) ||
+			(LIM_IS_AP_ROLE(pe_session))))
 				return;
-		if (psessionEntry->ch_width == CH_WIDTH_160MHZ) {
+		if (pe_session->ch_width == CH_WIDTH_160MHZ) {
 			send_bcon_ind = false;
-		} else if (psessionEntry->ch_width == CH_WIDTH_80P80MHZ) {
+		} else if (pe_session->ch_width == CH_WIDTH_80P80MHZ) {
 			if ((wlan_reg_get_channel_state(mac->pdev, channelId)
 						!= CHANNEL_STATE_DFS) &&
 			    (wlan_reg_get_channel_state(mac->pdev,
-					psessionEntry->ch_center_freq_seg1 -
+					pe_session->ch_center_freq_seg1 -
 					SIR_80MHZ_START_CENTER_CH_DIFF) !=
 						CHANNEL_STATE_DFS))
 				send_bcon_ind = true;
@@ -242,11 +242,11 @@
 			/* Configure beacon and send beacons to HAL */
 			QDF_TRACE(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
 					FL("Start Beacon with ssid %s Ch %d"),
-					psessionEntry->ssId.ssId,
-					psessionEntry->currentOperChannel);
-			lim_send_beacon(mac, psessionEntry);
-			lim_enable_obss_detection_config(mac, psessionEntry);
-			lim_send_obss_color_collision_cfg(mac, psessionEntry,
+					pe_session->ssId.ssId,
+					pe_session->currentOperChannel);
+			lim_send_beacon(mac, pe_session);
+			lim_enable_obss_detection_config(mac, pe_session);
+			lim_send_obss_color_collision_cfg(mac, pe_session,
 					OBSS_COLOR_COLLISION_DETECTION);
 		}
 	}
@@ -315,7 +315,7 @@
  * session_entry:  Pointer to session etnry
  *
  * This function is sends ASSOC request MLM message to MLM State machine.
- * ASSOC request packet would be by picking parameters from psessionEntry
+ * ASSOC request packet would be by picking parameters from pe_session
  * automatically based on the current state of MLM state machine.
  * ASSUMPTIONS:
  * this function is called in middle of connection state machine and is
@@ -431,13 +431,13 @@
 {
 	struct comeback_timer_info *info = context;
 	tpAniSirGlobal mac_ctx = info->mac;
-	struct pe_session *psessionEntry = &mac_ctx->lim.gpSession[info->session_id];
+	struct pe_session *pe_session = &mac_ctx->lim.gpSession[info->session_id];
 
 	pe_err("comeback later timer expired. sending MLM ASSOC req");
 	/* set MLM state such that ASSOC REQ packet will be sent out */
-	psessionEntry->limPrevMlmState = info->lim_prev_mlm_state;
-	psessionEntry->limMlmState = info->lim_mlm_state;
-	lim_send_mlm_assoc_req(mac_ctx, psessionEntry);
+	pe_session->limPrevMlmState = info->lim_prev_mlm_state;
+	pe_session->limMlmState = info->lim_mlm_state;
+	lim_send_mlm_assoc_req(mac_ctx, pe_session);
 }
 #endif /* WLAN_FEATURE_11W */
 
@@ -784,16 +784,16 @@
 	struct scheduler_msg msg = {0};
 	tSirSmeAssocInd *pSirSmeAssocInd;
 	tpDphHashNode pStaDs = 0;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 
 	if (pMsgBuf == NULL) {
 		pe_err("Buffer is Pointing to NULL");
 		return;
 	}
-	psessionEntry = pe_find_session_by_session_id(mac,
+	pe_session = pe_find_session_by_session_id(mac,
 				((tpLimMlmAssocInd) pMsgBuf)->
 				sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session Does not exist for given sessionId");
 		return;
 	}
@@ -808,13 +808,13 @@
 	pSirSmeAssocInd->messageType = eWNI_SME_ASSOC_IND;
 	lim_fill_assoc_ind_params(mac, (tpLimMlmAssocInd) pMsgBuf,
 				  pSirSmeAssocInd,
-				  psessionEntry);
+				  pe_session);
 	msg.type = eWNI_SME_ASSOC_IND;
 	msg.bodyptr = pSirSmeAssocInd;
 	msg.bodyval = 0;
 	pStaDs = dph_get_hash_entry(mac,
 				    ((tpLimMlmAssocInd) pMsgBuf)->aid,
-				    &psessionEntry->dph.dphHashTable);
+				    &pe_session->dph.dphHashTable);
 	if (!pStaDs) {
 		pe_err("MLM AssocInd: Station context no longer valid (aid %d)",
 			((tpLimMlmAssocInd) pMsgBuf)->aid);
@@ -826,9 +826,9 @@
 	pSirSmeAssocInd->reassocReq = pStaDs->mlmStaContext.subType;
 	pSirSmeAssocInd->timingMeasCap = pStaDs->timingMeasCap;
 	MTRACE(mac_trace(mac, TRACE_CODE_TX_SME_MSG,
-			 psessionEntry->peSessionId, msg.type));
+			 pe_session->peSessionId, msg.type));
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
-	lim_diag_event_report(mac, WLAN_PE_DIAG_ASSOC_IND_EVENT, psessionEntry, 0,
+	lim_diag_event_report(mac, WLAN_PE_DIAG_ASSOC_IND_EVENT, pe_session, 0,
 			      0);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 	pe_debug("Create CNF_WAIT_TIMER after received LIM_MLM_ASSOC_IND");
@@ -837,7 +837,7 @@
 	**/
 	lim_activate_cnf_timer(mac,
 			       (uint16_t) ((tpLimMlmAssocInd) pMsgBuf)->aid,
-			       psessionEntry);
+			       pe_session);
 
 	mac->lim.sme_msg_callback(mac, &msg);
 } /*** end lim_process_mlm_assoc_ind() ***/
@@ -863,23 +863,23 @@
 void lim_process_mlm_disassoc_ind(tpAniSirGlobal mac, uint32_t *pMsgBuf)
 {
 	tLimMlmDisassocInd *pMlmDisassocInd;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 
 	pMlmDisassocInd = (tLimMlmDisassocInd *) pMsgBuf;
-	psessionEntry = pe_find_session_by_session_id(mac,
+	pe_session = pe_find_session_by_session_id(mac,
 				pMlmDisassocInd->sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session Does not exist for given sessionID");
 		return;
 	}
-	switch (GET_LIM_SYSTEM_ROLE(psessionEntry)) {
+	switch (GET_LIM_SYSTEM_ROLE(pe_session)) {
 	case eLIM_STA_IN_IBSS_ROLE:
 		break;
 	case eLIM_STA_ROLE:
-		psessionEntry->limSmeState = eLIM_SME_WT_DISASSOC_STATE;
+		pe_session->limSmeState = eLIM_SME_WT_DISASSOC_STATE;
 		MTRACE(mac_trace
-			       (mac, TRACE_CODE_SME_STATE, psessionEntry->peSessionId,
-			       psessionEntry->limSmeState));
+			       (mac, TRACE_CODE_SME_STATE, pe_session->peSessionId,
+			       pe_session->limSmeState));
 		break;
 	default:        /* eLIM_AP_ROLE */
 		pe_debug("*** Peer staId=%d Disassociated ***",
@@ -887,7 +887,7 @@
 		/* Send SME_DISASOC_IND after Polaris cleanup */
 		/* (after receiving LIM_MLM_PURGE_STA_IND) */
 		break;
-	} /* end switch (GET_LIM_SYSTEM_ROLE(psessionEntry)) */
+	} /* end switch (GET_LIM_SYSTEM_ROLE(pe_session)) */
 } /*** end lim_process_mlm_disassoc_ind() ***/
 
 /**
@@ -1033,16 +1033,16 @@
 	uint16_t aid;
 	tSirResultCodes resultCode;
 	tLimMlmDeauthCnf *pMlmDeauthCnf;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 
 	if (pMsgBuf == NULL) {
 		pe_err("Buffer is Pointing to NULL");
 		return;
 	}
 	pMlmDeauthCnf = (tLimMlmDeauthCnf *) pMsgBuf;
-	psessionEntry = pe_find_session_by_session_id(mac,
+	pe_session = pe_find_session_by_session_id(mac,
 				pMlmDeauthCnf->sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("session does not exist for given session Id");
 		return;
 	}
@@ -1052,11 +1052,11 @@
 		      eLIM_LINK_MONITORING_DEAUTH) ?
 		     eSIR_SME_LOST_LINK_WITH_PEER_RESULT_CODE :
 		     pMlmDeauthCnf->resultCode;
-	aid = LIM_IS_AP_ROLE(psessionEntry) ? pMlmDeauthCnf->aid : 1;
-	if (LIM_IS_STA_ROLE(psessionEntry)) {
+	aid = LIM_IS_AP_ROLE(pe_session) ? pMlmDeauthCnf->aid : 1;
+	if (LIM_IS_STA_ROLE(pe_session)) {
 		/* Deauth Confirm from MLM */
-		if ((psessionEntry->limSmeState != eLIM_SME_WT_DISASSOC_STATE)
-			&& psessionEntry->limSmeState !=
+		if ((pe_session->limSmeState != eLIM_SME_WT_DISASSOC_STATE)
+			&& pe_session->limSmeState !=
 					eLIM_SME_WT_DEAUTH_STATE) {
 			/**
 			 * Should not have received Deauth confirm
@@ -1064,18 +1064,18 @@
 			 * Log error
 			 */
 			pe_err("received unexpected MLM_DEAUTH_CNF in state %X",
-				       psessionEntry->limSmeState);
+				       pe_session->limSmeState);
 			return;
 		}
 		if (pMlmDeauthCnf->resultCode == eSIR_SME_SUCCESS) {
-			psessionEntry->limSmeState = eLIM_SME_IDLE_STATE;
+			pe_session->limSmeState = eLIM_SME_IDLE_STATE;
 			pe_debug("*** Deauthenticated with BSS ***");
 		} else
-			psessionEntry->limSmeState =
-				psessionEntry->limPrevSmeState;
+			pe_session->limSmeState =
+				pe_session->limPrevSmeState;
 		MTRACE(mac_trace
-			       (mac, TRACE_CODE_SME_STATE, psessionEntry->peSessionId,
-			       psessionEntry->limSmeState));
+			       (mac, TRACE_CODE_SME_STATE, pe_session->peSessionId,
+			       pe_session->limSmeState));
 
 		if (mac->lim.gLimRspReqd)
 			mac->lim.gLimRspReqd = false;
@@ -1084,8 +1084,8 @@
 	lim_send_sme_deauth_ntf(mac, pMlmDeauthCnf->peer_macaddr.bytes,
 				resultCode,
 				pMlmDeauthCnf->deauthTrigger,
-				aid, psessionEntry->smeSessionId,
-				psessionEntry->transactionId);
+				aid, pe_session->smeSessionId,
+				pe_session->transactionId);
 } /*** end lim_process_mlm_deauth_cnf() ***/
 
 /**
@@ -1110,30 +1110,30 @@
 {
 	tSirResultCodes resultCode;
 	tpLimMlmPurgeStaInd pMlmPurgeStaInd;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 
 	if (pMsgBuf == NULL) {
 		pe_err("Buffer is Pointing to NULL");
 		return;
 	}
 	pMlmPurgeStaInd = (tpLimMlmPurgeStaInd) pMsgBuf;
-	psessionEntry = pe_find_session_by_session_id(mac,
+	pe_session = pe_find_session_by_session_id(mac,
 				pMlmPurgeStaInd->sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("session does not exist for given bssId");
 		return;
 	}
 	/* Purge STA indication from MLM */
 	resultCode = (tSirResultCodes) pMlmPurgeStaInd->reasonCode;
-	switch (GET_LIM_SYSTEM_ROLE(psessionEntry)) {
+	switch (GET_LIM_SYSTEM_ROLE(pe_session)) {
 	case eLIM_STA_IN_IBSS_ROLE:
 		break;
 	case eLIM_STA_ROLE:
 	default:        /* eLIM_AP_ROLE */
-		if (LIM_IS_STA_ROLE(psessionEntry) &&
-		   (psessionEntry->limSmeState !=
+		if (LIM_IS_STA_ROLE(pe_session) &&
+		   (pe_session->limSmeState !=
 			eLIM_SME_WT_DISASSOC_STATE) &&
-		   (psessionEntry->limSmeState != eLIM_SME_WT_DEAUTH_STATE)) {
+		   (pe_session->limSmeState != eLIM_SME_WT_DEAUTH_STATE)) {
 			/**
 			 * Should not have received
 			 * Purge STA indication
@@ -1141,17 +1141,17 @@
 			 * Log error
 			 */
 			pe_err("received unexpected MLM_PURGE_STA_IND in state %X",
-				       psessionEntry->limSmeState);
+				       pe_session->limSmeState);
 			break;
 		}
 		pe_debug("*** Cleanup completed for staId=%d ***",
 			       pMlmPurgeStaInd->aid);
-		if (LIM_IS_STA_ROLE(psessionEntry)) {
-			psessionEntry->limSmeState = eLIM_SME_IDLE_STATE;
+		if (LIM_IS_STA_ROLE(pe_session)) {
+			pe_session->limSmeState = eLIM_SME_IDLE_STATE;
 			MTRACE(mac_trace
 				       (mac, TRACE_CODE_SME_STATE,
-				       psessionEntry->peSessionId,
-				       psessionEntry->limSmeState));
+				       pe_session->peSessionId,
+				       pe_session->limSmeState));
 
 		}
 		if (pMlmPurgeStaInd->purgeTrigger == eLIM_PEER_ENTITY_DEAUTH) {
@@ -1160,18 +1160,18 @@
 						resultCode,
 						pMlmPurgeStaInd->purgeTrigger,
 						pMlmPurgeStaInd->aid,
-						psessionEntry->smeSessionId,
-						psessionEntry->transactionId);
+						pe_session->smeSessionId,
+						pe_session->transactionId);
 		} else
 			lim_send_sme_disassoc_ntf(mac,
 						  pMlmPurgeStaInd->peerMacAddr,
 						  resultCode,
 						  pMlmPurgeStaInd->purgeTrigger,
 						  pMlmPurgeStaInd->aid,
-						  psessionEntry->smeSessionId,
-						  psessionEntry->transactionId,
-						  psessionEntry);
-	} /* end switch (GET_LIM_SYSTEM_ROLE(psessionEntry)) */
+						  pe_session->smeSessionId,
+						  pe_session->transactionId,
+						  pe_session);
+	} /* end switch (GET_LIM_SYSTEM_ROLE(pe_session)) */
 } /*** end lim_process_mlm_purge_sta_ind() ***/
 
 /**
@@ -1196,7 +1196,7 @@
 {
 	/* Prepare and send SME_SETCONTEXT_RSP message */
 	tLimMlmSetKeysCnf *pMlmSetKeysCnf;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint16_t aid;
 	tpDphHashNode sta_ds;
 
@@ -1205,13 +1205,13 @@
 		return;
 	}
 	pMlmSetKeysCnf = (tLimMlmSetKeysCnf *) pMsgBuf;
-	psessionEntry = pe_find_session_by_session_id(mac,
+	pe_session = pe_find_session_by_session_id(mac,
 					   pMlmSetKeysCnf->sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("session does not exist for given sessionId");
 		return;
 	}
-	psessionEntry->is_key_installed = 0;
+	pe_session->is_key_installed = 0;
 	pe_debug("Received MLM_SETKEYS_CNF with resultCode = %d",
 		pMlmSetKeysCnf->resultCode);
 	/* if the status is success keys are installed in the
@@ -1219,23 +1219,23 @@
 	*/
 	if (eSIR_SME_SUCCESS == pMlmSetKeysCnf->resultCode) {
 		if (pMlmSetKeysCnf->key_len_nonzero)
-			psessionEntry->is_key_installed = 1;
-		if (LIM_IS_AP_ROLE(psessionEntry)) {
+			pe_session->is_key_installed = 1;
+		if (LIM_IS_AP_ROLE(pe_session)) {
 			sta_ds = dph_lookup_hash_entry(mac,
 				pMlmSetKeysCnf->peer_macaddr.bytes,
-				&aid, &psessionEntry->dph.dphHashTable);
+				&aid, &pe_session->dph.dphHashTable);
 			if (sta_ds != NULL && pMlmSetKeysCnf->key_len_nonzero)
 				sta_ds->is_key_installed = 1;
 		}
 	}
-	pe_debug("is_key_installed = %d", psessionEntry->is_key_installed);
+	pe_debug("is_key_installed = %d", pe_session->is_key_installed);
 
 	lim_send_sme_set_context_rsp(mac,
 				     pMlmSetKeysCnf->peer_macaddr,
 				     1,
 				     (tSirResultCodes) pMlmSetKeysCnf->resultCode,
-				     psessionEntry, psessionEntry->smeSessionId,
-				     psessionEntry->transactionId);
+				     pe_session, pe_session->smeSessionId,
+				     pe_session->transactionId);
 } /*** end lim_process_mlm_set_keys_cnf() ***/
 
 /**
@@ -1420,7 +1420,7 @@
 	join_params *param = NULL;
 
 	if (session_entry == NULL) {
-		pe_err("psessionEntry is NULL");
+		pe_err("pe_session is NULL");
 		return;
 	}
 	sme_session_id = session_entry->smeSessionId;
@@ -1513,17 +1513,17 @@
  */
 void lim_process_mlm_add_sta_rsp(tpAniSirGlobal mac,
 				 struct scheduler_msg *limMsgQ,
-				 struct pe_session *psessionEntry)
+				 struct pe_session *pe_session)
 {
 	/* we need to process the deferred message since the initiating req. there might be nested request. */
 	/* in the case of nested request the new request initiated from the response will take care of resetting */
 	/* the deffered flag. */
 	SET_LIM_PROCESS_DEFD_MESGS(mac, true);
-	if (LIM_IS_AP_ROLE(psessionEntry)) {
-		lim_process_ap_mlm_add_sta_rsp(mac, limMsgQ, psessionEntry);
+	if (LIM_IS_AP_ROLE(pe_session)) {
+		lim_process_ap_mlm_add_sta_rsp(mac, limMsgQ, pe_session);
 		return;
 	}
-	lim_process_sta_mlm_add_sta_rsp(mac, limMsgQ, psessionEntry);
+	lim_process_sta_mlm_add_sta_rsp(mac, limMsgQ, pe_session);
 }
 
 /**
@@ -1687,7 +1687,7 @@
 
 void lim_process_mlm_del_bss_rsp(tpAniSirGlobal mac,
 				 struct scheduler_msg *limMsgQ,
-				 struct pe_session *psessionEntry)
+				 struct pe_session *pe_session)
 {
 	/* we need to process the deferred message since the initiating req. there might be nested request. */
 	/* in the case of nested request the new request initiated from the response will take care of resetting */
@@ -1695,17 +1695,17 @@
 	SET_LIM_PROCESS_DEFD_MESGS(mac, true);
 	mac->sys.gSysFrameCount[SIR_MAC_MGMT_FRAME][SIR_MAC_MGMT_DEAUTH] = 0;
 
-	if (LIM_IS_AP_ROLE(psessionEntry) &&
-	    (psessionEntry->statypeForBss == STA_ENTRY_SELF)) {
-		lim_process_ap_mlm_del_bss_rsp(mac, limMsgQ, psessionEntry);
+	if (LIM_IS_AP_ROLE(pe_session) &&
+	    (pe_session->statypeForBss == STA_ENTRY_SELF)) {
+		lim_process_ap_mlm_del_bss_rsp(mac, limMsgQ, pe_session);
 		return;
 	}
-	lim_process_sta_mlm_del_bss_rsp(mac, limMsgQ, psessionEntry);
+	lim_process_sta_mlm_del_bss_rsp(mac, limMsgQ, pe_session);
 
 #ifdef WLAN_FEATURE_11W
-	if (psessionEntry->limRmfEnabled) {
+	if (pe_session->limRmfEnabled) {
 		if (QDF_STATUS_SUCCESS !=
-		    lim_send_exclude_unencrypt_ind(mac, true, psessionEntry)) {
+		    lim_send_exclude_unencrypt_ind(mac, true, pe_session)) {
 			pe_err("Could not send down Exclude Unencrypted Indication!");
 		}
 	}
@@ -1714,12 +1714,12 @@
 
 void lim_process_sta_mlm_del_bss_rsp(tpAniSirGlobal mac,
 				     struct scheduler_msg *limMsgQ,
-				     struct pe_session *psessionEntry)
+				     struct pe_session *pe_session)
 {
 	tpDeleteBssParams pDelBssParams = (tpDeleteBssParams) limMsgQ->bodyptr;
 	tpDphHashNode pStaDs =
 		dph_get_hash_entry(mac, DPH_STA_HASH_INDEX_PEER,
-				   &psessionEntry->dph.dphHashTable);
+				   &pe_session->dph.dphHashTable);
 	tSirResultCodes statusCode = eSIR_SME_SUCCESS;
 
 	if (NULL == pDelBssParams) {
@@ -1730,8 +1730,8 @@
 		pe_debug("STA received the DEL_BSS_RSP for BSSID: %X",
 			       pDelBssParams->bssIdx);
 		if (lim_set_link_state
-			    (mac, eSIR_LINK_IDLE_STATE, psessionEntry->bssId,
-			    psessionEntry->selfMacAddr, NULL,
+			    (mac, eSIR_LINK_IDLE_STATE, pe_session->bssId,
+			    pe_session->selfMacAddr, NULL,
 			    NULL) != QDF_STATUS_SUCCESS) {
 			pe_err("Failure in setting link state to IDLE");
 			statusCode = eSIR_SME_REFUSED;
@@ -1762,10 +1762,10 @@
 	}
 	if (pStaDs == NULL)
 		return;
-	if ((LIM_IS_STA_ROLE(psessionEntry)) &&
-	    (psessionEntry->limSmeState !=
+	if ((LIM_IS_STA_ROLE(pe_session)) &&
+	    (pe_session->limSmeState !=
 			eLIM_SME_WT_DISASSOC_STATE &&
-	    psessionEntry->limSmeState !=
+	    pe_session->limSmeState !=
 			eLIM_SME_WT_DEAUTH_STATE) &&
 	    pStaDs->mlmStaContext.cleanupTrigger !=
 			eLIM_JOIN_FAILURE) {
@@ -1773,23 +1773,23 @@
 		 *  context of other than normal DisAssoc / Deauth OR
 		 *  as part of Join Failure.
 		 */
-		lim_handle_del_bss_in_re_assoc_context(mac, pStaDs, psessionEntry);
+		lim_handle_del_bss_in_re_assoc_context(mac, pStaDs, pe_session);
 		return;
 	}
-	lim_prepare_and_send_del_sta_cnf(mac, pStaDs, statusCode, psessionEntry);
+	lim_prepare_and_send_del_sta_cnf(mac, pStaDs, statusCode, pe_session);
 	return;
 }
 
 void lim_process_ap_mlm_del_bss_rsp(tpAniSirGlobal mac,
 				    struct scheduler_msg *limMsgQ,
-				    struct pe_session *psessionEntry)
+				    struct pe_session *pe_session)
 {
 	tSirResultCodes rc = eSIR_SME_SUCCESS;
 	QDF_STATUS status;
 	tpDeleteBssParams pDelBss = (tpDeleteBssParams) limMsgQ->bodyptr;
 	tSirMacAddr nullBssid = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session entry passed is NULL");
 		if (pDelBss != NULL) {
 			qdf_mem_free(pDelBss);
@@ -1808,9 +1808,9 @@
 		       (mac, TRACE_CODE_MLM_STATE, NO_SESSION,
 		       mac->lim.gLimMlmState));
 
-	if (eLIM_MLM_WT_DEL_BSS_RSP_STATE != psessionEntry->limMlmState) {
+	if (eLIM_MLM_WT_DEL_BSS_RSP_STATE != pe_session->limMlmState) {
 		pe_err("Received unexpected WMA_DEL_BSS_RSP in state %X",
-			psessionEntry->limMlmState);
+			pe_session->limMlmState);
 		rc = eSIR_SME_REFUSED;
 		goto end;
 	}
@@ -1821,7 +1821,7 @@
 		goto end;
 	}
 	status = lim_set_link_state(mac, eSIR_LINK_IDLE_STATE, nullBssid,
-				    psessionEntry->selfMacAddr, NULL, NULL);
+				    pe_session->selfMacAddr, NULL, NULL);
 	if (status != QDF_STATUS_SUCCESS) {
 		rc = eSIR_SME_REFUSED;
 		goto end;
@@ -1830,15 +1830,15 @@
 	 * to occupy the medium during non channel occupancy period. So resume the transmission after
 	 * HAL gives back the response.
 	 */
-	dph_hash_table_class_init(mac, &psessionEntry->dph.dphHashTable);
+	dph_hash_table_class_init(mac, &pe_session->dph.dphHashTable);
 	lim_delete_pre_auth_list(mac);
 	/* Initialize number of associated stations during cleanup */
-	psessionEntry->gLimNumOfCurrentSTAs = 0;
+	pe_session->gLimNumOfCurrentSTAs = 0;
 end:
 	lim_send_sme_rsp(mac, eWNI_SME_STOP_BSS_RSP, rc,
-			 psessionEntry->smeSessionId,
-			 psessionEntry->transactionId);
-	pe_delete_session(mac, psessionEntry);
+			 pe_session->smeSessionId,
+			 pe_session->transactionId);
+	pe_delete_session(mac, pe_session);
 
 	if (pDelBss != NULL) {
 		qdf_mem_free(pDelBss);
@@ -2009,7 +2009,7 @@
 
 void lim_process_sta_mlm_del_sta_rsp(tpAniSirGlobal mac,
 				     struct scheduler_msg *limMsgQ,
-				     struct pe_session *psessionEntry)
+				     struct pe_session *pe_session)
 {
 	tSirResultCodes statusCode = eSIR_SME_SUCCESS;
 	tpDeleteStaParams pDelStaParams = (tpDeleteStaParams) limMsgQ->bodyptr;
@@ -2028,7 +2028,7 @@
 #ifdef FEATURE_WLAN_TDLS
 	if (pDelStaParams->staType == STA_ENTRY_TDLS_PEER) {
 		pe_debug("TDLS Del STA RSP received");
-		lim_process_tdls_del_sta_rsp(mac, limMsgQ, psessionEntry);
+		lim_process_tdls_del_sta_rsp(mac, limMsgQ, pe_session);
 		return;
 	}
 #endif
@@ -2037,16 +2037,16 @@
 			pDelStaParams->status);
 
 	pStaDs = dph_get_hash_entry(mac, DPH_STA_HASH_INDEX_PEER,
-			&psessionEntry->dph.dphHashTable);
+			&pe_session->dph.dphHashTable);
 	if (pStaDs == NULL) {
 		pe_err("DPH Entry for STA %X missing",
 				pDelStaParams->assocId);
 		statusCode = eSIR_SME_REFUSED;
 		goto end;
 	}
-	if (eLIM_MLM_WT_DEL_STA_RSP_STATE != psessionEntry->limMlmState) {
+	if (eLIM_MLM_WT_DEL_STA_RSP_STATE != pe_session->limMlmState) {
 		pe_err("Received unexpected WDA_DELETE_STA_RSP in state %s",
-			lim_mlm_state_str(psessionEntry->limMlmState));
+			lim_mlm_state_str(pe_session->limMlmState));
 		statusCode = eSIR_SME_REFUSED;
 		goto end;
 	}
@@ -2062,18 +2062,18 @@
 	}
 #ifdef CONFIG_VDEV_SM
 	status =
-	    wlan_vdev_mlme_sm_deliver_evt(psessionEntry->vdev,
+	    wlan_vdev_mlme_sm_deliver_evt(pe_session->vdev,
 					  WLAN_VDEV_SM_EV_DISCONNECT_COMPLETE,
-					  sizeof(*psessionEntry),
-					  psessionEntry);
+					  sizeof(*pe_session),
+					  pe_session);
 	if (QDF_IS_STATUS_ERROR(status)) {
 		pe_err("failed to post WLAN_VDEV_SM_EV_DISCONNECT_COMPLETE for vdevid %d",
-		       psessionEntry->smeSessionId);
+		       pe_session->smeSessionId);
 	}
 #else
 	/* Proceed to do DelBSS even if DelSta resulted in failure */
 	statusCode = (tSirResultCodes)lim_del_bss(mac, pStaDs, 0,
-			psessionEntry);
+			pe_session);
 #endif
 
 	return;
@@ -2087,7 +2087,7 @@
 
 void lim_process_ap_mlm_add_sta_rsp(tpAniSirGlobal mac,
 				    struct scheduler_msg *limMsgQ,
-				    struct pe_session *psessionEntry)
+				    struct pe_session *pe_session)
 {
 	tpAddStaParams pAddStaParams = (tpAddStaParams) limMsgQ->bodyptr;
 	tpDphHashNode pStaDs = NULL;
@@ -2099,7 +2099,7 @@
 
 	pStaDs =
 		dph_get_hash_entry(mac, pAddStaParams->assocId,
-				   &psessionEntry->dph.dphHashTable);
+				   &pe_session->dph.dphHashTable);
 	if (pStaDs == NULL) {
 		pe_err("DPH Entry for STA %X missing", pAddStaParams->assocId);
 		goto end;
@@ -2118,7 +2118,7 @@
 				       true, pStaDs->mlmStaContext.authType,
 				       pStaDs->assocId, true,
 				       eSIR_MAC_UNSPEC_FAILURE_STATUS,
-				       psessionEntry);
+				       pe_session);
 		goto end;
 	}
 	pStaDs->bssId = pAddStaParams->bssIdx;
@@ -2136,7 +2136,7 @@
 	 * 2) PE receives eWNI_SME_ASSOC_CNF from SME
 	 * 3) BTAMP-AP sends Re/Association Response to BTAMP-STA
 	 */
-	lim_send_mlm_assoc_ind(mac, pStaDs, psessionEntry);
+	lim_send_mlm_assoc_ind(mac, pStaDs, pe_session);
 	/* fall though to reclaim the original Add STA Response message */
 end:
 	if (0 != limMsgQ->bodyptr) {
@@ -2185,7 +2185,7 @@
 					   struct scheduler_msg *limMsgQ)
 {
 	tLimMlmStartCnf mlmStartCnf;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint8_t isWepEnabled = false;
 	tpAddBssParams pAddBssParams = (tpAddBssParams) limMsgQ->bodyptr;
 
@@ -2194,9 +2194,9 @@
 		goto end;
 	}
 	/* TBD: free the memory before returning, do it for all places where lookup fails. */
-	psessionEntry = pe_find_session_by_session_id(mac,
+	pe_session = pe_find_session_by_session_id(mac,
 					   pAddBssParams->sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("session does not exist for given sessionId");
 		if (NULL != pAddBssParams) {
 			qdf_mem_free(pAddBssParams);
@@ -2209,42 +2209,42 @@
 	if (QDF_STATUS_SUCCESS == pAddBssParams->status) {
 		pe_debug("WMA_ADD_BSS_RSP returned with QDF_STATUS_SUCCESS");
 		if (lim_set_link_state
-			    (mac, eSIR_LINK_AP_STATE, psessionEntry->bssId,
-			    psessionEntry->selfMacAddr, NULL,
+			    (mac, eSIR_LINK_AP_STATE, pe_session->bssId,
+			    pe_session->selfMacAddr, NULL,
 			    NULL) != QDF_STATUS_SUCCESS)
 			goto end;
 		/* Set MLME state */
-		psessionEntry->limMlmState = eLIM_MLM_BSS_STARTED_STATE;
-		psessionEntry->chainMask = pAddBssParams->chainMask;
-		psessionEntry->smpsMode = pAddBssParams->smpsMode;
+		pe_session->limMlmState = eLIM_MLM_BSS_STARTED_STATE;
+		pe_session->chainMask = pAddBssParams->chainMask;
+		pe_session->smpsMode = pAddBssParams->smpsMode;
 		MTRACE(mac_trace
-			       (mac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId,
-			       psessionEntry->limMlmState));
+			       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
+			       pe_session->limMlmState));
 		if (eSIR_IBSS_MODE == pAddBssParams->bssType) {
 			/** IBSS is 'active' when we receive
 			 * Beacon frames from other STAs that are part of same IBSS.
 			 * Mark internal state as inactive until then.
 			 */
-			psessionEntry->limIbssActive = false;
-			psessionEntry->statypeForBss = STA_ENTRY_PEER; /* to know session created for self/peer */
-			limResetHBPktCount(psessionEntry);
+			pe_session->limIbssActive = false;
+			pe_session->statypeForBss = STA_ENTRY_PEER; /* to know session created for self/peer */
+			limResetHBPktCount(pe_session);
 		}
-		psessionEntry->bssIdx = (uint8_t) pAddBssParams->bssIdx;
+		pe_session->bssIdx = (uint8_t) pAddBssParams->bssIdx;
 
-		psessionEntry->limSystemRole = eLIM_STA_IN_IBSS_ROLE;
+		pe_session->limSystemRole = eLIM_STA_IN_IBSS_ROLE;
 
 		if (eSIR_INFRA_AP_MODE == pAddBssParams->bssType)
-			psessionEntry->limSystemRole = eLIM_AP_ROLE;
+			pe_session->limSystemRole = eLIM_AP_ROLE;
 		else
-			psessionEntry->limSystemRole = eLIM_STA_IN_IBSS_ROLE;
-		sch_edca_profile_update(mac, psessionEntry);
+			pe_session->limSystemRole = eLIM_STA_IN_IBSS_ROLE;
+		sch_edca_profile_update(mac, pe_session);
 		lim_init_pre_auth_list(mac);
 		/* Check the SAP security configuration.If configured to
 		 * WEP then max clients supported is 16
 		 */
-		if (psessionEntry->privacy) {
-			if ((psessionEntry->gStartBssRSNIe.present)
-			    || (psessionEntry->gStartBssWPAIe.present))
+		if (pe_session->privacy) {
+			if ((pe_session->gStartBssRSNIe.present)
+			    || (pe_session->gStartBssWPAIe.present))
 				pe_debug("WPA/WPA2 SAP configuration");
 			else {
 				if (mac->mlme_cfg->sap_cfg.assoc_sta_limit >
@@ -2256,7 +2256,7 @@
 				}
 			}
 		}
-		lim_init_peer_idxpool(mac, psessionEntry);
+		lim_init_peer_idxpool(mac, pe_session);
 
 		/* Start OLBC timer */
 		if (tx_timer_activate
@@ -2266,7 +2266,7 @@
 		}
 
 		/* Apply previously set configuration at HW */
-		lim_apply_configuration(mac, psessionEntry);
+		lim_apply_configuration(mac, pe_session);
 
 		/* In lim_apply_configuration gLimAssocStaLimit is assigned from cfg.
 		 * So update the value to 16 in case SoftAP is configured in WEP.
@@ -2276,7 +2276,7 @@
 		    && (isWepEnabled))
 			mac->mlme_cfg->sap_cfg.assoc_sta_limit =
 			MAX_SUPPORTED_PEERS_WEP;
-		psessionEntry->staId = pAddBssParams->staContext.staIdx;
+		pe_session->staId = pAddBssParams->staContext.staIdx;
 		mlmStartCnf.resultCode = eSIR_SME_SUCCESS;
 	} else {
 		pe_err("WMA_ADD_BSS_REQ failed with status %d",
@@ -2330,7 +2330,7 @@
 static void
 lim_process_ibss_mlm_add_bss_rsp(tpAniSirGlobal mac,
 				 struct scheduler_msg *limMsgQ,
-				 struct pe_session *psessionEntry)
+				 struct pe_session *pe_session)
 {
 	tLimMlmStartCnf mlmStartCnf;
 	tpAddBssParams pAddBssParams = (tpAddBssParams) limMsgQ->bodyptr;
@@ -2343,36 +2343,36 @@
 		pe_debug("WMA_ADD_BSS_RSP returned with QDF_STATUS_SUCCESS");
 
 		if (lim_set_link_state
-			    (mac, eSIR_LINK_IBSS_STATE, psessionEntry->bssId,
-			    psessionEntry->selfMacAddr, NULL,
+			    (mac, eSIR_LINK_IBSS_STATE, pe_session->bssId,
+			    pe_session->selfMacAddr, NULL,
 			    NULL) != QDF_STATUS_SUCCESS)
 			goto end;
 		/* Set MLME state */
-		psessionEntry->limMlmState = eLIM_MLM_BSS_STARTED_STATE;
+		pe_session->limMlmState = eLIM_MLM_BSS_STARTED_STATE;
 		MTRACE(mac_trace
-			       (mac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId,
-			       psessionEntry->limMlmState));
+			       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
+			       pe_session->limMlmState));
 		/** IBSS is 'active' when we receive
 		 * Beacon frames from other STAs that are part of same IBSS.
 		 * Mark internal state as inactive until then.
 		 */
-		psessionEntry->limIbssActive = false;
-		limResetHBPktCount(psessionEntry);
-		psessionEntry->bssIdx = (uint8_t) pAddBssParams->bssIdx;
-		psessionEntry->limSystemRole = eLIM_STA_IN_IBSS_ROLE;
-		psessionEntry->statypeForBss = STA_ENTRY_SELF;
-		sch_edca_profile_update(mac, psessionEntry);
-		if (0 == psessionEntry->freePeerIdxHead)
-			lim_init_peer_idxpool(mac, psessionEntry);
+		pe_session->limIbssActive = false;
+		limResetHBPktCount(pe_session);
+		pe_session->bssIdx = (uint8_t) pAddBssParams->bssIdx;
+		pe_session->limSystemRole = eLIM_STA_IN_IBSS_ROLE;
+		pe_session->statypeForBss = STA_ENTRY_SELF;
+		sch_edca_profile_update(mac, pe_session);
+		if (0 == pe_session->freePeerIdxHead)
+			lim_init_peer_idxpool(mac, pe_session);
 
 		/* Apply previously set configuration at HW */
-		lim_apply_configuration(mac, psessionEntry);
-		psessionEntry->staId = pAddBssParams->staContext.staIdx;
+		lim_apply_configuration(mac, pe_session);
+		pe_session->staId = pAddBssParams->staContext.staIdx;
 		mlmStartCnf.resultCode = eSIR_SME_SUCCESS;
 		/* If ADD BSS was issued as part of IBSS coalescing, don't send the message to SME, as that is internal to LIM */
 		if (true == mac->lim.gLimIbssCoalescingHappened) {
 			lim_ibss_add_bss_rsp_when_coalescing(mac, limMsgQ->bodyptr,
-							     psessionEntry);
+							     pe_session);
 			goto end;
 		}
 	} else {
@@ -2383,7 +2383,7 @@
 	/* Send this message to SME, when ADD_BSS is initiated by SME */
 	/* If ADD_BSS is done as part of coalescing, this won't happen. */
 	/* Update PE session Id */
-	mlmStartCnf.sessionId = psessionEntry->peSessionId;
+	mlmStartCnf.sessionId = pe_session->peSessionId;
 	lim_send_start_bss_confirm(mac, &mlmStartCnf);
 end:
 	if (0 != limMsgQ->bodyptr) {
@@ -3013,20 +3013,20 @@
  * NA
  *
  * @param  mac          - Pointer to Global MAC structure.
- * @param  psessionEntry - session related information.
+ * @param  pe_session - session related information.
  * @param  status        - channel switch success/failure.
  *
  * @return None
  */
 static void lim_process_switch_channel_re_assoc_req(tpAniSirGlobal mac,
-						    struct pe_session *psessionEntry,
+						    struct pe_session *pe_session,
 						    QDF_STATUS status)
 {
 	tLimMlmReassocCnf mlmReassocCnf;
 	tLimMlmReassocReq *pMlmReassocReq;
 
 	pMlmReassocReq =
-		(tLimMlmReassocReq *) (psessionEntry->pLimMlmReassocReq);
+		(tLimMlmReassocReq *) (pe_session->pLimMlmReassocReq);
 	if (pMlmReassocReq == NULL) {
 		pe_err("pLimMlmReassocReq does not exist for given switchChanSession");
 		mlmReassocCnf.resultCode = eSIR_SME_RESOURCES_UNAVAILABLE;
@@ -3040,7 +3040,7 @@
 	}
 	/* / Start reassociation failure timer */
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_TIMER_ACTIVATE, psessionEntry->peSessionId,
+		       (mac, TRACE_CODE_TIMER_ACTIVATE, pe_session->peSessionId,
 		       eLIM_REASSOC_FAIL_TIMER));
 	if (tx_timer_activate(&mac->lim.limTimers.gLimReassocFailureTimer)
 	    != TX_SUCCESS) {
@@ -3051,7 +3051,7 @@
 		goto end;
 	}
 	/* / Prepare and send Reassociation request frame */
-	lim_send_reassoc_req_mgmt_frame(mac, pMlmReassocReq, psessionEntry);
+	lim_send_reassoc_req_mgmt_frame(mac, pMlmReassocReq, pe_session);
 	return;
 end:
 	/* Free up buffer allocated for reassocReq */
@@ -3059,14 +3059,14 @@
 		/* Update PE session Id */
 		mlmReassocCnf.sessionId = pMlmReassocReq->sessionId;
 		qdf_mem_free(pMlmReassocReq);
-		psessionEntry->pLimMlmReassocReq = NULL;
+		pe_session->pLimMlmReassocReq = NULL;
 	} else {
 		mlmReassocCnf.sessionId = 0;
 	}
 
 	mlmReassocCnf.protStatusCode = eSIR_MAC_UNSPEC_FAILURE_STATUS;
 	/* Update PE sessio Id */
-	mlmReassocCnf.sessionId = psessionEntry->peSessionId;
+	mlmReassocCnf.sessionId = pe_session->peSessionId;
 
 	lim_post_sme_message(mac, LIM_MLM_REASSOC_CNF,
 			     (uint32_t *) &mlmReassocCnf);
@@ -3077,7 +3077,7 @@
  * lim_process_switch_channel_join_req() -Initiates probe request
  *
  * @mac_ctx - A pointer to Global MAC structure
- * @sessionEntry - session related information.
+ * @pe_session - session related information.
  * @status        - channel switch success/failure
  *
  * This function is called to send the probe req mgmt frame
@@ -3237,7 +3237,7 @@
 	QDF_STATUS status;
 	uint16_t channelChangeReasonCode;
 	uint8_t peSessionId;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	/* we need to process the deferred message since the initiating req. there might be nested request. */
 	/* in the case of nested request the new request initiated from the response will take care of resetting */
 	/* the deffered flag. */
@@ -3246,27 +3246,27 @@
 	status = pChnlParams->status;
 	peSessionId = pChnlParams->peSessionId;
 
-	psessionEntry = pe_find_session_by_session_id(mac, peSessionId);
-	if (psessionEntry == NULL) {
+	pe_session = pe_find_session_by_session_id(mac, peSessionId);
+	if (pe_session == NULL) {
 		pe_err("session does not exist for given sessionId");
 		goto free;
 	}
-	psessionEntry->ch_switch_in_progress = false;
+	pe_session->ch_switch_in_progress = false;
 	/* HAL fills in the tx power used for mgmt frames in this field. */
 	/* Store this value to use in TPC report IE. */
-	rrm_cache_mgmt_tx_power(mac, pChnlParams->txMgmtPower, psessionEntry);
-	channelChangeReasonCode = psessionEntry->channelChangeReasonCode;
+	rrm_cache_mgmt_tx_power(mac, pChnlParams->txMgmtPower, pe_session);
+	channelChangeReasonCode = pe_session->channelChangeReasonCode;
 	/* initialize it back to invalid id */
-	psessionEntry->chainMask = pChnlParams->chainMask;
-	psessionEntry->smpsMode = pChnlParams->smpsMode;
-	psessionEntry->channelChangeReasonCode = 0xBAD;
+	pe_session->chainMask = pChnlParams->chainMask;
+	pe_session->smpsMode = pChnlParams->smpsMode;
+	pe_session->channelChangeReasonCode = 0xBAD;
 	pe_debug("channelChangeReasonCode %d", channelChangeReasonCode);
 	switch (channelChangeReasonCode) {
 	case LIM_SWITCH_CHANNEL_REASSOC:
-		lim_process_switch_channel_re_assoc_req(mac, psessionEntry, status);
+		lim_process_switch_channel_re_assoc_req(mac, pe_session, status);
 		break;
 	case LIM_SWITCH_CHANNEL_JOIN:
-		lim_process_switch_channel_join_req(mac, psessionEntry, status);
+		lim_process_switch_channel_join_req(mac, pe_session, status);
 		break;
 
 	case LIM_SWITCH_CHANNEL_OPERATION:
@@ -3281,16 +3281,16 @@
 			mac->lim.gpchangeChannelCallback(mac, status,
 							  mac->lim.
 							  gpchangeChannelData,
-							  psessionEntry);
+							  pe_session);
 		}
 		/* If MCC upgrade/DBS downgrade happended during channel switch,
 		 * the policy manager connection table needs to be updated.
 		 */
 		policy_mgr_update_connection_info(mac->psoc,
-			psessionEntry->smeSessionId);
-		if (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE) {
+			pe_session->smeSessionId);
+		if (pe_session->pePersona == QDF_P2P_CLIENT_MODE) {
 			pe_debug("Send p2p operating channel change conf action frame once first beacon is received on new channel");
-			psessionEntry->send_p2p_conf_frame = true;
+			pe_session->send_p2p_conf_frame = true;
 		}
 		break;
 	case LIM_SWITCH_CHANNEL_SAP_DFS:
@@ -3303,13 +3303,13 @@
 		 * require completely different information for P2P unlike
 		 * SAP.
 		 */
-		lim_send_sme_ap_channel_switch_resp(mac, psessionEntry,
+		lim_send_sme_ap_channel_switch_resp(mac, pe_session,
 						pChnlParams);
 		/* If MCC upgrade/DBS downgrade happended during channel switch,
 		 * the policy manager connection table needs to be updated.
 		 */
 		policy_mgr_update_connection_info(mac->psoc,
-						psessionEntry->smeSessionId);
+						pe_session->smeSessionId);
 		policy_mgr_set_do_hw_mode_change_flag(mac->psoc, true);
 	}
 	break;
@@ -3320,13 +3320,13 @@
 	qdf_mem_free(body);
 }
 
-QDF_STATUS lim_send_beacon_ind(tpAniSirGlobal mac, struct pe_session *psessionEntry,
+QDF_STATUS lim_send_beacon_ind(tpAniSirGlobal mac, struct pe_session *pe_session,
 			       enum sir_bcn_update_reason reason)
 {
 	tBeaconGenParams *pBeaconGenParams = NULL;
 	struct scheduler_msg limMsg = {0};
 	/** Allocate the Memory for Beacon Pre Message and for Stations in PoweSave*/
-	if (!psessionEntry) {
+	if (!pe_session) {
 		pe_err("Error:Unable to get the PESessionEntry");
 		return QDF_STATUS_E_INVAL;
 	}
@@ -3336,7 +3336,7 @@
 		return QDF_STATUS_E_NOMEM;
 	}
 	qdf_mem_copy((void *)pBeaconGenParams->bssId,
-		     (void *)psessionEntry->bssId, QDF_MAC_ADDR_SIZE);
+		     (void *)pe_session->bssId, QDF_MAC_ADDR_SIZE);
 	limMsg.bodyptr = pBeaconGenParams;
 	return sch_process_pre_beacon_ind(mac, &limMsg, reason);
 }
diff --git a/core/mac/src/pe/lim/lim_process_probe_req_frame.c b/core/mac/src/pe/lim/lim_process_probe_req_frame.c
index e90de7e..7023833 100644
--- a/core/mac/src/pe/lim/lim_process_probe_req_frame.c
+++ b/core/mac/src/pe/lim/lim_process_probe_req_frame.c
@@ -46,7 +46,7 @@
 lim_send_sme_probe_req_ind(tpAniSirGlobal mac,
 			   tSirMacAddr peerMacAddr,
 			   uint8_t *pProbeReqIE,
-			   uint32_t ProbeReqIELen, struct pe_session *psessionEntry);
+			   uint32_t ProbeReqIELen, struct pe_session *pe_session);
 
 /**
  * lim_get_wpspbc_sessions() - to get wps pbs sessions
@@ -176,14 +176,14 @@
  * @param  mac   Pointer to Global MAC structure
  * @param  addr   A pointer to probe request source MAC address
  * @param  uuid_e A pointer to UUIDE element of WPS IE
- * @param  psessionEntry   A pointer to station PE session
+ * @param  pe_session   A pointer to station PE session
  *
  * @return None
  */
 
 static void lim_update_pbc_session_entry(tpAniSirGlobal mac,
 					 uint8_t *addr, uint8_t *uuid_e,
-					 struct pe_session *psessionEntry)
+					 struct pe_session *pe_session)
 {
 	tSirWPSPBCSession *pbc, *prev = NULL;
 
@@ -199,7 +199,7 @@
 	QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
 			   uuid_e, SIR_WPS_UUID_LEN);
 
-	pbc = psessionEntry->pAPWPSPBCSession;
+	pbc = pe_session->pAPWPSPBCSession;
 
 	while (pbc) {
 		if ((!qdf_mem_cmp
@@ -210,7 +210,7 @@
 			if (prev)
 				prev->next = pbc->next;
 			else
-				psessionEntry->pAPWPSPBCSession = pbc->next;
+				pe_session->pAPWPSPBCSession = pbc->next;
 			break;
 		}
 		prev = pbc;
@@ -229,8 +229,8 @@
 				     (uint8_t *) uuid_e, SIR_WPS_UUID_LEN);
 	}
 
-	pbc->next = psessionEntry->pAPWPSPBCSession;
-	psessionEntry->pAPWPSPBCSession = pbc;
+	pbc->next = pe_session->pAPWPSPBCSession;
+	pe_session->pAPWPSPBCSession = pbc;
 	pbc->timestamp = curTime;
 
 	/* remove entries that have timed out */
@@ -263,15 +263,15 @@
  ***NOTE:
  *
  * @param  mac   Pointer to Global MAC structure
- * @param  psessionEntry   A pointer to station PE session
+ * @param  pe_session   A pointer to station PE session
  *
  * @return None
  */
 
-void lim_wpspbc_close(tpAniSirGlobal mac, struct pe_session *psessionEntry)
+void lim_wpspbc_close(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
 
-	lim_remove_timeout_pbc_sessions(mac, psessionEntry->pAPWPSPBCSession);
+	lim_remove_timeout_pbc_sessions(mac, pe_session->pAPWPSPBCSession);
 
 }
 
@@ -526,14 +526,14 @@
  *
  * @param  mac              Pointer to Global MAC structure
  * @param  *pBd              A pointer to Buffer descriptor + associated PDUs
- * @param  psessionEntry     A pointer to PE session
+ * @param  pe_session     A pointer to PE session
  *
  * @return None
  */
 
 static void
 lim_indicate_probe_req_to_hdd(tpAniSirGlobal mac, uint8_t *pBd,
-			      struct pe_session *psessionEntry)
+			      struct pe_session *pe_session)
 {
 	tpSirMacMgmtHdr pHdr;
 	uint32_t frameLen;
@@ -547,8 +547,8 @@
 	lim_send_sme_mgmt_frame_ind(mac, pHdr->fc.subType,
 				    (uint8_t *) pHdr,
 				    (frameLen + sizeof(tSirMacMgmtHdr)),
-				    psessionEntry->smeSessionId, WMA_GET_RX_CH(pBd),
-				    psessionEntry,
+				    pe_session->smeSessionId, WMA_GET_RX_CH(pBd),
+				    pe_session,
 				    WMA_GET_RX_RSSI_NORMALIZED(pBd));
 } /*** end lim_indicate_probe_req_to_hdd() ***/
 
@@ -618,7 +618,7 @@
  *                          is generated.
  * @param pProbeReqIE       pointer to RAW probe request IE
  * @param ProbeReqIELen     The length of probe request IE.
- * @param psessionEntry     A pointer to PE session
+ * @param pe_session     A pointer to PE session
  *
  * @return None
  */
@@ -626,7 +626,7 @@
 lim_send_sme_probe_req_ind(tpAniSirGlobal mac,
 			   tSirMacAddr peerMacAddr,
 			   uint8_t *pProbeReqIE,
-			   uint32_t ProbeReqIELen, struct pe_session *psessionEntry)
+			   uint32_t ProbeReqIELen, struct pe_session *pe_session)
 {
 	tSirSmeProbeReqInd *pSirSmeProbeReqInd;
 	struct scheduler_msg msgQ = {0};
@@ -641,15 +641,15 @@
 
 	pSirSmeProbeReqInd->messageType = eWNI_SME_WPS_PBC_PROBE_REQ_IND;
 	pSirSmeProbeReqInd->length = sizeof(tSirSmeProbeReq);
-	pSirSmeProbeReqInd->sessionId = psessionEntry->smeSessionId;
+	pSirSmeProbeReqInd->sessionId = pe_session->smeSessionId;
 
-	qdf_mem_copy(pSirSmeProbeReqInd->bssid.bytes, psessionEntry->bssId,
+	qdf_mem_copy(pSirSmeProbeReqInd->bssid.bytes, pe_session->bssId,
 		     QDF_MAC_ADDR_SIZE);
 	qdf_mem_copy(pSirSmeProbeReqInd->WPSPBCProbeReq.peer_macaddr.bytes,
 		     peerMacAddr, QDF_MAC_ADDR_SIZE);
 
 	MTRACE(mac_trace(mac, TRACE_CODE_TX_SME_MSG,
-				psessionEntry->peSessionId, msgQ.type));
+				pe_session->peSessionId, msgQ.type));
 
 	if (ProbeReqIELen > sizeof(pSirSmeProbeReqInd->WPSPBCProbeReq.
 	    probeReqIE)) {
diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
index 0cd9f08..232eade 100644
--- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c
+++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
@@ -2139,7 +2139,7 @@
 	tLimMlmDisassocReq *pMlmDisassocReq;
 	tSirResultCodes retCode = eSIR_SME_SUCCESS;
 	tSirSmeDisassocReq smeDisassocReq;
-	struct pe_session *psessionEntry = NULL;
+	struct pe_session *pe_session = NULL;
 	uint8_t sessionId;
 	uint8_t smesessionId;
 	uint16_t smetransactionId;
@@ -2154,7 +2154,7 @@
 	smetransactionId = smeDisassocReq.transactionId;
 	if (!lim_is_sme_disassoc_req_valid(mac,
 					   &smeDisassocReq,
-					   psessionEntry)) {
+					   pe_session)) {
 		pe_err("received invalid SME_DISASSOC_REQ message");
 		if (mac->lim.gLimRspReqd) {
 			mac->lim.gLimRspReqd = false;
@@ -2167,10 +2167,10 @@
 		return;
 	}
 
-	psessionEntry = pe_find_session_by_bssid(mac,
+	pe_session = pe_find_session_by_bssid(mac,
 				smeDisassocReq.bssid.bytes,
 				&sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("session does not exist for given bssId "
 			   MAC_ADDRESS_STR,
 			MAC_ADDR_ARRAY(smeDisassocReq.bssid.bytes));
@@ -2180,37 +2180,37 @@
 	}
 	pe_debug("received DISASSOC_REQ message on sessionid %d Systemrole %d Reason: %u SmeState: %d from: "
 			MAC_ADDRESS_STR, smesessionId,
-		GET_LIM_SYSTEM_ROLE(psessionEntry), smeDisassocReq.reasonCode,
+		GET_LIM_SYSTEM_ROLE(pe_session), smeDisassocReq.reasonCode,
 		mac->lim.gLimSmeState,
 		MAC_ADDR_ARRAY(smeDisassocReq.peer_macaddr.bytes));
 
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
-	lim_diag_event_report(mac, WLAN_PE_DIAG_DISASSOC_REQ_EVENT, psessionEntry,
+	lim_diag_event_report(mac, WLAN_PE_DIAG_DISASSOC_REQ_EVENT, pe_session,
 			      0, smeDisassocReq.reasonCode);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 
 	/* Update SME session Id and SME transaction ID */
 
-	psessionEntry->smeSessionId = smesessionId;
-	psessionEntry->transactionId = smetransactionId;
+	pe_session->smeSessionId = smesessionId;
+	pe_session->transactionId = smetransactionId;
 	pe_debug("ho_fail: %d ", smeDisassocReq.process_ho_fail);
-	psessionEntry->process_ho_fail = smeDisassocReq.process_ho_fail;
+	pe_session->process_ho_fail = smeDisassocReq.process_ho_fail;
 
-	switch (GET_LIM_SYSTEM_ROLE(psessionEntry)) {
+	switch (GET_LIM_SYSTEM_ROLE(pe_session)) {
 	case eLIM_STA_ROLE:
-		switch (psessionEntry->limSmeState) {
+		switch (pe_session->limSmeState) {
 		case eLIM_SME_ASSOCIATED_STATE:
 		case eLIM_SME_LINK_EST_STATE:
 			pe_debug("Rcvd SME_DISASSOC_REQ in limSmeState: %d ",
-				psessionEntry->limSmeState);
-			psessionEntry->limPrevSmeState =
-				psessionEntry->limSmeState;
-			psessionEntry->limSmeState = eLIM_SME_WT_DISASSOC_STATE;
+				pe_session->limSmeState);
+			pe_session->limPrevSmeState =
+				pe_session->limSmeState;
+			pe_session->limSmeState = eLIM_SME_WT_DISASSOC_STATE;
 			/* Delete all TDLS peers connected before leaving BSS */
-			lim_delete_tdls_peers(mac, psessionEntry);
+			lim_delete_tdls_peers(mac, pe_session);
 			MTRACE(mac_trace(mac, TRACE_CODE_SME_STATE,
-				psessionEntry->peSessionId,
-				psessionEntry->limSmeState));
+				pe_session->peSessionId,
+				pe_session->limSmeState));
 			break;
 
 		case eLIM_SME_WT_DEAUTH_STATE:
@@ -2219,11 +2219,11 @@
 			 * to SME. mac->lim.gLimPrevSmeState shall remain the same as
 			 * its been set when PE entered WT_DEAUTH_STATE.
 			 */
-			psessionEntry->limSmeState = eLIM_SME_WT_DISASSOC_STATE;
+			pe_session->limSmeState = eLIM_SME_WT_DISASSOC_STATE;
 			MTRACE(mac_trace
 				       (mac, TRACE_CODE_SME_STATE,
-				       psessionEntry->peSessionId,
-				       psessionEntry->limSmeState));
+				       pe_session->peSessionId,
+				       pe_session->limSmeState));
 			pe_debug("Rcvd SME_DISASSOC_REQ while in SME_WT_DEAUTH_STATE");
 			break;
 
@@ -2256,12 +2256,12 @@
 			 * Log error and send response to host
 			 */
 			pe_err("received unexpected SME_DISASSOC_REQ in state %X",
-				psessionEntry->limSmeState);
+				pe_session->limSmeState);
 			lim_print_sme_state(mac, LOGE,
-				psessionEntry->limSmeState);
+				pe_session->limSmeState);
 
 			if (mac->lim.gLimRspReqd) {
-				if (psessionEntry->limSmeState !=
+				if (pe_session->limSmeState !=
 				    eLIM_SME_WT_ASSOC_STATE)
 					mac->lim.gLimRspReqd = false;
 
@@ -2283,7 +2283,7 @@
 	default:
 		/* eLIM_UNKNOWN_ROLE */
 		pe_err("received unexpected SME_DISASSOC_REQ for role %d",
-			GET_LIM_SYSTEM_ROLE(psessionEntry));
+			GET_LIM_SYSTEM_ROLE(pe_session));
 
 		retCode = eSIR_SME_UNEXPECTED_REQ_RESULT_CODE;
 		disassocTrigger = eLIM_HOST_DISASSOC;
@@ -2320,13 +2320,13 @@
 	return;
 
 sendDisassoc:
-	if (psessionEntry)
+	if (pe_session)
 		lim_send_sme_disassoc_ntf(mac,
 					  smeDisassocReq.peer_macaddr.bytes,
 					  retCode,
 					  disassocTrigger,
 					  1, smesessionId, smetransactionId,
-					  psessionEntry);
+					  pe_session);
 	else
 		lim_send_sme_disassoc_ntf(mac,
 					  smeDisassocReq.peer_macaddr.bytes,
@@ -2351,7 +2351,7 @@
 	tSirSmeDisassocCnf smeDisassocCnf;
 	uint16_t aid;
 	tpDphHashNode pStaDs;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint8_t sessionId;
 	uint32_t *msg = NULL;
 	QDF_STATUS status;
@@ -2359,10 +2359,10 @@
 	qdf_mem_copy(&smeDisassocCnf, pMsgBuf,
 			sizeof(struct sSirSmeDisassocCnf));
 
-	psessionEntry = pe_find_session_by_bssid(mac,
+	pe_session = pe_find_session_by_bssid(mac,
 				smeDisassocCnf.bssid.bytes,
 				&sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("session does not exist for given bssId");
 		status = lim_prepare_disconnect_done_ind(mac, &msg,
 						smeDisassocCnf.sme_session_id,
@@ -2375,10 +2375,10 @@
 		return;
 	}
 
-	if (!lim_is_sme_disassoc_cnf_valid(mac, &smeDisassocCnf, psessionEntry)) {
+	if (!lim_is_sme_disassoc_cnf_valid(mac, &smeDisassocCnf, pe_session)) {
 		pe_err("received invalid SME_DISASSOC_CNF message");
 		status = lim_prepare_disconnect_done_ind(mac, &msg,
-						psessionEntry->smeSessionId,
+						pe_session->smeSessionId,
 						eSIR_SME_INVALID_PARAMETERS,
 						&smeDisassocCnf.bssid.bytes[0]);
 		if (QDF_IS_STATUS_SUCCESS(status))
@@ -2390,26 +2390,26 @@
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
 	if (smeDisassocCnf.messageType == eWNI_SME_DISASSOC_CNF)
 		lim_diag_event_report(mac, WLAN_PE_DIAG_DISASSOC_CNF_EVENT,
-				      psessionEntry,
+				      pe_session,
 				      (uint16_t) smeDisassocCnf.statusCode, 0);
 	else if (smeDisassocCnf.messageType == eWNI_SME_DEAUTH_CNF)
 		lim_diag_event_report(mac, WLAN_PE_DIAG_DEAUTH_CNF_EVENT,
-				      psessionEntry,
+				      pe_session,
 				      (uint16_t) smeDisassocCnf.statusCode, 0);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 
-	switch (GET_LIM_SYSTEM_ROLE(psessionEntry)) {
+	switch (GET_LIM_SYSTEM_ROLE(pe_session)) {
 	case eLIM_STA_ROLE:
-		if ((psessionEntry->limSmeState != eLIM_SME_IDLE_STATE) &&
-		    (psessionEntry->limSmeState != eLIM_SME_WT_DISASSOC_STATE)
-		    && (psessionEntry->limSmeState !=
+		if ((pe_session->limSmeState != eLIM_SME_IDLE_STATE) &&
+		    (pe_session->limSmeState != eLIM_SME_WT_DISASSOC_STATE)
+		    && (pe_session->limSmeState !=
 			eLIM_SME_WT_DEAUTH_STATE)) {
 			pe_err("received unexp SME_DISASSOC_CNF in state %X",
-				psessionEntry->limSmeState);
+				pe_session->limSmeState);
 			lim_print_sme_state(mac, LOGE,
-					    psessionEntry->limSmeState);
+					    pe_session->limSmeState);
 			status = lim_prepare_disconnect_done_ind(mac, &msg,
-						psessionEntry->smeSessionId,
+						pe_session->smeSessionId,
 						eSIR_SME_INVALID_STATE,
 						&smeDisassocCnf.bssid.bytes[0]);
 			if (QDF_IS_STATUS_SUCCESS(status))
@@ -2427,9 +2427,9 @@
 	case eLIM_STA_IN_IBSS_ROLE:
 	default:                /* eLIM_UNKNOWN_ROLE */
 		pe_err("received unexpected SME_DISASSOC_CNF role %d",
-			GET_LIM_SYSTEM_ROLE(psessionEntry));
+			GET_LIM_SYSTEM_ROLE(pe_session));
 		status = lim_prepare_disconnect_done_ind(mac, &msg,
-						psessionEntry->smeSessionId,
+						pe_session->smeSessionId,
 						eSIR_SME_INVALID_STATE,
 						&smeDisassocCnf.bssid.bytes[0]);
 		if (QDF_IS_STATUS_SUCCESS(status))
@@ -2439,18 +2439,18 @@
 		return;
 	}
 
-	if ((psessionEntry->limSmeState == eLIM_SME_WT_DISASSOC_STATE) ||
-	    (psessionEntry->limSmeState == eLIM_SME_WT_DEAUTH_STATE) ||
-	    LIM_IS_AP_ROLE(psessionEntry)) {
+	if ((pe_session->limSmeState == eLIM_SME_WT_DISASSOC_STATE) ||
+	    (pe_session->limSmeState == eLIM_SME_WT_DEAUTH_STATE) ||
+	    LIM_IS_AP_ROLE(pe_session)) {
 		pStaDs = dph_lookup_hash_entry(mac,
 				smeDisassocCnf.peer_macaddr.bytes, &aid,
-				&psessionEntry->dph.dphHashTable);
+				&pe_session->dph.dphHashTable);
 		if (pStaDs == NULL) {
 			pe_err("DISASSOC_CNF for a STA with no context, addr= "
 				MAC_ADDRESS_STR,
 				MAC_ADDR_ARRAY(smeDisassocCnf.peer_macaddr.bytes));
 			status = lim_prepare_disconnect_done_ind(mac, &msg,
-						psessionEntry->smeSessionId,
+						pe_session->smeSessionId,
 						eSIR_SME_INVALID_PARAMETERS,
 						&smeDisassocCnf.bssid.bytes[0]);
 			if (QDF_IS_STATUS_SUCCESS(status))
@@ -2468,7 +2468,7 @@
 				MAC_ADDR_ARRAY(smeDisassocCnf.peer_macaddr.bytes),
 				pStaDs->mlmStaContext.mlmState);
 			status = lim_prepare_disconnect_done_ind(mac, &msg,
-						psessionEntry->smeSessionId,
+						pe_session->smeSessionId,
 						eSIR_SME_SUCCESS,
 						NULL);
 			if (QDF_IS_STATUS_SUCCESS(status))
@@ -2479,8 +2479,8 @@
 		}
 
 		/* Delete FT session if there exists one */
-		lim_ft_cleanup_pre_auth_info(mac, psessionEntry);
-		lim_cleanup_rx_path(mac, pStaDs, psessionEntry);
+		lim_ft_cleanup_pre_auth_info(mac, pe_session);
+		lim_cleanup_rx_path(mac, pStaDs, pe_session);
 
 		lim_clean_up_disassoc_deauth_req(mac,
 				 (char *)&smeDisassocCnf.peer_macaddr, 0);
@@ -2952,13 +2952,13 @@
  * @return None
  */
 
-static void __lim_counter_measures(tpAniSirGlobal mac, struct pe_session *psessionEntry)
+static void __lim_counter_measures(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
 	tSirMacAddr mac_addr = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
 
-	if (LIM_IS_AP_ROLE(psessionEntry))
+	if (LIM_IS_AP_ROLE(pe_session))
 		lim_send_disassoc_mgmt_frame(mac, eSIR_MAC_MIC_FAILURE_REASON,
-					     mac_addr, psessionEntry, false);
+					     mac_addr, pe_session, false);
 };
 
 void lim_send_stop_bss_failure_resp(tpAniSirGlobal mac_ctx,
@@ -3090,7 +3090,7 @@
 {
 	tSirSmeStopBssReq stopBssReq;
 	tLimSmeStates prevState;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint8_t smesessionId;
 	uint8_t sessionId;
 	uint16_t smetransactionId;
@@ -3108,10 +3108,10 @@
 		return;
 	}
 
-	psessionEntry = pe_find_session_by_bssid(mac,
+	pe_session = pe_find_session_by_bssid(mac,
 				stopBssReq.bssid.bytes,
 				&sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("session does not exist for given BSSID");
 		lim_send_sme_rsp(mac, eWNI_SME_STOP_BSS_RSP,
 				 eSIR_SME_INVALID_PARAMETERS, smesessionId,
@@ -3119,21 +3119,21 @@
 		return;
 	}
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
-	lim_diag_event_report(mac, WLAN_PE_DIAG_STOP_BSS_REQ_EVENT, psessionEntry,
+	lim_diag_event_report(mac, WLAN_PE_DIAG_STOP_BSS_REQ_EVENT, pe_session,
 			      0, 0);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 
-	if (psessionEntry->limSmeState != eLIM_SME_NORMAL_STATE ||    /* Added For BT -AMP Support */
-	    LIM_IS_STA_ROLE(psessionEntry)) {
+	if (pe_session->limSmeState != eLIM_SME_NORMAL_STATE ||    /* Added For BT -AMP Support */
+	    LIM_IS_STA_ROLE(pe_session)) {
 		/**
 		 * Should not have received STOP_BSS_REQ in states
 		 * other than 'normal' state or on STA in Infrastructure
 		 * mode. Log error and return response to host.
 		 */
 		pe_err("received unexpected SME_STOP_BSS_REQ in state %X, for role %d",
-			psessionEntry->limSmeState,
-			GET_LIM_SYSTEM_ROLE(psessionEntry));
-		lim_print_sme_state(mac, LOGE, psessionEntry->limSmeState);
+			pe_session->limSmeState,
+			GET_LIM_SYSTEM_ROLE(pe_session));
+		lim_print_sme_state(mac, LOGE, pe_session->limSmeState);
 		/* / Send Stop BSS response to host */
 		lim_send_sme_rsp(mac, eWNI_SME_STOP_BSS_RSP,
 				 eSIR_SME_UNEXPECTED_REQ_RESULT_CODE, smesessionId,
@@ -3141,51 +3141,51 @@
 		return;
 	}
 
-	if (LIM_IS_AP_ROLE(psessionEntry))
-		lim_wpspbc_close(mac, psessionEntry);
+	if (LIM_IS_AP_ROLE(pe_session))
+		lim_wpspbc_close(mac, pe_session);
 
 	pe_debug("RECEIVED STOP_BSS_REQ with reason code=%d",
 		stopBssReq.reasonCode);
 
-	prevState = psessionEntry->limSmeState;
-	psessionEntry->limPrevSmeState = prevState;
+	prevState = pe_session->limSmeState;
+	pe_session->limPrevSmeState = prevState;
 
-	psessionEntry->limSmeState = eLIM_SME_IDLE_STATE;
+	pe_session->limSmeState = eLIM_SME_IDLE_STATE;
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_SME_STATE, psessionEntry->peSessionId,
-		       psessionEntry->limSmeState));
+		       (mac, TRACE_CODE_SME_STATE, pe_session->peSessionId,
+		       pe_session->limSmeState));
 
 	/* Update SME session Id and Transaction Id */
-	psessionEntry->smeSessionId = smesessionId;
-	psessionEntry->transactionId = smetransactionId;
+	pe_session->smeSessionId = smesessionId;
+	pe_session->transactionId = smetransactionId;
 
 	/* STA_IN_IBSS and NDI should NOT send Disassoc frame */
-	if (!LIM_IS_IBSS_ROLE(psessionEntry) &&
-	    !LIM_IS_NDI_ROLE(psessionEntry)) {
+	if (!LIM_IS_IBSS_ROLE(pe_session) &&
+	    !LIM_IS_NDI_ROLE(pe_session)) {
 		tSirMacAddr bcAddr = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
 
 		if (stopBssReq.reasonCode == eSIR_SME_MIC_COUNTER_MEASURES)
 			/* Send disassoc all stations associated thru TKIP */
-			__lim_counter_measures(mac, psessionEntry);
+			__lim_counter_measures(mac, pe_session);
 		else
 			lim_send_disassoc_mgmt_frame(mac,
 				eSIR_MAC_DEAUTH_LEAVING_BSS_REASON,
-				bcAddr, psessionEntry, false);
+				bcAddr, pe_session, false);
 	}
 
-	if (!LIM_IS_NDI_ROLE(psessionEntry)) {
+	if (!LIM_IS_NDI_ROLE(pe_session)) {
 		/* Free the buffer allocated in START_BSS_REQ */
-		qdf_mem_free(psessionEntry->addIeParams.probeRespData_buff);
-		psessionEntry->addIeParams.probeRespDataLen = 0;
-		psessionEntry->addIeParams.probeRespData_buff = NULL;
+		qdf_mem_free(pe_session->addIeParams.probeRespData_buff);
+		pe_session->addIeParams.probeRespDataLen = 0;
+		pe_session->addIeParams.probeRespData_buff = NULL;
 
-		qdf_mem_free(psessionEntry->addIeParams.assocRespData_buff);
-		psessionEntry->addIeParams.assocRespDataLen = 0;
-		psessionEntry->addIeParams.assocRespData_buff = NULL;
+		qdf_mem_free(pe_session->addIeParams.assocRespData_buff);
+		pe_session->addIeParams.assocRespDataLen = 0;
+		pe_session->addIeParams.assocRespData_buff = NULL;
 
-		qdf_mem_free(psessionEntry->addIeParams.probeRespBCNData_buff);
-		psessionEntry->addIeParams.probeRespBCNDataLen = 0;
-		psessionEntry->addIeParams.probeRespBCNData_buff = NULL;
+		qdf_mem_free(pe_session->addIeParams.probeRespBCNData_buff);
+		pe_session->addIeParams.probeRespBCNDataLen = 0;
+		pe_session->addIeParams.probeRespBCNData_buff = NULL;
 
 		/*
 		 * lim_del_bss is also called as part of coalescing,
@@ -3194,7 +3194,7 @@
 		mac->lim.gLimIbssCoalescingHappened = false;
 	}
 
-	lim_delete_peers_and_send_vdev_stop(psessionEntry);
+	lim_delete_peers_and_send_vdev_stop(pe_session);
 
 }
 
@@ -3227,17 +3227,17 @@
 } /*** end __lim_process_sme_stop_bss_req() ***/
 
 void lim_process_sme_del_bss_rsp(tpAniSirGlobal mac,
-				 uint32_t body, struct pe_session *psessionEntry)
+				 uint32_t body, struct pe_session *pe_session)
 {
 
 	(void)body;
 	SET_LIM_PROCESS_DEFD_MESGS(mac, true);
-	lim_ibss_delete(mac, psessionEntry);
-	dph_hash_table_class_init(mac, &psessionEntry->dph.dphHashTable);
+	lim_ibss_delete(mac, pe_session);
+	dph_hash_table_class_init(mac, &pe_session->dph.dphHashTable);
 	lim_delete_pre_auth_list(mac);
 	lim_send_sme_rsp(mac, eWNI_SME_STOP_BSS_RSP, eSIR_SME_SUCCESS,
-			 psessionEntry->smeSessionId,
-			 psessionEntry->transactionId);
+			 pe_session->smeSessionId,
+			 pe_session->transactionId);
 	return;
 }
 
@@ -3390,7 +3390,7 @@
 	tSirMacAddr peerMac;
 	tpSirAddtsReq pSirAddts;
 	uint32_t timeout;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint8_t sessionId;      /* PE sessionId */
 	uint8_t smesessionId;
 	uint16_t smetransactionId;
@@ -3405,9 +3405,9 @@
 
 	pSirAddts = (tpSirAddtsReq) pMsgBuf;
 
-	psessionEntry = pe_find_session_by_bssid(mac, pSirAddts->bssid.bytes,
+	pe_session = pe_find_session_by_bssid(mac, pSirAddts->bssid.bytes,
 						 &sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session Does not exist for given bssId");
 		lim_send_sme_addts_rsp(mac, pSirAddts->rspReqd, QDF_STATUS_E_FAILURE,
 				       NULL, pSirAddts->req.tspec,
@@ -3415,7 +3415,7 @@
 		return;
 	}
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
-	lim_diag_event_report(mac, WLAN_PE_DIAG_ADDTS_REQ_EVENT, psessionEntry, 0,
+	lim_diag_event_report(mac, WLAN_PE_DIAG_ADDTS_REQ_EVENT, pe_session, 0,
 			      0);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 
@@ -3429,14 +3429,14 @@
 		pSirAddts->req.tspec.tsinfo.traffic.tsid,
 		pSirAddts->req.tspec.tsinfo.traffic.userPrio);
 
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
+	if (!LIM_IS_STA_ROLE(pe_session)) {
 		pe_err("AddTs received on AP - ignoring");
 		goto send_failure_addts_rsp;
 	}
 
 	pStaDs =
 		dph_get_hash_entry(mac, DPH_STA_HASH_INDEX_PEER,
-				   &psessionEntry->dph.dphHashTable);
+				   &pe_session->dph.dphHashTable);
 
 	if (pStaDs == NULL) {
 		pe_err("Cannot find AP context for addts req");
@@ -3466,10 +3466,10 @@
 		goto send_failure_addts_rsp;
 	}
 
-	if ((psessionEntry->limSmeState != eLIM_SME_ASSOCIATED_STATE) &&
-	    (psessionEntry->limSmeState != eLIM_SME_LINK_EST_STATE)) {
+	if ((pe_session->limSmeState != eLIM_SME_ASSOCIATED_STATE) &&
+	    (pe_session->limSmeState != eLIM_SME_LINK_EST_STATE)) {
 		pe_err("AddTs received in invalid LIMsme state (%d)",
-			psessionEntry->limSmeState);
+			pe_session->limSmeState);
 		goto send_failure_addts_rsp;
 	}
 
@@ -3482,7 +3482,7 @@
 		goto send_failure_addts_rsp;
 	}
 
-	sir_copy_mac_addr(peerMac, psessionEntry->bssId);
+	sir_copy_mac_addr(peerMac, pe_session->bssId);
 
 	/* save the addts request */
 	mac->lim.gLimAddtsSent = true;
@@ -3491,7 +3491,7 @@
 
 	/* ship out the message now */
 	lim_send_addts_req_action_frame(mac, peerMac, &pSirAddts->req,
-					psessionEntry);
+					pe_session);
 	pe_err("Sent ADDTS request");
 	/* start a timer to wait for the response */
 	if (pSirAddts->timeout)
@@ -3513,7 +3513,7 @@
 		goto send_failure_addts_rsp;
 	}
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_TIMER_ACTIVATE, psessionEntry->peSessionId,
+		       (mac, TRACE_CODE_TIMER_ACTIVATE, pe_session->peSessionId,
 		       eLIM_ADDTS_RSP_TIMER));
 
 	/* add the sessionId to the timer object */
@@ -3527,7 +3527,7 @@
 
 send_failure_addts_rsp:
 	lim_send_sme_addts_rsp(mac, pSirAddts->rspReqd, QDF_STATUS_E_FAILURE,
-			       psessionEntry, pSirAddts->req.tspec,
+			       pe_session, pSirAddts->req.tspec,
 			       smesessionId, smetransactionId);
 }
 
@@ -3538,7 +3538,7 @@
 	tSirMacTSInfo *pTsinfo;
 	tpSirDeltsReq pDeltsReq = (tpSirDeltsReq) pMsgBuf;
 	tpDphHashNode pStaDs = NULL;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint8_t sessionId;
 	uint32_t status = QDF_STATUS_SUCCESS;
 	uint8_t smesessionId;
@@ -3547,24 +3547,24 @@
 	lim_get_session_info(mac, (uint8_t *) pMsgBuf, &smesessionId,
 			     &smetransactionId);
 
-	psessionEntry = pe_find_session_by_bssid(mac,
+	pe_session = pe_find_session_by_bssid(mac,
 				pDeltsReq->bssid.bytes,
 				&sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session Does not exist for given bssId");
 		status = QDF_STATUS_E_FAILURE;
 		goto end;
 	}
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
-	lim_diag_event_report(mac, WLAN_PE_DIAG_DELTS_REQ_EVENT, psessionEntry, 0,
+	lim_diag_event_report(mac, WLAN_PE_DIAG_DELTS_REQ_EVENT, pe_session, 0,
 			      0);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 
 	if (QDF_STATUS_SUCCESS !=
-	    lim_validate_delts_req(mac, pDeltsReq, peerMacAddr, psessionEntry)) {
+	    lim_validate_delts_req(mac, pDeltsReq, peerMacAddr, pe_session)) {
 		pe_err("lim_validate_delts_req failed");
 		status = QDF_STATUS_E_FAILURE;
-		lim_send_sme_delts_rsp(mac, pDeltsReq, QDF_STATUS_E_FAILURE, psessionEntry,
+		lim_send_sme_delts_rsp(mac, pDeltsReq, QDF_STATUS_E_FAILURE, pe_session,
 				       smesessionId, smetransactionId);
 		return;
 	}
@@ -3576,7 +3576,7 @@
 	lim_send_delts_req_action_frame(mac, peerMacAddr,
 					pDeltsReq->req.wmeTspecPresent,
 					&pDeltsReq->req.tsinfo,
-					&pDeltsReq->req.tspec, psessionEntry);
+					&pDeltsReq->req.tspec, pe_session);
 
 	pTsinfo =
 		pDeltsReq->req.wmeTspecPresent ? &pDeltsReq->req.tspec.
@@ -3586,7 +3586,7 @@
 	 * dynamic UAPSD mask. The AC for this TSPEC to be deleted
 	 * is no longer trigger enabled or delivery enabled
 	 */
-	lim_set_tspec_uapsd_mask_per_session(mac, psessionEntry,
+	lim_set_tspec_uapsd_mask_per_session(mac, pe_session,
 					     pTsinfo, CLEAR_UAPSD_MASK);
 
 	/* We're deleting the TSPEC, so this particular AC is no longer
@@ -3598,28 +3598,28 @@
 	ac = upToAc(pTsinfo->traffic.userPrio);
 
 	if (pTsinfo->traffic.direction == SIR_MAC_DIRECTION_UPLINK) {
-		psessionEntry->gAcAdmitMask[SIR_MAC_DIRECTION_UPLINK] &=
+		pe_session->gAcAdmitMask[SIR_MAC_DIRECTION_UPLINK] &=
 			~(1 << ac);
 	} else if (pTsinfo->traffic.direction ==
 		   SIR_MAC_DIRECTION_DNLINK) {
-		psessionEntry->gAcAdmitMask[SIR_MAC_DIRECTION_DNLINK] &=
+		pe_session->gAcAdmitMask[SIR_MAC_DIRECTION_DNLINK] &=
 			~(1 << ac);
 	} else if (pTsinfo->traffic.direction ==
 		   SIR_MAC_DIRECTION_BIDIR) {
-		psessionEntry->gAcAdmitMask[SIR_MAC_DIRECTION_UPLINK] &=
+		pe_session->gAcAdmitMask[SIR_MAC_DIRECTION_UPLINK] &=
 			~(1 << ac);
-		psessionEntry->gAcAdmitMask[SIR_MAC_DIRECTION_DNLINK] &=
+		pe_session->gAcAdmitMask[SIR_MAC_DIRECTION_DNLINK] &=
 			~(1 << ac);
 	}
 
-	lim_set_active_edca_params(mac, psessionEntry->gLimEdcaParams,
-				   psessionEntry);
+	lim_set_active_edca_params(mac, pe_session->gLimEdcaParams,
+				   pe_session);
 
 	pStaDs =
 		dph_get_hash_entry(mac, DPH_STA_HASH_INDEX_PEER,
-				   &psessionEntry->dph.dphHashTable);
+				   &pe_session->dph.dphHashTable);
 	if (pStaDs != NULL) {
-		lim_send_edca_params(mac, psessionEntry->gLimEdcaParamsActive,
+		lim_send_edca_params(mac, pe_session->gLimEdcaParamsActive,
 				     pStaDs->bssId, false);
 		status = QDF_STATUS_SUCCESS;
 	} else {
@@ -3627,31 +3627,31 @@
 		status = QDF_STATUS_E_FAILURE;
 	}
 #ifdef FEATURE_WLAN_ESE
-	lim_send_sme_tsm_ie_ind(mac, psessionEntry, 0, 0, 0);
+	lim_send_sme_tsm_ie_ind(mac, pe_session, 0, 0, 0);
 #endif
 
 	/* send an sme response back */
 end:
-	lim_send_sme_delts_rsp(mac, pDeltsReq, QDF_STATUS_SUCCESS, psessionEntry,
+	lim_send_sme_delts_rsp(mac, pDeltsReq, QDF_STATUS_SUCCESS, pe_session,
 			       smesessionId, smetransactionId);
 }
 
 void lim_process_sme_addts_rsp_timeout(tpAniSirGlobal mac, uint32_t param)
 {
-	/* fetch the sessionEntry based on the sessionId */
-	struct pe_session *psessionEntry;
+	/* fetch the pe_session based on the sessionId */
+	struct pe_session *pe_session;
 
-	psessionEntry = pe_find_session_by_session_id(mac,
+	pe_session = pe_find_session_by_session_id(mac,
 				mac->lim.limTimers.gLimAddtsRspTimer.
 				sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session Does not exist for given sessionID");
 		return;
 	}
 
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
+	if (!LIM_IS_STA_ROLE(pe_session)) {
 		pe_warn("AddtsRspTimeout in non-Sta role (%d)",
-			GET_LIM_SYSTEM_ROLE(psessionEntry));
+			GET_LIM_SYSTEM_ROLE(pe_session));
 		mac->lim.gLimAddtsSent = false;
 		return;
 	}
@@ -3671,9 +3671,9 @@
 	mac->lim.gLimAddtsRspTimerCount++;
 
 	lim_send_sme_addts_rsp(mac, true, eSIR_SME_ADDTS_RSP_TIMEOUT,
-			       psessionEntry, mac->lim.gLimAddtsReq.req.tspec,
-			       psessionEntry->smeSessionId,
-			       psessionEntry->transactionId);
+			       pe_session, mac->lim.gLimAddtsReq.req.tspec,
+			       pe_session->smeSessionId,
+			       pe_session->transactionId);
 }
 
 #ifndef QCA_SUPPORT_CP_STATS
@@ -3866,13 +3866,13 @@
 
 void
 lim_send_vdev_restart(tpAniSirGlobal mac,
-		      struct pe_session *psessionEntry, uint8_t sessionId)
+		      struct pe_session *pe_session, uint8_t sessionId)
 {
 	tpHalHiddenSsidVdevRestart pHalHiddenSsidVdevRestart = NULL;
 	struct scheduler_msg msgQ = {0};
 	QDF_STATUS retCode = QDF_STATUS_SUCCESS;
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Invalid parameters");
 		return;
 	}
@@ -3882,9 +3882,9 @@
 	if (!pHalHiddenSsidVdevRestart)
 		return;
 
-	pHalHiddenSsidVdevRestart->ssidHidden = psessionEntry->ssidHidden;
+	pHalHiddenSsidVdevRestart->ssidHidden = pe_session->ssidHidden;
 	pHalHiddenSsidVdevRestart->sessionId = sessionId;
-	pHalHiddenSsidVdevRestart->pe_session_id = psessionEntry->peSessionId;
+	pHalHiddenSsidVdevRestart->pe_session_id = pe_session->peSessionId;
 
 	msgQ.type = WMA_HIDDEN_SSID_VDEV_RESTART;
 	msgQ.bodyptr = pHalHiddenSsidVdevRestart;
@@ -4069,7 +4069,7 @@
 static void __lim_process_sme_change_bi(tpAniSirGlobal mac, uint32_t *pMsgBuf)
 {
 	tpSirChangeBIParams pChangeBIParams;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint8_t sessionId = 0;
 	tUpdateBeaconParams beaconParams;
 
@@ -4083,18 +4083,18 @@
 	qdf_mem_zero(&beaconParams, sizeof(tUpdateBeaconParams));
 	pChangeBIParams = (tpSirChangeBIParams) pMsgBuf;
 
-	psessionEntry = pe_find_session_by_bssid(mac,
+	pe_session = pe_find_session_by_bssid(mac,
 				pChangeBIParams->bssid.bytes,
 				&sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session does not exist for given BSSID");
 		return;
 	}
 
-	/*Update sessionEntry Beacon Interval */
-	if (psessionEntry->beaconParams.beaconInterval !=
+	/*Update pe_session Beacon Interval */
+	if (pe_session->beaconParams.beaconInterval !=
 	    pChangeBIParams->beaconInterval) {
-		psessionEntry->beaconParams.beaconInterval =
+		pe_session->beaconParams.beaconInterval =
 			pChangeBIParams->beaconInterval;
 	}
 
@@ -4109,15 +4109,15 @@
 
 		if (false == mac->sap.SapDfsInfo.is_dfs_cac_timer_running) {
 			/* Update beacon */
-			sch_set_fixed_beacon_fields(mac, psessionEntry);
+			sch_set_fixed_beacon_fields(mac, pe_session);
 
-			beaconParams.bssIdx = psessionEntry->bssIdx;
+			beaconParams.bssIdx = pe_session->bssIdx;
 			/* Set change in beacon Interval */
 			beaconParams.beaconInterval =
 				pChangeBIParams->beaconInterval;
 			beaconParams.paramChangeBitmap =
 				PARAM_BCN_INTERVAL_CHANGED;
-			lim_send_beacon_params(mac, &beaconParams, psessionEntry);
+			lim_send_beacon_params(mac, &beaconParams, pe_session);
 		}
 	}
 
@@ -4129,7 +4129,7 @@
 					      uint32_t *pMsgBuf)
 {
 	tpSirSetHT2040Mode pSetHT2040Mode;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint8_t sessionId = 0;
 	struct scheduler_msg msg = {0};
 	tUpdateVHTOpMode *pHtOpMode = NULL;
@@ -4144,10 +4144,10 @@
 
 	pSetHT2040Mode = (tpSirSetHT2040Mode) pMsgBuf;
 
-	psessionEntry = pe_find_session_by_bssid(mac,
+	pe_session = pe_find_session_by_bssid(mac,
 				pSetHT2040Mode->bssid.bytes,
 				&sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_debug("Session does not exist for given BSSID");
 		lim_print_mac_addr(mac, pSetHT2040Mode->bssid.bytes, LOGD);
 		return;
@@ -4155,28 +4155,28 @@
 
 	pe_debug("Update session entry for cbMod=%d",
 		pSetHT2040Mode->cbMode);
-	/*Update sessionEntry HT related fields */
+	/*Update pe_session HT related fields */
 	switch (pSetHT2040Mode->cbMode) {
 	case PHY_SINGLE_CHANNEL_CENTERED:
-		psessionEntry->htSecondaryChannelOffset =
+		pe_session->htSecondaryChannelOffset =
 			PHY_SINGLE_CHANNEL_CENTERED;
-		psessionEntry->htRecommendedTxWidthSet = 0;
+		pe_session->htRecommendedTxWidthSet = 0;
 		if (pSetHT2040Mode->obssEnabled)
-			psessionEntry->htSupportedChannelWidthSet
+			pe_session->htSupportedChannelWidthSet
 					= eHT_CHANNEL_WIDTH_40MHZ;
 		else
-			psessionEntry->htSupportedChannelWidthSet
+			pe_session->htSupportedChannelWidthSet
 					= eHT_CHANNEL_WIDTH_20MHZ;
 		break;
 	case PHY_DOUBLE_CHANNEL_LOW_PRIMARY:
-		psessionEntry->htSecondaryChannelOffset =
+		pe_session->htSecondaryChannelOffset =
 			PHY_DOUBLE_CHANNEL_LOW_PRIMARY;
-		psessionEntry->htRecommendedTxWidthSet = 1;
+		pe_session->htRecommendedTxWidthSet = 1;
 		break;
 	case PHY_DOUBLE_CHANNEL_HIGH_PRIMARY:
-		psessionEntry->htSecondaryChannelOffset =
+		pe_session->htSecondaryChannelOffset =
 			PHY_DOUBLE_CHANNEL_HIGH_PRIMARY;
-		psessionEntry->htRecommendedTxWidthSet = 1;
+		pe_session->htRecommendedTxWidthSet = 1;
 		break;
 	default:
 		pe_err("Invalid cbMode");
@@ -4184,13 +4184,13 @@
 	}
 
 	/* Update beacon */
-	sch_set_fixed_beacon_fields(mac, psessionEntry);
-	lim_send_beacon_ind(mac, psessionEntry, REASON_SET_HT2040);
+	sch_set_fixed_beacon_fields(mac, pe_session);
+	lim_send_beacon_ind(mac, pe_session, REASON_SET_HT2040);
 
 	/* update OP Mode for each associated peer */
-	for (staId = 0; staId < psessionEntry->dph.dphHashTable.size; staId++) {
+	for (staId = 0; staId < pe_session->dph.dphHashTable.size; staId++) {
 		pStaDs = dph_get_hash_entry(mac, staId,
-				&psessionEntry->dph.dphHashTable);
+				&pe_session->dph.dphHashTable);
 		if (NULL == pStaDs)
 			continue;
 
@@ -4199,7 +4199,7 @@
 			if (!pHtOpMode)
 				return;
 			pHtOpMode->opMode =
-				(psessionEntry->htSecondaryChannelOffset ==
+				(pe_session->htSecondaryChannelOffset ==
 				 PHY_SINGLE_CHANNEL_CENTERED) ?
 				eHT_CHANNEL_WIDTH_20MHZ : eHT_CHANNEL_WIDTH_40MHZ;
 			pHtOpMode->staId = staId;
@@ -4274,18 +4274,18 @@
  * NOTE:
  *
  * @param txPower txPower to be set.
- * @param pSessionEntry session entry.
+ * @param pe_session session entry.
  * @return None
  */
 QDF_STATUS
 lim_send_set_max_tx_power_req(tpAniSirGlobal mac, int8_t txPower,
-			      struct pe_session *pSessionEntry)
+			      struct pe_session *pe_session)
 {
 	tpMaxTxPowerParams pMaxTxParams = NULL;
 	QDF_STATUS retCode = QDF_STATUS_SUCCESS;
 	struct scheduler_msg msgQ = {0};
 
-	if (pSessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Invalid parameters");
 		return QDF_STATUS_E_FAILURE;
 	}
@@ -4294,17 +4294,17 @@
 	if (!pMaxTxParams)
 		return QDF_STATUS_E_NOMEM;
 	pMaxTxParams->power = txPower;
-	qdf_mem_copy(pMaxTxParams->bssId.bytes, pSessionEntry->bssId,
+	qdf_mem_copy(pMaxTxParams->bssId.bytes, pe_session->bssId,
 		     QDF_MAC_ADDR_SIZE);
 	qdf_mem_copy(pMaxTxParams->selfStaMacAddr.bytes,
-			pSessionEntry->selfMacAddr,
+			pe_session->selfMacAddr,
 			QDF_MAC_ADDR_SIZE);
 
 	msgQ.type = WMA_SET_MAX_TX_POWER_REQ;
 	msgQ.bodyptr = pMaxTxParams;
 	msgQ.bodyval = 0;
 	pe_debug("Post WMA_SET_MAX_TX_POWER_REQ to WMA");
-	MTRACE(mac_trace_msg_tx(mac, pSessionEntry->peSessionId, msgQ.type));
+	MTRACE(mac_trace_msg_tx(mac, pe_session->peSessionId, msgQ.type));
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
 		pe_err("wma_post_ctrl_msg() failed");
@@ -4408,7 +4408,7 @@
 __lim_process_sme_reset_ap_caps_change(tpAniSirGlobal mac, uint32_t *pMsgBuf)
 {
 	tpSirResetAPCapsChange pResetCapsChange;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint8_t sessionId = 0;
 
 	if (pMsgBuf == NULL) {
@@ -4417,15 +4417,15 @@
 	}
 
 	pResetCapsChange = (tpSirResetAPCapsChange) pMsgBuf;
-	psessionEntry =
+	pe_session =
 		pe_find_session_by_bssid(mac, pResetCapsChange->bssId.bytes,
 					 &sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session does not exist for given BSSID");
 		return;
 	}
 
-	psessionEntry->limSentCapsChangeNtf = false;
+	pe_session->limSentCapsChangeNtf = false;
 	return;
 }
 
@@ -5161,7 +5161,7 @@
 static void lim_process_sme_start_beacon_req(tpAniSirGlobal mac, uint32_t *pMsg)
 {
 	tpSirStartBeaconIndication pBeaconStartInd;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint8_t sessionId;      /* PE sessionID */
 
 	if (pMsg == NULL) {
@@ -5170,10 +5170,10 @@
 	}
 
 	pBeaconStartInd = (tpSirStartBeaconIndication) pMsg;
-	psessionEntry = pe_find_session_by_bssid(mac,
+	pe_session = pe_find_session_by_bssid(mac,
 				pBeaconStartInd->bssid,
 				&sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		lim_print_mac_addr(mac, pBeaconStartInd->bssid, LOGE);
 		pe_err("Session does not exist for given bssId");
 		return;
@@ -5188,14 +5188,14 @@
 		 * On a DFS Channel LIM does not start beacon
 		 * Tx right after the WMA_ADD_BSS_RSP.
 		 */
-		lim_apply_configuration(mac, psessionEntry);
+		lim_apply_configuration(mac, pe_session);
 		QDF_TRACE(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
 			  FL("Start Beacon with ssid %s Ch %d"),
-			  psessionEntry->ssId.ssId,
-			  psessionEntry->currentOperChannel);
-		lim_send_beacon(mac, psessionEntry);
-		lim_enable_obss_detection_config(mac, psessionEntry);
-		lim_send_obss_color_collision_cfg(mac, psessionEntry,
+			  pe_session->ssId.ssId,
+			  pe_session->currentOperChannel);
+		lim_send_beacon(mac, pe_session);
+		lim_enable_obss_detection_config(mac, pe_session);
+		lim_send_obss_color_collision_cfg(mac, pe_session,
 					OBSS_COLOR_COLLISION_DETECTION);
 	} else {
 		pe_err("Invalid Beacon Start Indication");
diff --git a/core/mac/src/pe/lim/lim_process_tdls.c b/core/mac/src/pe/lim/lim_process_tdls.c
index d125c37..d984c8d 100644
--- a/core/mac/src/pe/lim/lim_process_tdls.c
+++ b/core/mac/src/pe/lim/lim_process_tdls.c
@@ -86,7 +86,7 @@
 #endif
 
 static QDF_STATUS lim_tdls_setup_add_sta(tpAniSirGlobal mac,
-		tSirTdlsAddStaReq * pAddStaReq, struct pe_session *psessionEntry);
+		tSirTdlsAddStaReq * pAddStaReq, struct pe_session *pe_session);
 
 /*
  * TDLS data frames will go out/come in as non-qos data.
@@ -170,10 +170,10 @@
 #define WNI_CFG_TDLS_LINK_SETUP_CNF_TIMEOUT         (200)
 #endif
 
-#define IS_QOS_ENABLED(psessionEntry) ((((psessionEntry)->limQosEnabled) && \
-					SIR_MAC_GET_QOS((psessionEntry)->limCurrentBssCaps)) ||	\
-				       (((psessionEntry)->limWmeEnabled) && \
-					LIM_BSS_CAPS_GET(WME, (psessionEntry)->limCurrentBssQosCaps)))
+#define IS_QOS_ENABLED(pe_session) ((((pe_session)->limQosEnabled) && \
+					SIR_MAC_GET_QOS((pe_session)->limCurrentBssCaps)) ||	\
+				       (((pe_session)->limWmeEnabled) && \
+					LIM_BSS_CAPS_GET(WME, (pe_session)->limCurrentBssQosCaps)))
 
 #define TID_AC_VI                  4
 #define TID_AC_BK                  1
@@ -198,16 +198,16 @@
 /*
  * initialize TDLS setup list and related data structures.
  */
-void lim_init_tdls_data(tpAniSirGlobal mac, struct pe_session *pSessionEntry)
+void lim_init_tdls_data(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
-	lim_init_peer_idxpool(mac, pSessionEntry);
+	lim_init_peer_idxpool(mac, pe_session);
 
 	return;
 }
 
 static void populate_dot11f_tdls_offchannel_params(
 				tpAniSirGlobal mac,
-				struct pe_session *psessionEntry,
+				struct pe_session *pe_session,
 				tDot11fIESuppChannels *suppChannels,
 				tDot11fIESuppOperatingClasses *suppOperClasses)
 {
@@ -233,7 +233,7 @@
 		return;
 	}
 
-	if (IS_5G_CH(psessionEntry->currentOperChannel))
+	if (IS_5G_CH(pe_session->currentOperChannel))
 		band = BAND_5G;
 	else
 		band = BAND_2G;
@@ -271,7 +271,7 @@
 	suppChannels->present = 1;
 
 	/* find channel offset and get op class for current operating channel */
-	switch (psessionEntry->htSecondaryChannelOffset) {
+	switch (pe_session->htSecondaryChannelOffset) {
 	case PHY_SINGLE_CHANNEL_CENTERED:
 		chanOffset = BW20;
 		break;
@@ -291,13 +291,13 @@
 
 	op_class = wlan_reg_dmn_get_opclass_from_channel(
 		mac->scan.countryCodeCurrent,
-		psessionEntry->currentOperChannel,
+		pe_session->currentOperChannel,
 		chanOffset);
 
 	pe_debug("countryCodeCurrent: %s, currentOperChannel: %d, htSecondaryChannelOffset: %d, chanOffset: %d op class: %d",
 			mac->scan.countryCodeCurrent,
-			psessionEntry->currentOperChannel,
-			psessionEntry->htSecondaryChannelOffset,
+			pe_session->currentOperChannel,
+			pe_session->htSecondaryChannelOffset,
 			chanOffset, op_class);
 	suppOperClasses->present = 1;
 	suppOperClasses->classes[0] = op_class;
@@ -319,7 +319,7 @@
  */
 
 static void populate_dot11f_link_iden(tpAniSirGlobal mac,
-				      struct pe_session *psessionEntry,
+				      struct pe_session *pe_session,
 				      tDot11fIELinkIdentifier *linkIden,
 				      struct qdf_mac_addr peer_mac,
 				      uint8_t reqType)
@@ -332,10 +332,10 @@
 	: ((respStaAddr = linkIden->InitStaAddr),
 	   (initStaAddr = linkIden->RespStaAddr));
 	qdf_mem_copy((uint8_t *) linkIden->bssid,
-		     (uint8_t *) psessionEntry->bssId, QDF_MAC_ADDR_SIZE);
+		     (uint8_t *) pe_session->bssId, QDF_MAC_ADDR_SIZE);
 
 	qdf_mem_copy((uint8_t *) initStaAddr,
-		     psessionEntry->selfMacAddr, QDF_MAC_ADDR_SIZE);
+		     pe_session->selfMacAddr, QDF_MAC_ADDR_SIZE);
 
 	qdf_mem_copy((uint8_t *) respStaAddr, (uint8_t *) peer_mac.bytes,
 		     QDF_MAC_ADDR_SIZE);
@@ -346,7 +346,7 @@
 }
 
 static void populate_dot11f_tdls_ext_capability(tpAniSirGlobal mac,
-						struct pe_session *psessionEntry,
+						struct pe_session *pe_session,
 						tDot11fIEExtCap *extCapability)
 {
 	struct s_ext_cap *p_ext_cap = (struct s_ext_cap *)extCapability->bytes;
@@ -360,7 +360,7 @@
 	 * IE in assoc/re-assoc response.
 	 */
 	if ((1 == mac->lim.gLimTDLSOffChannelEnabled) &&
-	    (!psessionEntry->tdls_chan_swit_prohibited)) {
+	    (!pe_session->tdls_chan_swit_prohibited)) {
 		p_ext_cap->tdls_channel_switching = 1;
 		p_ext_cap->tdls_chan_swit_prohibited = 0;
 	} else {
@@ -386,7 +386,7 @@
 					      tDot11fIELinkIdentifier *link_iden,
 					      uint8_t tdlsLinkType, uint8_t reqType,
 					      uint8_t tid,
-					      struct pe_session *psessionEntry)
+					      struct pe_session *pe_session)
 {
 	tpSirMacDataHdr3a pMacHdr;
 	uint32_t header_offset = 0;
@@ -419,12 +419,12 @@
 	pMacHdr->fc.type = SIR_MAC_DATA_FRAME;
 
 	sta_ds = dph_lookup_hash_entry(mac, peerMac, &aid,
-					&psessionEntry->dph.dphHashTable);
+					&pe_session->dph.dphHashTable);
 	if (sta_ds)
 		qos_mode = sta_ds->qosMode;
 
 	pMacHdr->fc.subType =
-		((IS_QOS_ENABLED(psessionEntry) &&
+		((IS_QOS_ENABLED(pe_session) &&
 		(tdlsLinkType == TDLS_LINK_AP)) ||
 		((tdlsLinkType == TDLS_LINK_DIRECT) && qos_mode))
 		? SIR_MAC_DATA_QOS_DATA : SIR_MAC_DATA_DATA;
@@ -434,7 +434,7 @@
 	 */
 	pMacHdr->fc.toDS = toDs;
 	pMacHdr->fc.powerMgmt = 0;
-	pMacHdr->fc.wep = (psessionEntry->encryptType == eSIR_ED_NONE) ? 0 : 1;
+	pMacHdr->fc.wep = (pe_session->encryptType == eSIR_ED_NONE) ? 0 : 1;
 
 	qdf_mem_copy((uint8_t *) pMacHdr->addr1,
 		     (uint8_t *) addr1, sizeof(tSirMacAddr));
@@ -513,7 +513,7 @@
 static QDF_STATUS lim_send_tdls_dis_req_frame(tpAniSirGlobal mac,
 						 struct qdf_mac_addr peer_mac,
 						 uint8_t dialog,
-						 struct pe_session *psessionEntry,
+						 struct pe_session *pe_session,
 						 enum wifi_traffic_ac ac)
 {
 	tDot11fTDLSDisReq tdlsDisReq;
@@ -530,11 +530,11 @@
 #endif
 	uint8_t smeSessionId = 0;
 
-	if (NULL == psessionEntry) {
-		pe_err("psessionEntry is NULL");
+	if (NULL == pe_session) {
+		pe_err("pe_session is NULL");
 		return QDF_STATUS_E_FAILURE;
 	}
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 	/*
 	 * The scheme here is to fill out a 'tDot11fProbeRequest' structure
 	 * and then hand it off to 'dot11f_pack_probe_request' (for
@@ -551,7 +551,7 @@
 
 	size = sizeof(tSirMacAddr);
 
-	populate_dot11f_link_iden(mac, psessionEntry, &tdlsDisReq.LinkIdentifier,
+	populate_dot11f_link_iden(mac, pe_session, &tdlsDisReq.LinkIdentifier,
 				  peer_mac, TDLS_INITIATOR);
 
 	/*
@@ -574,7 +574,7 @@
 	 * 8 bytes of RFC 1042 header
 	 */
 
-	nBytes = nPayload + ((IS_QOS_ENABLED(psessionEntry))
+	nBytes = nPayload + ((IS_QOS_ENABLED(pe_session))
 			     ? sizeof(tSirMacDataHdr3a) :
 			     sizeof(tSirMacMgmtHdr))
 		 + sizeof(eth_890d_header)
@@ -621,7 +621,7 @@
 			      LINK_IDEN_ADDR_OFFSET(tdlsDisReq), TDLS_LINK_AP,
 			      TDLS_INITIATOR,
 			      (ac == WIFI_AC_VI) ? TID_AC_VI : TID_AC_BK,
-			      psessionEntry);
+			      pe_session);
 
 	status = dot11f_pack_tdls_dis_req(mac, &tdlsDisReq, pFrame
 					  + header_offset, nPayload, &nPayload);
@@ -662,9 +662,9 @@
 		lim_trace_tdls_action_string(SIR_MAC_TDLS_DIS_REQ),
 		MAC_ADDR_ARRAY(peer_mac.bytes));
 
-	mac->lim.tdls_frm_session_id = psessionEntry->smeSessionId;
+	mac->lim.tdls_frm_session_id = pe_session->smeSessionId;
 	lim_diag_mgmt_tx_event_report(mac, (tpSirMacMgmtHdr) pFrame,
-				      psessionEntry, QDF_STATUS_SUCCESS,
+				      pe_session, QDF_STATUS_SUCCESS,
 				      QDF_STATUS_SUCCESS);
 	qdf_status = wma_tx_frameWithTxComplete(mac, pPacket,
 					(uint16_t) nBytes,
@@ -695,7 +695,7 @@
 					    uint32_t selfDot11Mode,
 					    tDot11fIEHTCaps *htCap,
 					    tDot11fIEVHTCaps *vhtCap,
-					    struct pe_session *psessionEntry)
+					    struct pe_session *pe_session)
 {
 	uint8_t nss;
 	qdf_size_t val_len;
@@ -703,7 +703,7 @@
 
 	vht_cap_info = mac->mlme_cfg->vht_caps.vht_cap_info;
 
-	if (IS_5G_CH(psessionEntry->currentOperChannel))
+	if (IS_5G_CH(pe_session->currentOperChannel))
 		nss = mac->vdev_type_nss_5g.tdls;
 	else
 		nss = mac->vdev_type_nss_2g.tdls;
@@ -740,13 +740,13 @@
 	}
 	pe_debug("HT present: %hu, Chan Width: %hu",
 		htCap->present, htCap->supportedChannelWidthSet);
-	if (((psessionEntry->currentOperChannel <= SIR_11B_CHANNEL_END) &&
+	if (((pe_session->currentOperChannel <= SIR_11B_CHANNEL_END) &&
 	     mac->mlme_cfg->vht_caps.vht_cap_info.b24ghz_band) ||
-	    (psessionEntry->currentOperChannel >= SIR_11B_CHANNEL_END)) {
+	    (pe_session->currentOperChannel >= SIR_11B_CHANNEL_END)) {
 		if (IS_DOT11_MODE_VHT(selfDot11Mode) &&
 		    IS_FEATURE_SUPPORTED_BY_FW(DOT11AC)) {
 			/* Include VHT Capability IE */
-			populate_dot11f_vht_caps(mac, psessionEntry, vhtCap);
+			populate_dot11f_vht_caps(mac, pe_session, vhtCap);
 
 			/*
 			 * Set to 0 if the TDLS STA does not support either 160
@@ -795,7 +795,7 @@
 static QDF_STATUS lim_send_tdls_dis_rsp_frame(tpAniSirGlobal mac,
 						 struct qdf_mac_addr peer_mac,
 						 uint8_t dialog,
-						 struct pe_session *psessionEntry,
+						 struct pe_session *pe_session,
 						 uint8_t *addIe,
 						 uint16_t addIeLen)
 {
@@ -815,11 +815,11 @@
 /*  uint32_t tdlsChannelBondingMode; */
 	uint8_t smeSessionId = 0;
 
-	if (NULL == psessionEntry) {
-		pe_err("psessionEntry is NULL");
+	if (NULL == pe_session) {
+		pe_err("pe_session is NULL");
 		return QDF_STATUS_E_FAILURE;
 	}
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 
 	/*
 	 * The scheme here is to fill out a 'tDot11fProbeRequest' structure
@@ -835,11 +835,11 @@
 	tdlsDisRsp.Action.action = SIR_MAC_TDLS_DIS_RSP;
 	tdlsDisRsp.DialogToken.token = dialog;
 
-	populate_dot11f_link_iden(mac, psessionEntry,
+	populate_dot11f_link_iden(mac, pe_session,
 				  &tdlsDisRsp.LinkIdentifier,
 				  peer_mac, TDLS_RESPONDER);
 
-	if (cfg_get_capability_info(mac, &caps, psessionEntry)
+	if (cfg_get_capability_info(mac, &caps, pe_session)
 		!= QDF_STATUS_SUCCESS) {
 		/*
 		 * Could not get Capabilities value
@@ -853,27 +853,27 @@
 	if (QDF_STATUS_E_FAILURE == populate_dot11f_rates_tdls(mac,
 					&tdlsDisRsp.SuppRates,
 					&tdlsDisRsp.ExtSuppRates,
-					psessionEntry->currentOperChannel))
+					pe_session->currentOperChannel))
 		pe_err("could not populate supported data rates");
 
 	/* populate extended capability IE */
 	populate_dot11f_tdls_ext_capability(mac,
-					    psessionEntry,
+					    pe_session,
 					    &tdlsDisRsp.ExtCap);
 
 	wlan_cfg_get_int(mac, WNI_CFG_DOT11_MODE, &selfDot11Mode);
 
 	/* Populate HT/VHT Capabilities */
 	populate_dot11f_tdls_ht_vht_cap(mac, selfDot11Mode, &tdlsDisRsp.HTCaps,
-					&tdlsDisRsp.VHTCaps, psessionEntry);
+					&tdlsDisRsp.VHTCaps, pe_session);
 
 	/* Populate TDLS offchannel param only if offchannel is enabled
 	 * and TDLS Channel Switching is not prohibited by AP in ExtCap
 	 * IE in assoc/re-assoc response.
 	 */
 	if ((1 == mac->lim.gLimTDLSOffChannelEnabled) &&
-	    (!psessionEntry->tdls_chan_swit_prohibited)) {
-		populate_dot11f_tdls_offchannel_params(mac, psessionEntry,
+	    (!pe_session->tdls_chan_swit_prohibited)) {
+		populate_dot11f_tdls_offchannel_params(mac, pe_session,
 						       &tdlsDisRsp.SuppChannels,
 						       &tdlsDisRsp.
 						       SuppOperatingClasses);
@@ -884,7 +884,7 @@
 	} else {
 		pe_debug("TDLS offchan not enabled, or channel switch prohibited by AP, gLimTDLSOffChannelEnabled: %d tdls_chan_swit_prohibited: %d",
 			mac->lim.gLimTDLSOffChannelEnabled,
-			psessionEntry->tdls_chan_swit_prohibited);
+			pe_session->tdls_chan_swit_prohibited);
 	}
 	/*
 	 * now we pack it.  First, how much space are we going to need?
@@ -929,7 +929,7 @@
 
 	lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
 				SIR_MAC_MGMT_ACTION, peer_mac.bytes,
-				psessionEntry->selfMacAddr);
+				pe_session->selfMacAddr);
 
 	{
 		tpSirMacMgmtHdr pMacHdr;
@@ -937,7 +937,7 @@
 		pMacHdr = (tpSirMacMgmtHdr) pFrame;
 		pMacHdr->fc.toDS = ANI_TXDIR_IBSS;
 		pMacHdr->fc.powerMgmt = 0;
-		sir_copy_mac_addr(pMacHdr->bssId, psessionEntry->bssId);
+		sir_copy_mac_addr(pMacHdr->bssId, pe_session->bssId);
 	}
 
 	status = dot11f_pack_tdls_dis_rsp(mac, &tdlsDisRsp, pFrame +
@@ -964,9 +964,9 @@
 		lim_trace_tdls_action_string(SIR_MAC_TDLS_DIS_RSP),
 		MAC_ADDR_ARRAY(peer_mac.bytes));
 
-	mac->lim.tdls_frm_session_id = psessionEntry->smeSessionId;
+	mac->lim.tdls_frm_session_id = pe_session->smeSessionId;
 	lim_diag_mgmt_tx_event_report(mac, (tpSirMacMgmtHdr) pFrame,
-				      psessionEntry, QDF_STATUS_SUCCESS,
+				      pe_session, QDF_STATUS_SUCCESS,
 				      QDF_STATUS_SUCCESS);
 	/*
 	 * Transmit Discovery response and watch if this is delivered to
@@ -1002,11 +1002,11 @@
 static void populate_dotf_tdls_vht_aid(tpAniSirGlobal mac, uint32_t selfDot11Mode,
 				       struct qdf_mac_addr peerMac,
 				       tDot11fIEAID *Aid,
-				       struct pe_session *psessionEntry)
+				       struct pe_session *pe_session)
 {
-	if (((psessionEntry->currentOperChannel <= SIR_11B_CHANNEL_END) &&
+	if (((pe_session->currentOperChannel <= SIR_11B_CHANNEL_END) &&
 	     mac->mlme_cfg->vht_caps.vht_cap_info.b24ghz_band) ||
-	    (psessionEntry->currentOperChannel >= SIR_11B_CHANNEL_END)) {
+	    (pe_session->currentOperChannel >= SIR_11B_CHANNEL_END)) {
 		if (IS_DOT11_MODE_VHT(selfDot11Mode) &&
 		    IS_FEATURE_SUPPORTED_BY_FW(DOT11AC)) {
 
@@ -1015,7 +1015,7 @@
 
 			pStaDs =
 				dph_lookup_hash_entry(mac, peerMac.bytes, &aid,
-						      &psessionEntry->dph.
+						      &pe_session->dph.
 						      dphHashTable);
 			if (NULL != pStaDs) {
 				Aid->present = 1;
@@ -1108,7 +1108,7 @@
 QDF_STATUS lim_send_tdls_link_setup_req_frame(tpAniSirGlobal mac,
 						 struct qdf_mac_addr peer_mac,
 						 uint8_t dialog,
-						 struct pe_session *psessionEntry,
+						 struct pe_session *pe_session,
 						 uint8_t *addIe,
 						 uint16_t addIeLen,
 						 enum wifi_traffic_ac ac)
@@ -1137,18 +1137,18 @@
 	 * and then hand it off to 'dot11f_pack_probe_request' (for
 	 * serialization).  We start by zero-initializing the structure:
 	 */
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 
 	qdf_mem_set((uint8_t *) &tdlsSetupReq, sizeof(tDot11fTDLSSetupReq), 0);
 	tdlsSetupReq.Category.category = SIR_MAC_ACTION_TDLS;
 	tdlsSetupReq.Action.action = SIR_MAC_TDLS_SETUP_REQ;
 	tdlsSetupReq.DialogToken.token = dialog;
 
-	populate_dot11f_link_iden(mac, psessionEntry,
+	populate_dot11f_link_iden(mac, pe_session,
 				  &tdlsSetupReq.LinkIdentifier, peer_mac,
 				  TDLS_INITIATOR);
 
-	if (cfg_get_capability_info(mac, &caps, psessionEntry) != QDF_STATUS_SUCCESS) {
+	if (cfg_get_capability_info(mac, &caps, pe_session) != QDF_STATUS_SUCCESS) {
 		/*
 		 * Could not get Capabilities value
 		 * from CFG. Log error.
@@ -1161,12 +1161,12 @@
 	if (QDF_STATUS_E_FAILURE == populate_dot11f_rates_tdls(mac,
 					&tdlsSetupReq.SuppRates,
 					&tdlsSetupReq.ExtSuppRates,
-					psessionEntry->currentOperChannel))
+					pe_session->currentOperChannel))
 		pe_err("could not populate supported data rates");
 
 	/* Populate extended capability IE */
 	populate_dot11f_tdls_ext_capability(mac,
-					    psessionEntry,
+					    pe_session,
 					    &tdlsSetupReq.ExtCap);
 
 	if (1 == mac->lim.gLimTDLSWmmMode) {
@@ -1226,19 +1226,19 @@
 
 	/* Populate HT/VHT Capabilities */
 	populate_dot11f_tdls_ht_vht_cap(mac, selfDot11Mode, &tdlsSetupReq.HTCaps,
-					&tdlsSetupReq.VHTCaps, psessionEntry);
+					&tdlsSetupReq.VHTCaps, pe_session);
 
 	/* Populate AID */
 	populate_dotf_tdls_vht_aid(mac, selfDot11Mode, peer_mac,
-				   &tdlsSetupReq.AID, psessionEntry);
+				   &tdlsSetupReq.AID, pe_session);
 
 	/* Populate TDLS offchannel param only if offchannel is enabled
 	 * and TDLS Channel Switching is not prohibited by AP in ExtCap
 	 * IE in assoc/re-assoc response.
 	 */
 	if ((1 == mac->lim.gLimTDLSOffChannelEnabled) &&
-	    (!psessionEntry->tdls_chan_swit_prohibited)) {
-		populate_dot11f_tdls_offchannel_params(mac, psessionEntry,
+	    (!pe_session->tdls_chan_swit_prohibited)) {
+		populate_dot11f_tdls_offchannel_params(mac, pe_session,
 						     &tdlsSetupReq.SuppChannels,
 						     &tdlsSetupReq.
 						     SuppOperatingClasses);
@@ -1249,7 +1249,7 @@
 	} else {
 		pe_debug("TDLS offchan not enabled, or channel switch prohibited by AP, gLimTDLSOffChannelEnabled: %d tdls_chan_swit_prohibited: %d",
 			mac->lim.gLimTDLSOffChannelEnabled,
-			psessionEntry->tdls_chan_swit_prohibited);
+			pe_session->tdls_chan_swit_prohibited);
 	}
 	/*
 	 * now we pack it.  First, how much space are we going to need?
@@ -1272,7 +1272,7 @@
 	 * 8 bytes of RFC 1042 header
 	 */
 
-	nBytes = nPayload + ((IS_QOS_ENABLED(psessionEntry))
+	nBytes = nPayload + ((IS_QOS_ENABLED(pe_session))
 			     ? sizeof(tSirMacDataHdr3a) :
 			     sizeof(tSirMacMgmtHdr))
 		 + sizeof(eth_890d_header)
@@ -1301,7 +1301,7 @@
 			LINK_IDEN_ADDR_OFFSET(tdlsSetupReq),
 			TDLS_LINK_AP, TDLS_INITIATOR,
 			(ac == WIFI_AC_VI) ? TID_AC_VI : TID_AC_BK,
-			psessionEntry);
+			pe_session);
 
 	pe_debug("SupportedChnlWidth: %x rxMCSMap: %x rxMCSMap: %x txSupDataRate: %x",
 		tdlsSetupReq.VHTCaps.supportedChannelWidthSet,
@@ -1337,9 +1337,9 @@
 		lim_trace_tdls_action_string(SIR_MAC_TDLS_SETUP_REQ),
 		MAC_ADDR_ARRAY(peer_mac.bytes));
 
-	mac->lim.tdls_frm_session_id = psessionEntry->smeSessionId;
+	mac->lim.tdls_frm_session_id = pe_session->smeSessionId;
 	lim_diag_mgmt_tx_event_report(mac, (tpSirMacMgmtHdr) pFrame,
-				      psessionEntry, QDF_STATUS_SUCCESS,
+				      pe_session, QDF_STATUS_SUCCESS,
 				      QDF_STATUS_SUCCESS);
 
 	qdf_status = wma_tx_frame_with_tx_complete_send(mac, pPacket,
@@ -1366,7 +1366,7 @@
 					   struct qdf_mac_addr peer_mac,
 					   uint16_t reason,
 					   uint8_t responder,
-					   struct pe_session *psessionEntry,
+					   struct pe_session *pe_session,
 					   uint8_t *addIe, uint16_t addIeLen,
 					   enum wifi_traffic_ac ac)
 {
@@ -1387,11 +1387,11 @@
 	uint8_t qos_mode = 0;
 	uint8_t tdls_link_type;
 
-	if (NULL == psessionEntry) {
-		pe_err("psessionEntry is NULL");
+	if (NULL == pe_session) {
+		pe_err("pe_session is NULL");
 		return QDF_STATUS_E_FAILURE;
 	}
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 	/*
 	 * The scheme here is to fill out a 'tDot11fProbeRequest' structure
 	 * and then hand it off to 'dot11f_pack_probe_request' (for
@@ -1402,7 +1402,7 @@
 	teardown.Action.action = SIR_MAC_TDLS_TEARDOWN;
 	teardown.Reason.code = reason;
 
-	populate_dot11f_link_iden(mac, psessionEntry, &teardown.LinkIdentifier,
+	populate_dot11f_link_iden(mac, pe_session, &teardown.LinkIdentifier,
 				  peer_mac,
 				  (responder ==
 				   true) ? TDLS_RESPONDER : TDLS_INITIATOR);
@@ -1426,13 +1426,13 @@
 	 * 89-0d.
 	 * 8 bytes of RFC 1042 header
 	 */
-	sta_ds = dph_lookup_hash_entry(mac, psessionEntry->bssId, &aid,
-					&psessionEntry->dph.dphHashTable);
+	sta_ds = dph_lookup_hash_entry(mac, pe_session->bssId, &aid,
+					&pe_session->dph.dphHashTable);
 	if (sta_ds)
 		qos_mode = sta_ds->qosMode;
 	tdls_link_type = (reason == eSIR_MAC_TDLS_TEARDOWN_PEER_UNREACHABLE)
 				? TDLS_LINK_AP : TDLS_LINK_DIRECT;
-	nBytes = nPayload + (((IS_QOS_ENABLED(psessionEntry) &&
+	nBytes = nPayload + (((IS_QOS_ENABLED(pe_session) &&
 			     (tdls_link_type == TDLS_LINK_AP)) ||
 			     ((tdls_link_type == TDLS_LINK_DIRECT) && qos_mode))
 			     ? sizeof(tSirMacDataHdr3a) :
@@ -1482,7 +1482,7 @@
 			TDLS_LINK_AP : TDLS_LINK_DIRECT,
 			(responder == true) ? TDLS_RESPONDER : TDLS_INITIATOR,
 			(ac == WIFI_AC_VI) ? TID_AC_VI : TID_AC_BK,
-			psessionEntry);
+			pe_session);
 
 	status = dot11f_pack_tdls_teardown(mac, &teardown, pFrame
 					   + header_offset, nPayload, &nPayload);
@@ -1530,9 +1530,9 @@
 		    "DIRECT"),
 		MAC_ADDR_ARRAY(peer_mac.bytes));
 
-	mac->lim.tdls_frm_session_id = psessionEntry->smeSessionId;
+	mac->lim.tdls_frm_session_id = pe_session->smeSessionId;
 	lim_diag_mgmt_tx_event_report(mac, (tpSirMacMgmtHdr) pFrame,
-				      psessionEntry, QDF_STATUS_SUCCESS,
+				      pe_session, QDF_STATUS_SUCCESS,
 				      QDF_STATUS_SUCCESS);
 
 	qdf_status = wma_tx_frame_with_tx_complete_send(mac, pPacket,
@@ -1559,7 +1559,7 @@
 static QDF_STATUS lim_send_tdls_setup_rsp_frame(tpAniSirGlobal mac,
 						   struct qdf_mac_addr peer_mac,
 						   uint8_t dialog,
-						   struct pe_session *psessionEntry,
+						   struct pe_session *pe_session,
 						   etdlsLinkSetupStatus setupStatus,
 						   uint8_t *addIe,
 						   uint16_t addIeLen,
@@ -1583,11 +1583,11 @@
 /*  uint32_t tdlsChannelBondingMode; */
 	uint8_t smeSessionId = 0;
 
-	if (NULL == psessionEntry) {
-		pe_err("psessionEntry is NULL");
+	if (NULL == pe_session) {
+		pe_err("pe_session is NULL");
 		return QDF_STATUS_E_FAILURE;
 	}
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 
 	/*
 	 * The scheme here is to fill out a 'tDot11fProbeRequest' structure
@@ -1603,11 +1603,11 @@
 	tdlsSetupRsp.Action.action = SIR_MAC_TDLS_SETUP_RSP;
 	tdlsSetupRsp.DialogToken.token = dialog;
 
-	populate_dot11f_link_iden(mac, psessionEntry,
+	populate_dot11f_link_iden(mac, pe_session,
 				  &tdlsSetupRsp.LinkIdentifier, peer_mac,
 				  TDLS_RESPONDER);
 
-	if (cfg_get_capability_info(mac, &caps, psessionEntry) != QDF_STATUS_SUCCESS) {
+	if (cfg_get_capability_info(mac, &caps, pe_session) != QDF_STATUS_SUCCESS) {
 		/*
 		 * Could not get Capabilities value
 		 * from CFG. Log error.
@@ -1620,12 +1620,12 @@
 	if (QDF_STATUS_E_FAILURE == populate_dot11f_rates_tdls(mac,
 					&tdlsSetupRsp.SuppRates,
 					&tdlsSetupRsp.ExtSuppRates,
-					psessionEntry->currentOperChannel))
+					pe_session->currentOperChannel))
 		pe_err("could not populate supported data rates");
 
 	/* Populate extended capability IE */
 	populate_dot11f_tdls_ext_capability(mac,
-					    psessionEntry,
+					    pe_session,
 					    &tdlsSetupRsp.ExtCap);
 
 	if (1 == mac->lim.gLimTDLSWmmMode) {
@@ -1677,19 +1677,19 @@
 
 	/* Populate HT/VHT Capabilities */
 	populate_dot11f_tdls_ht_vht_cap(mac, selfDot11Mode, &tdlsSetupRsp.HTCaps,
-					&tdlsSetupRsp.VHTCaps, psessionEntry);
+					&tdlsSetupRsp.VHTCaps, pe_session);
 
 	/* Populate AID */
 	populate_dotf_tdls_vht_aid(mac, selfDot11Mode, peer_mac,
-				   &tdlsSetupRsp.AID, psessionEntry);
+				   &tdlsSetupRsp.AID, pe_session);
 
 	/* Populate TDLS offchannel param only if offchannel is enabled
 	 * and TDLS Channel Switching is not prohibited by AP in ExtCap
 	 * IE in assoc/re-assoc response.
 	 */
 	if ((1 == mac->lim.gLimTDLSOffChannelEnabled) &&
-	    (!psessionEntry->tdls_chan_swit_prohibited)) {
-		populate_dot11f_tdls_offchannel_params(mac, psessionEntry,
+	    (!pe_session->tdls_chan_swit_prohibited)) {
+		populate_dot11f_tdls_offchannel_params(mac, pe_session,
 						    &tdlsSetupRsp.SuppChannels,
 						    &tdlsSetupRsp.
 						    SuppOperatingClasses);
@@ -1700,7 +1700,7 @@
 	} else {
 		pe_debug("TDLS offchan not enabled, or channel switch prohibited by AP, gLimTDLSOffChannelEnabled: %d tdls_chan_swit_prohibited: %d",
 			mac->lim.gLimTDLSOffChannelEnabled,
-			psessionEntry->tdls_chan_swit_prohibited);
+			pe_session->tdls_chan_swit_prohibited);
 	}
 	tdlsSetupRsp.Status.status = setupStatus;
 	/*
@@ -1724,7 +1724,7 @@
 	 * 8 bytes of RFC 1042 header
 	 */
 
-	nBytes = nPayload + ((IS_QOS_ENABLED(psessionEntry))
+	nBytes = nPayload + ((IS_QOS_ENABLED(pe_session))
 			     ? sizeof(tSirMacDataHdr3a) :
 			     sizeof(tSirMacMgmtHdr))
 		 + sizeof(eth_890d_header)
@@ -1753,7 +1753,7 @@
 			LINK_IDEN_ADDR_OFFSET(tdlsSetupRsp), TDLS_LINK_AP,
 			TDLS_RESPONDER,
 			(ac == WIFI_AC_VI) ? TID_AC_VI : TID_AC_BK,
-			psessionEntry);
+			pe_session);
 
 	pe_debug("SupportedChnlWidth: %x rxMCSMap: %x rxMCSMap: %x txSupDataRate: %x",
 		tdlsSetupRsp.VHTCaps.supportedChannelWidthSet,
@@ -1788,9 +1788,9 @@
 		lim_trace_tdls_action_string(SIR_MAC_TDLS_SETUP_RSP),
 		MAC_ADDR_ARRAY(peer_mac.bytes));
 
-	mac->lim.tdls_frm_session_id = psessionEntry->smeSessionId;
+	mac->lim.tdls_frm_session_id = pe_session->smeSessionId;
 	lim_diag_mgmt_tx_event_report(mac, (tpSirMacMgmtHdr) pFrame,
-				      psessionEntry, QDF_STATUS_SUCCESS,
+				      pe_session, QDF_STATUS_SUCCESS,
 				      QDF_STATUS_SUCCESS);
 
 	qdf_status = wma_tx_frame_with_tx_complete_send(mac, pPacket,
@@ -1816,7 +1816,7 @@
 						 struct qdf_mac_addr peer_mac,
 						 uint8_t dialog,
 						 uint32_t peerCapability,
-						 struct pe_session *psessionEntry,
+						 struct pe_session *pe_session,
 						 uint8_t *addIe,
 						 uint16_t addIeLen,
 						 enum wifi_traffic_ac ac)
@@ -1839,7 +1839,7 @@
 	 * and then hand it off to 'dot11f_pack_probe_request' (for
 	 * serialization).  We start by zero-initializing the structure:
 	 */
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 
 	qdf_mem_set((uint8_t *) &tdlsSetupCnf, sizeof(tDot11fTDLSSetupCnf), 0);
 
@@ -1850,7 +1850,7 @@
 	tdlsSetupCnf.Action.action = SIR_MAC_TDLS_SETUP_CNF;
 	tdlsSetupCnf.DialogToken.token = dialog;
 
-	populate_dot11f_link_iden(mac, psessionEntry,
+	populate_dot11f_link_iden(mac, pe_session,
 				  &tdlsSetupCnf.LinkIdentifier, peer_mac,
 				  TDLS_INITIATOR);
 	/*
@@ -1865,17 +1865,17 @@
 	    (CHECK_BIT(peerCapability, TDLS_PEER_WMM_CAP))) {
 		pe_debug("populate WMM praram in Setup Confirm");
 		populate_dot11f_wmm_params(mac, &tdlsSetupCnf.WMMParams,
-					   psessionEntry);
+					   pe_session);
 	}
 
 	/* Check peer is VHT capable */
 	if (CHECK_BIT(peerCapability, TDLS_PEER_VHT_CAP)) {
 		populate_dot11f_vht_operation(mac,
-					      psessionEntry,
+					      pe_session,
 					      &tdlsSetupCnf.VHTOperation);
-		populate_dot11f_ht_info(mac, &tdlsSetupCnf.HTInfo, psessionEntry);
+		populate_dot11f_ht_info(mac, &tdlsSetupCnf.HTInfo, pe_session);
 	} else if (CHECK_BIT(peerCapability, TDLS_PEER_HT_CAP)) {       /* Check peer is HT capable */
-		populate_dot11f_ht_info(mac, &tdlsSetupCnf.HTInfo, psessionEntry);
+		populate_dot11f_ht_info(mac, &tdlsSetupCnf.HTInfo, pe_session);
 	}
 
 	/*
@@ -1899,7 +1899,7 @@
 	 * 8 bytes of RFC 1042 header
 	 */
 
-	nBytes = nPayload + ((IS_QOS_ENABLED(psessionEntry))
+	nBytes = nPayload + ((IS_QOS_ENABLED(pe_session))
 			     ? sizeof(tSirMacDataHdr3a) :
 			     sizeof(tSirMacMgmtHdr))
 		 + sizeof(eth_890d_header)
@@ -1946,7 +1946,7 @@
 				TDLS_LINK_AP,
 				TDLS_INITIATOR,
 				(ac == WIFI_AC_VI) ? TID_AC_VI : TID_AC_BK,
-				psessionEntry);
+				pe_session);
 
 	status = dot11f_pack_tdls_setup_cnf(mac, &tdlsSetupCnf, pFrame
 					    + header_offset, nPayload, &nPayload);
@@ -1995,9 +1995,9 @@
 		lim_trace_tdls_action_string(SIR_MAC_TDLS_SETUP_CNF),
 	       MAC_ADDR_ARRAY(peer_mac.bytes));
 
-	mac->lim.tdls_frm_session_id = psessionEntry->smeSessionId;
+	mac->lim.tdls_frm_session_id = pe_session->smeSessionId;
 	lim_diag_mgmt_tx_event_report(mac, (tpSirMacMgmtHdr) pFrame,
-				      psessionEntry, QDF_STATUS_SUCCESS,
+				      pe_session, QDF_STATUS_SUCCESS,
 				      QDF_STATUS_SUCCESS);
 
 	qdf_status = wma_tx_frame_with_tx_complete_send(mac, pPacket,
@@ -2020,7 +2020,7 @@
  * are considered from the AddStaReq rather from the cfg.dat as in populate_dot11f_ht_caps
  */
 static QDF_STATUS lim_tdls_populate_dot11f_ht_caps(tpAniSirGlobal mac,
-						      struct pe_session *psessionEntry,
+						      struct pe_session *pe_session,
 						      tSirTdlsAddStaReq *
 						      pTdlsAddStaReq,
 						      tDot11fIEHTCaps *pDot11f)
@@ -2063,13 +2063,13 @@
 	 * All sessionized entries will need the check below
 	 * Only in case of NO session
 	 */
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pDot11f->supportedChannelWidthSet =
 			uHTCapabilityInfo.ht_cap_info.
 			supported_channel_width_set;
 	} else {
 		pDot11f->supportedChannelWidthSet =
-			psessionEntry->htSupportedChannelWidthSet;
+			pe_session->htSupportedChannelWidthSet;
 	}
 
 	/* Ensure that shortGI40MHz is Disabled if supportedChannelWidthSet is
@@ -2425,7 +2425,7 @@
 static void lim_tdls_update_hash_node_info(tpAniSirGlobal mac,
 					   tDphHashNode *pStaDs,
 					   tSirTdlsAddStaReq *pTdlsAddStaReq,
-					   struct pe_session *psessionEntry)
+					   struct pe_session *pe_session)
 {
 	tDot11fIEHTCaps htCap = {0,};
 	tDot11fIEHTCaps *htCaps;
@@ -2435,7 +2435,7 @@
 	uint8_t cbMode;
 
 	if (pTdlsAddStaReq->tdlsAddOper == TDLS_OPER_ADD) {
-		populate_dot11f_ht_caps(mac, psessionEntry, &htCap);
+		populate_dot11f_ht_caps(mac, pe_session, &htCap);
 	} else if (pTdlsAddStaReq->tdlsAddOper == TDLS_OPER_UPDATE) {
 		lim_tdls_populate_dot11f_ht_caps(mac, NULL, pTdlsAddStaReq, &htCap);
 	}
@@ -2448,16 +2448,16 @@
 		 * channel capability. The htSupportedChannelWidthSet of the
 		 * TDLS link on base channel should be less than or equal to
 		 * channel width of STA-AP link. So take this setting from the
-		 * psessionEntry.
+		 * pe_session.
 		 */
 		pe_debug("supportedChannelWidthSet: 0x%x htSupportedChannelWidthSet: 0x%x",
 				htCaps->supportedChannelWidthSet,
-				psessionEntry->htSupportedChannelWidthSet);
+				pe_session->htSupportedChannelWidthSet);
 		pStaDs->htSupportedChannelWidthSet =
 				(htCaps->supportedChannelWidthSet <
-				 psessionEntry->htSupportedChannelWidthSet) ?
+				 pe_session->htSupportedChannelWidthSet) ?
 				htCaps->supportedChannelWidthSet :
-				psessionEntry->htSupportedChannelWidthSet;
+				pe_session->htSupportedChannelWidthSet;
 		pe_debug("pStaDs->htSupportedChannelWidthSet: 0x%x",
 				pStaDs->htSupportedChannelWidthSet);
 
@@ -2490,12 +2490,12 @@
 		 * width of the BSS to which the TDLS peer STAs are
 		 * associated.
 		 */
-		if (psessionEntry->ch_width)
+		if (pe_session->ch_width)
 			pStaDs->vhtSupportedChannelWidthSet =
-					psessionEntry->ch_width - 1;
+					pe_session->ch_width - 1;
 		else
 			pStaDs->vhtSupportedChannelWidthSet =
-					psessionEntry->ch_width;
+					pe_session->ch_width;
 
 		pe_debug("vhtSupportedChannelWidthSet: %hu htSupportedChannelWidthSet: %hu",
 			pStaDs->vhtSupportedChannelWidthSet,
@@ -2520,9 +2520,9 @@
 	 * Calculate the Secondary Coannel Offset if our
 	 * own channel bonding state is enabled
 	 */
-	if (psessionEntry->htSupportedChannelWidthSet) {
-		cbMode = lim_select_cb_mode(pStaDs, psessionEntry,
-				    psessionEntry->currentOperChannel,
+	if (pe_session->htSupportedChannelWidthSet) {
+		cbMode = lim_select_cb_mode(pStaDs, pe_session,
+				    pe_session->currentOperChannel,
 				    pStaDs->vhtSupportedChannelWidthSet);
 
 		if (pStaDs->mlmStaContext.vhtCapability)
@@ -2551,7 +2551,7 @@
 					    supported_rates_length,
 					    (uint8_t *)pTdlsAddStaReq->
 					    htCap.mcsset,
-					    psessionEntry, pVhtCaps);
+					    pe_session, pVhtCaps);
 
 	/*  TDLS Dummy AddSTA does not have right capability , is it OK ??
 	 */
@@ -2566,14 +2566,14 @@
  */
 static QDF_STATUS lim_tdls_setup_add_sta(tpAniSirGlobal mac,
 					    tSirTdlsAddStaReq *pAddStaReq,
-					    struct pe_session *psessionEntry)
+					    struct pe_session *pe_session)
 {
 	tpDphHashNode pStaDs = NULL;
 	QDF_STATUS status = QDF_STATUS_SUCCESS;
 	uint16_t aid = 0;
 
 	pStaDs = dph_lookup_hash_entry(mac, pAddStaReq->peermac.bytes, &aid,
-				       &psessionEntry->dph.dphHashTable);
+				       &pe_session->dph.dphHashTable);
 
 	if (pStaDs && pAddStaReq->tdlsAddOper == TDLS_OPER_ADD) {
 		pe_err("TDLS entry for peer: "MAC_ADDRESS_STR " already exist, cannot add new entry",
@@ -2588,7 +2588,7 @@
 	}
 
 	if (NULL == pStaDs) {
-		aid = lim_assign_peer_idx(mac, psessionEntry);
+		aid = lim_assign_peer_idx(mac, pe_session);
 
 		if (!aid) {
 			pe_err("No more free AID for peer: "MAC_ADDRESS_STR,
@@ -2597,23 +2597,23 @@
 		}
 
 		/* Set the aid in peerAIDBitmap as it has been assigned to TDLS peer */
-		SET_PEER_AID_BITMAP(psessionEntry->peerAIDBitmap, aid);
+		SET_PEER_AID_BITMAP(pe_session->peerAIDBitmap, aid);
 
 		pe_debug("Aid: %d, for peer: " MAC_ADDRESS_STR,
 			aid, MAC_ADDR_ARRAY(pAddStaReq->peermac.bytes));
 		pStaDs =
 			dph_get_hash_entry(mac, aid,
-					   &psessionEntry->dph.dphHashTable);
+					   &pe_session->dph.dphHashTable);
 
 		if (pStaDs) {
 			(void)lim_del_sta(mac, pStaDs, false /*asynchronous */,
-					  psessionEntry);
+					  pe_session);
 			lim_delete_dph_hash_entry(mac, pStaDs->staAddr, aid,
-						  psessionEntry);
+						  pe_session);
 		}
 
 		pStaDs = dph_add_hash_entry(mac, pAddStaReq->peermac.bytes,
-					 aid, &psessionEntry->dph.dphHashTable);
+					 aid, &pe_session->dph.dphHashTable);
 
 		if (NULL == pStaDs) {
 			pe_err("add hash entry failed");
@@ -2622,14 +2622,14 @@
 		}
 	}
 
-	lim_tdls_update_hash_node_info(mac, pStaDs, pAddStaReq, psessionEntry);
+	lim_tdls_update_hash_node_info(mac, pStaDs, pAddStaReq, pe_session);
 
 	pStaDs->staType = STA_ENTRY_TDLS_PEER;
 
 	status =
 		lim_add_sta(mac, pStaDs,
 			    (pAddStaReq->tdlsAddOper ==
-			     TDLS_OPER_UPDATE) ? true : false, psessionEntry);
+			     TDLS_OPER_UPDATE) ? true : false, pe_session);
 
 	if (QDF_STATUS_SUCCESS != status) {
 		/* should not fail */
@@ -2643,7 +2643,7 @@
  */
 static QDF_STATUS lim_tdls_del_sta(tpAniSirGlobal mac,
 				      struct qdf_mac_addr peerMac,
-				      struct pe_session *psessionEntry,
+				      struct pe_session *pe_session,
 				      bool resp_reqd)
 {
 	QDF_STATUS status = QDF_STATUS_E_FAILURE;
@@ -2651,7 +2651,7 @@
 	tpDphHashNode pStaDs;
 
 	pStaDs = dph_lookup_hash_entry(mac, peerMac.bytes, &peerIdx,
-				       &psessionEntry->dph.dphHashTable);
+				       &pe_session->dph.dphHashTable);
 
 	if (pStaDs) {
 		pe_debug("DEL STA peer MAC: "MAC_ADDRESS_STR,
@@ -2662,7 +2662,7 @@
 			 pStaDs->staIndex,
 			 resp_reqd);
 
-		status = lim_del_sta(mac, pStaDs, resp_reqd, psessionEntry);
+		status = lim_del_sta(mac, pStaDs, resp_reqd, pe_session);
 	} else {
 		pe_debug("DEL STA peer MAC: "MAC_ADDRESS_STR" not found",
 			 MAC_ADDR_ARRAY(peerMac.bytes));
@@ -2718,7 +2718,7 @@
  * STA RSP received from HAL
  */
 QDF_STATUS lim_process_tdls_add_sta_rsp(tpAniSirGlobal mac, void *msg,
-					struct pe_session *psessionEntry)
+					struct pe_session *pe_session)
 {
 	tAddStaParams *pAddStaParams = (tAddStaParams *) msg;
 	uint8_t status = QDF_STATUS_SUCCESS;
@@ -2738,7 +2738,7 @@
 	}
 
 	pStaDs = dph_lookup_hash_entry(mac, pAddStaParams->staMac, &aid,
-				       &psessionEntry->dph.dphHashTable);
+				       &pe_session->dph.dphHashTable);
 	if (NULL == pStaDs) {
 		pe_err("pStaDs is NULL ");
 		status = QDF_STATUS_E_FAILURE;
@@ -2750,7 +2750,7 @@
 	pStaDs->mlmStaContext.mlmState = eLIM_MLM_LINK_ESTABLISHED_STATE;
 	pStaDs->valid = 1;
 add_sta_error:
-	status = lim_send_sme_tdls_add_sta_rsp(mac, psessionEntry->smeSessionId,
+	status = lim_send_sme_tdls_add_sta_rsp(mac, pe_session->smeSessionId,
 					       pAddStaParams->staMac,
 					       pAddStaParams->updateSta, pStaDs,
 					       status);
@@ -2981,27 +2981,27 @@
 {
 	/* get all discovery request parameters */
 	tSirTdlsAddStaReq *pAddStaReq = (tSirTdlsAddStaReq *) pMsgBuf;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint8_t sessionId;
 
 	pe_debug("TDLS Add STA Request Received");
-	psessionEntry =
+	pe_session =
 		pe_find_session_by_bssid(mac, pAddStaReq->bssid.bytes,
 					 &sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("PE Session does not exist for given sme sessionId: %d",
 			pAddStaReq->sessionId);
 		goto lim_tdls_add_sta_error;
 	}
 
 	/* check if we are in proper state to work as TDLS client */
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
+	if (!LIM_IS_STA_ROLE(pe_session)) {
 		pe_err("send mgmt received in wrong system Role: %d",
-			  GET_LIM_SYSTEM_ROLE(psessionEntry));
+			  GET_LIM_SYSTEM_ROLE(pe_session));
 		goto lim_tdls_add_sta_error;
 	}
 
-	if (lim_is_roam_synch_in_progress(psessionEntry)) {
+	if (lim_is_roam_synch_in_progress(pe_session)) {
 		pe_err("roaming in progress, reject add sta! for session %d",
 		       pAddStaReq->sessionId);
 		goto lim_tdls_add_sta_error;
@@ -3011,16 +3011,16 @@
 	 * if we are still good, go ahead and check if we are in proper state to
 	 * do TDLS discovery req/rsp/....frames.
 	 */
-	if ((psessionEntry->limSmeState != eLIM_SME_ASSOCIATED_STATE) &&
-	    (psessionEntry->limSmeState != eLIM_SME_LINK_EST_STATE)) {
+	if ((pe_session->limSmeState != eLIM_SME_ASSOCIATED_STATE) &&
+	    (pe_session->limSmeState != eLIM_SME_LINK_EST_STATE)) {
 		pe_err("send mgmt received in invalid LIMsme state: %d",
-			psessionEntry->limSmeState);
+			pe_session->limSmeState);
 		goto lim_tdls_add_sta_error;
 	}
 
 
 	/* To start with, send add STA request to HAL */
-	if (QDF_STATUS_E_FAILURE == lim_tdls_setup_add_sta(mac, pAddStaReq, psessionEntry)) {
+	if (QDF_STATUS_E_FAILURE == lim_tdls_setup_add_sta(mac, pAddStaReq, pe_session)) {
 		pe_err("Add TDLS Station request failed");
 		goto lim_tdls_add_sta_error;
 	}
@@ -3043,15 +3043,15 @@
 {
 	/* get all discovery request parameters */
 	tSirTdlsDelStaReq *pDelStaReq = (tSirTdlsDelStaReq *) pMsgBuf;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint8_t sessionId;
 	QDF_STATUS status = QDF_STATUS_E_FAILURE;
 
 	pe_debug("TDLS Delete STA Request Received");
-	psessionEntry =
+	pe_session =
 		pe_find_session_by_bssid(mac, pDelStaReq->bssid.bytes,
 					 &sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("PE Session does not exist for given sme sessionId: %d",
 			pDelStaReq->sessionId);
 		lim_send_sme_tdls_del_sta_rsp(mac, pDelStaReq->sessionId,
@@ -3061,13 +3061,13 @@
 	}
 
 	/* check if we are in proper state to work as TDLS client */
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
+	if (!LIM_IS_STA_ROLE(pe_session)) {
 		pe_err("Del sta received in wrong system Role %d",
-			  GET_LIM_SYSTEM_ROLE(psessionEntry));
+			  GET_LIM_SYSTEM_ROLE(pe_session));
 		goto lim_tdls_del_sta_error;
 	}
 
-	if (lim_is_roam_synch_in_progress(psessionEntry)) {
+	if (lim_is_roam_synch_in_progress(pe_session)) {
 		pe_err("roaming in progress, reject del sta! for session %d",
 		       pDelStaReq->sessionId);
 		lim_send_sme_tdls_del_sta_rsp(mac, pDelStaReq->sessionId,
@@ -3080,21 +3080,21 @@
 	 * if we are still good, go ahead and check if we are in proper state to
 	 * do TDLS discovery req/rsp/....frames.
 	 */
-	if ((psessionEntry->limSmeState != eLIM_SME_ASSOCIATED_STATE) &&
-	    (psessionEntry->limSmeState != eLIM_SME_LINK_EST_STATE)) {
+	if ((pe_session->limSmeState != eLIM_SME_ASSOCIATED_STATE) &&
+	    (pe_session->limSmeState != eLIM_SME_LINK_EST_STATE)) {
 
 		pe_err("Del Sta received in invalid LIMsme state: (%d",
-			psessionEntry->limSmeState);
+			pe_session->limSmeState);
 		goto lim_tdls_del_sta_error;
 	}
 
 	status = lim_tdls_del_sta(mac, pDelStaReq->peermac,
-				  psessionEntry, true);
+				  pe_session, true);
 	if (status == QDF_STATUS_SUCCESS)
 		return status;
 
 lim_tdls_del_sta_error:
-	lim_send_sme_tdls_del_sta_rsp(mac, psessionEntry->smeSessionId,
+	lim_send_sme_tdls_del_sta_rsp(mac, pe_session->smeSessionId,
 				      pDelStaReq->peermac, NULL, QDF_STATUS_E_FAILURE);
 
 	return status;
@@ -3226,7 +3226,7 @@
 	session_entry = pe_find_session_by_bssid(p_mac,
 						 msg->bssid.bytes, &session_id);
 	if (NULL == session_entry) {
-		pe_err("NULL psessionEntry");
+		pe_err("NULL pe_session");
 		return QDF_STATUS_E_FAILURE;
 	}
 
diff --git a/core/mac/src/pe/lim/lim_reassoc_utils.c b/core/mac/src/pe/lim/lim_reassoc_utils.c
index da7a4e6..7f3ee9a 100644
--- a/core/mac/src/pe/lim/lim_reassoc_utils.c
+++ b/core/mac/src/pe/lim/lim_reassoc_utils.c
@@ -51,7 +51,7 @@
  * lim_update_re_assoc_globals() - Update reassoc global data
  * @mac: Global MAC context
  * @pAssocRsp: Reassociation response data
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * This function is called to Update the Globals (LIM) during ReAssoc.
  *
@@ -59,35 +59,35 @@
  */
 
 void lim_update_re_assoc_globals(tpAniSirGlobal mac, tpSirAssocRsp pAssocRsp,
-				 struct pe_session *psessionEntry)
+				 struct pe_session *pe_session)
 {
 	/* Update the current Bss Information */
-	qdf_mem_copy(psessionEntry->bssId,
-		     psessionEntry->limReAssocbssId, sizeof(tSirMacAddr));
-	psessionEntry->currentOperChannel = psessionEntry->limReassocChannelId;
-	psessionEntry->htSecondaryChannelOffset =
-		psessionEntry->reAssocHtSupportedChannelWidthSet;
-	psessionEntry->htRecommendedTxWidthSet =
-		psessionEntry->reAssocHtRecommendedTxWidthSet;
-	psessionEntry->htSecondaryChannelOffset =
-		psessionEntry->reAssocHtSecondaryChannelOffset;
-	psessionEntry->limCurrentBssCaps = psessionEntry->limReassocBssCaps;
-	psessionEntry->limCurrentBssQosCaps =
-		psessionEntry->limReassocBssQosCaps;
-	psessionEntry->limCurrentBssPropCap =
-		psessionEntry->limReassocBssPropCap;
+	qdf_mem_copy(pe_session->bssId,
+		     pe_session->limReAssocbssId, sizeof(tSirMacAddr));
+	pe_session->currentOperChannel = pe_session->limReassocChannelId;
+	pe_session->htSecondaryChannelOffset =
+		pe_session->reAssocHtSupportedChannelWidthSet;
+	pe_session->htRecommendedTxWidthSet =
+		pe_session->reAssocHtRecommendedTxWidthSet;
+	pe_session->htSecondaryChannelOffset =
+		pe_session->reAssocHtSecondaryChannelOffset;
+	pe_session->limCurrentBssCaps = pe_session->limReassocBssCaps;
+	pe_session->limCurrentBssQosCaps =
+		pe_session->limReassocBssQosCaps;
+	pe_session->limCurrentBssPropCap =
+		pe_session->limReassocBssPropCap;
 
-	qdf_mem_copy((uint8_t *) &psessionEntry->ssId,
-		     (uint8_t *) &psessionEntry->limReassocSSID,
-		     psessionEntry->limReassocSSID.length + 1);
+	qdf_mem_copy((uint8_t *) &pe_session->ssId,
+		     (uint8_t *) &pe_session->limReassocSSID,
+		     pe_session->limReassocSSID.length + 1);
 
 	/* Store assigned AID for TIM processing */
-	psessionEntry->limAID = pAssocRsp->aid & 0x3FFF;
+	pe_session->limAID = pAssocRsp->aid & 0x3FFF;
 	/** Set the State Back to ReAssoc Rsp*/
-	psessionEntry->limMlmState = eLIM_MLM_WT_REASSOC_RSP_STATE;
+	pe_session->limMlmState = eLIM_MLM_WT_REASSOC_RSP_STATE;
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId,
-		       psessionEntry->limMlmState));
+		       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
+		       pe_session->limMlmState));
 
 }
 
@@ -95,7 +95,7 @@
  * @lim_handle_del_bss_in_re_assoc_context() - DEL BSS during reassociation
  * @mac: Global MAC Context
  * @pStaDs: Station Hash entry
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * While Processing the ReAssociation Response Frame in STA,
  *     a.immediately after receiving the Reassoc Response the RxCleanUp is
@@ -109,7 +109,7 @@
  * Return: None
  */
 void lim_handle_del_bss_in_re_assoc_context(tpAniSirGlobal mac,
-		tpDphHashNode pStaDs, struct pe_session *psessionEntry)
+		tpDphHashNode pStaDs, struct pe_session *pe_session)
 {
 	tLimMlmReassocCnf mlmReassocCnf;
 	tpSirBssDescription bss_desc;
@@ -117,10 +117,10 @@
 	 * Skipped the DeleteDPH Hash Entry as we need it for the new BSS
 	 * Set the MlmState to IDLE
 	 */
-	psessionEntry->limMlmState = eLIM_MLM_IDLE_STATE;
+	pe_session->limMlmState = eLIM_MLM_IDLE_STATE;
 	/* Update PE session Id */
-	mlmReassocCnf.sessionId = psessionEntry->peSessionId;
-	switch (psessionEntry->limSmeState) {
+	mlmReassocCnf.sessionId = pe_session->peSessionId;
+	switch (pe_session->limSmeState) {
 	case eLIM_SME_WT_REASSOC_STATE:
 	{
 		tpSirAssocRsp assocRsp;
@@ -134,26 +134,26 @@
 					eSIR_SME_RESOURCES_UNAVAILABLE;
 			mlmReassocCnf.protStatusCode =
 					eSIR_MAC_UNSPEC_FAILURE_STATUS;
-			lim_delete_dph_hash_entry(mac, psessionEntry->bssId,
-				DPH_STA_HASH_INDEX_PEER, psessionEntry);
+			lim_delete_dph_hash_entry(mac, pe_session->bssId,
+				DPH_STA_HASH_INDEX_PEER, pe_session);
 			goto error;
 		}
 		/* Delete the older STA Table entry */
-		lim_delete_dph_hash_entry(mac, psessionEntry->bssId,
-				DPH_STA_HASH_INDEX_PEER, psessionEntry);
+		lim_delete_dph_hash_entry(mac, pe_session->bssId,
+				DPH_STA_HASH_INDEX_PEER, pe_session);
 		/*
 		 * Add an entry for AP to hash table
 		 * maintained by DPH module
 		 */
 		pStaDs = dph_add_hash_entry(mac,
-				psessionEntry->limReAssocbssId,
+				pe_session->limReAssocbssId,
 				DPH_STA_HASH_INDEX_PEER,
-				&psessionEntry->dph.dphHashTable);
+				&pe_session->dph.dphHashTable);
 		if (pStaDs == NULL) {
 			/* Could not add hash table entry */
 			pe_err("could not add hash entry at DPH for");
 			lim_print_mac_addr(mac,
-				psessionEntry->limReAssocbssId, LOGE);
+				pe_session->limReAssocbssId, LOGE);
 			mlmReassocCnf.resultCode =
 				eSIR_SME_RESOURCES_UNAVAILABLE;
 			mlmReassocCnf.protStatusCode = eSIR_SME_SUCCESS;
@@ -165,11 +165,11 @@
 		 * is being stored to be used here for sending ADDBSS
 		 */
 		assocRsp =
-			(tpSirAssocRsp) psessionEntry->limAssocResponseData;
+			(tpSirAssocRsp) pe_session->limAssocResponseData;
 		lim_update_assoc_sta_datas(mac, pStaDs, assocRsp,
-			psessionEntry);
-		lim_update_re_assoc_globals(mac, assocRsp, psessionEntry);
-		bss_desc = &psessionEntry->pLimReAssocReq->bssDescription;
+			pe_session);
+		lim_update_re_assoc_globals(mac, assocRsp, pe_session);
+		bss_desc = &pe_session->pLimReAssocReq->bssDescription;
 		lim_extract_ap_capabilities(mac,
 			(uint8_t *) bss_desc->ieFields,
 			lim_get_ielen_from_bss_description(bss_desc),
@@ -178,12 +178,12 @@
 		    MLME_FORCE_POLICY_PROTECTION_DISABLE)
 			lim_decide_sta_protection_on_assoc(mac,
 				beacon_struct,
-				psessionEntry);
+				pe_session);
 		if (beacon_struct->erpPresent) {
 			if (beacon_struct->erpIEInfo.barkerPreambleMode)
-				psessionEntry->beaconParams.fShortPreamble = 0;
+				pe_session->beaconParams.fShortPreamble = 0;
 			else
-				psessionEntry->beaconParams.fShortPreamble = 1;
+				pe_session->beaconParams.fShortPreamble = 1;
 		}
 		/*
 		 * updateBss flag is false, as in this case, PE is first
@@ -192,7 +192,7 @@
 		if (QDF_STATUS_SUCCESS !=
 		    lim_sta_send_add_bss(mac, assocRsp, beacon_struct,
 				bss_desc,
-				false, psessionEntry)) {
+				false, pe_session)) {
 			pe_err("Posting ADDBSS in the ReAssocCtx Failed");
 			retStatus = QDF_STATUS_E_FAILURE;
 		}
@@ -208,7 +208,7 @@
 		}
 		qdf_mem_free(assocRsp);
 		qdf_mem_free(beacon_struct);
-		psessionEntry->limAssocResponseData = NULL;
+		pe_session->limAssocResponseData = NULL;
 	}
 	break;
 	default:
@@ -228,7 +228,7 @@
  * @lim_handle_add_bss_in_re_assoc_context() - ADD BSS during reassociation
  * @mac: Global MAC Context
  * @pStaDs: Station Hash entry
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * While Processing the ReAssociation Response Frame in STA,
  *     a. immediately after receiving the Reassoc Response the RxCleanUp is
@@ -242,16 +242,16 @@
  * Return: None
  */
 void lim_handle_add_bss_in_re_assoc_context(tpAniSirGlobal mac,
-		tpDphHashNode pStaDs, struct pe_session *psessionEntry)
+		tpDphHashNode pStaDs, struct pe_session *pe_session)
 {
 	tLimMlmReassocCnf mlmReassocCnf;
 	/** Skipped the DeleteDPH Hash Entry as we need it for the new BSS*/
 	/** Set the MlmState to IDLE*/
-	psessionEntry->limMlmState = eLIM_MLM_IDLE_STATE;
+	pe_session->limMlmState = eLIM_MLM_IDLE_STATE;
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId,
-		       psessionEntry->limMlmState));
-	switch (psessionEntry->limSmeState) {
+		       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
+		       pe_session->limMlmState));
+	switch (pe_session->limSmeState) {
 	case eLIM_SME_WT_REASSOC_STATE: {
 		tpSirAssocRsp assocRsp;
 		tpDphHashNode pStaDs;
@@ -270,7 +270,7 @@
 		/* Get the AP entry from DPH hash table */
 		pStaDs =
 			dph_get_hash_entry(mac, DPH_STA_HASH_INDEX_PEER,
-					   &psessionEntry->dph.dphHashTable);
+					   &pe_session->dph.dphHashTable);
 		if (pStaDs == NULL) {
 			pe_err("Fail to get STA PEER entry from hash");
 			mlmReassocCnf.resultCode =
@@ -284,16 +284,16 @@
 		 * is being stored to be used here for sending ADDBSS
 		 */
 		assocRsp =
-			(tpSirAssocRsp) psessionEntry->limAssocResponseData;
+			(tpSirAssocRsp) pe_session->limAssocResponseData;
 		lim_update_assoc_sta_datas(mac, pStaDs, assocRsp,
-					   psessionEntry);
-		lim_update_re_assoc_globals(mac, assocRsp, psessionEntry);
+					   pe_session);
+		lim_update_re_assoc_globals(mac, assocRsp, pe_session);
 		lim_extract_ap_capabilities(mac,
-					    (uint8_t *) psessionEntry->
+					    (uint8_t *) pe_session->
 					    pLimReAssocReq->bssDescription.
 					    ieFields,
 					    lim_get_ielen_from_bss_description
-						    (&psessionEntry->
+						    (&pe_session->
 						    pLimReAssocReq->
 						    bssDescription),
 					    pBeaconStruct);
@@ -301,23 +301,23 @@
 		    MLME_FORCE_POLICY_PROTECTION_DISABLE)
 			lim_decide_sta_protection_on_assoc(mac,
 							   pBeaconStruct,
-							   psessionEntry);
+							   pe_session);
 
 		if (pBeaconStruct->erpPresent) {
 			if (pBeaconStruct->erpIEInfo.barkerPreambleMode)
-				psessionEntry->beaconParams.
+				pe_session->beaconParams.
 				fShortPreamble = 0;
 			else
-				psessionEntry->beaconParams.
+				pe_session->beaconParams.
 				fShortPreamble = 1;
 		}
 
-		psessionEntry->isNonRoamReassoc = 1;
+		pe_session->isNonRoamReassoc = 1;
 		if (QDF_STATUS_SUCCESS !=
 		    lim_sta_send_add_bss(mac, assocRsp, pBeaconStruct,
-					 &psessionEntry->pLimReAssocReq->
+					 &pe_session->pLimReAssocReq->
 					 bssDescription, true,
-					 psessionEntry)) {
+					 pe_session)) {
 			pe_err("Post ADDBSS in the ReAssocCtxt Failed");
 			retStatus = QDF_STATUS_E_FAILURE;
 		}
@@ -332,7 +332,7 @@
 			goto Error;
 		}
 		qdf_mem_free(assocRsp);
-		psessionEntry->limAssocResponseData = NULL;
+		pe_session->limAssocResponseData = NULL;
 		qdf_mem_free(pBeaconStruct);
 	}
 	break;
@@ -352,18 +352,18 @@
 /**
  * lim_is_reassoc_in_progress() - Check if reassoiciation is in progress
  * @mac: Global MAC Context
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * Return: true  When STA is waiting for Reassoc response from AP
  *         else false
  */
-bool lim_is_reassoc_in_progress(tpAniSirGlobal mac, struct pe_session *psessionEntry)
+bool lim_is_reassoc_in_progress(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
-	if (psessionEntry == NULL)
+	if (pe_session == NULL)
 		return false;
 
-	if (LIM_IS_STA_ROLE(psessionEntry) &&
-	    (psessionEntry->limSmeState == eLIM_SME_WT_REASSOC_STATE))
+	if (LIM_IS_STA_ROLE(pe_session) &&
+	    (pe_session->limSmeState == eLIM_SME_WT_REASSOC_STATE))
 		return true;
 
 	return false;
@@ -427,7 +427,7 @@
  * @mac: Global MAC Context
  * @resultCode: Assoc response result
  * @protStatusCode: Internal protocol status code
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * This function is called on STA role whenever Reasociation
  * Response with a reject code is received from AP.
@@ -440,34 +440,34 @@
 void
 lim_restore_pre_reassoc_state(tpAniSirGlobal mac,
 		tSirResultCodes resultCode, uint16_t protStatusCode,
-		struct pe_session *psessionEntry)
+		struct pe_session *pe_session)
 {
 	tLimMlmReassocCnf mlmReassocCnf;
 
 	pe_debug("sessionid: %d protStatusCode: %d resultCode: %d",
-		psessionEntry->smeSessionId, protStatusCode, resultCode);
+		pe_session->smeSessionId, protStatusCode, resultCode);
 
-	psessionEntry->limMlmState = eLIM_MLM_LINK_ESTABLISHED_STATE;
+	pe_session->limMlmState = eLIM_MLM_LINK_ESTABLISHED_STATE;
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId,
+		       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
 		       eLIM_MLM_LINK_ESTABLISHED_STATE));
 
 	/* 'Change' timer for future activations */
 	lim_deactivate_and_change_timer(mac, eLIM_REASSOC_FAIL_TIMER);
 
-	lim_set_channel(mac, psessionEntry->currentOperChannel,
-			psessionEntry->ch_center_freq_seg0,
-			psessionEntry->ch_center_freq_seg1,
-			psessionEntry->ch_width,
-			psessionEntry->maxTxPower,
-			psessionEntry->peSessionId,
+	lim_set_channel(mac, pe_session->currentOperChannel,
+			pe_session->ch_center_freq_seg0,
+			pe_session->ch_center_freq_seg1,
+			pe_session->ch_width,
+			pe_session->maxTxPower,
+			pe_session->peSessionId,
 			0, 0);
 
 	/* @ToDo:Need to Integrate the STOP the Dataxfer to AP from 11H code */
 
 	mlmReassocCnf.resultCode = resultCode;
 	mlmReassocCnf.protStatusCode = protStatusCode;
-	mlmReassocCnf.sessionId = psessionEntry->peSessionId;
+	mlmReassocCnf.sessionId = pe_session->peSessionId;
 	lim_post_sme_message(mac,
 			     LIM_MLM_REASSOC_CNF, (uint32_t *) &mlmReassocCnf);
 }
@@ -477,26 +477,26 @@
  * @mac: Global MAC Context
  * @resultCode: Result Code
  * @protStatusCode: Protocol Status Code
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * Return: None
  */
 void lim_post_reassoc_failure(tpAniSirGlobal mac,
 		tSirResultCodes resultCode, uint16_t protStatusCode,
-		struct pe_session *psessionEntry)
+		struct pe_session *pe_session)
 {
 	tLimMlmReassocCnf mlmReassocCnf;
 
-	psessionEntry->limMlmState = eLIM_MLM_LINK_ESTABLISHED_STATE;
+	pe_session->limMlmState = eLIM_MLM_LINK_ESTABLISHED_STATE;
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId,
+		       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
 		       eLIM_MLM_LINK_ESTABLISHED_STATE));
 
 	lim_deactivate_and_change_timer(mac, eLIM_REASSOC_FAIL_TIMER);
 
 	mlmReassocCnf.resultCode = resultCode;
 	mlmReassocCnf.protStatusCode = protStatusCode;
-	mlmReassocCnf.sessionId = psessionEntry->peSessionId;
+	mlmReassocCnf.sessionId = pe_session->peSessionId;
 	lim_post_sme_message(mac,
 			     LIM_MLM_REASSOC_CNF, (uint32_t *) &mlmReassocCnf);
 }
diff --git a/core/mac/src/pe/lim/lim_security_utils.c b/core/mac/src/pe/lim/lim_security_utils.c
index efdb4a2..3653d08 100644
--- a/core/mac/src/pe/lim/lim_security_utils.c
+++ b/core/mac/src/pe/lim/lim_security_utils.c
@@ -72,16 +72,16 @@
  */
 uint8_t
 lim_is_auth_algo_supported(tpAniSirGlobal mac, tAniAuthType authType,
-			   struct pe_session *psessionEntry)
+			   struct pe_session *pe_session)
 {
 	bool algoEnable, privacyOptImp;
 	struct wlan_mlme_wep_cfg *wep_params = &mac->mlme_cfg->wep_params;
 
 	if (authType == eSIR_OPEN_SYSTEM) {
 
-		if (LIM_IS_AP_ROLE(psessionEntry)) {
-			if ((psessionEntry->authType == eSIR_OPEN_SYSTEM)
-			    || (psessionEntry->authType == eSIR_AUTO_SWITCH))
+		if (LIM_IS_AP_ROLE(pe_session)) {
+			if ((pe_session->authType == eSIR_OPEN_SYSTEM)
+			    || (pe_session->authType == eSIR_AUTO_SWITCH))
 				return true;
 			else
 				return false;
@@ -92,9 +92,9 @@
 
 	} else {
 
-		if (LIM_IS_AP_ROLE(psessionEntry)) {
-			if ((psessionEntry->authType == eSIR_SHARED_KEY)
-			    || (psessionEntry->authType == eSIR_AUTO_SWITCH))
+		if (LIM_IS_AP_ROLE(pe_session)) {
+			if ((pe_session->authType == eSIR_SHARED_KEY)
+			    || (pe_session->authType == eSIR_AUTO_SWITCH))
 				algoEnable = true;
 			else
 				algoEnable = false;
@@ -103,8 +103,8 @@
 			algoEnable = wep_params->is_shared_key_auth;
 		}
 
-		if (LIM_IS_AP_ROLE(psessionEntry))
-			privacyOptImp = psessionEntry->privacy;
+		if (LIM_IS_AP_ROLE(pe_session))
+			privacyOptImp = pe_session->privacy;
 		else
 			privacyOptImp = wep_params->is_privacy_enabled;
 
@@ -412,13 +412,13 @@
 
 void
 lim_restore_from_auth_state(tpAniSirGlobal mac, tSirResultCodes resultCode,
-			    uint16_t protStatusCode, struct pe_session *sessionEntry)
+			    uint16_t protStatusCode, struct pe_session *pe_session)
 {
 	tSirMacAddr currentBssId;
 	tLimMlmAuthCnf mlmAuthCnf;
 
 #ifdef FEATURE_WLAN_DIAG_SUPPORT
-	lim_diag_event_report(mac, WLAN_PE_DIAG_AUTH_COMP_EVENT, sessionEntry,
+	lim_diag_event_report(mac, WLAN_PE_DIAG_AUTH_COMP_EVENT, pe_session,
 			      resultCode, protStatusCode);
 #endif
 
@@ -430,18 +430,18 @@
 	mlmAuthCnf.protStatusCode = protStatusCode;
 
 	/* Update PE session ID */
-	mlmAuthCnf.sessionId = sessionEntry->peSessionId;
+	mlmAuthCnf.sessionId = pe_session->peSessionId;
 
 	/* / Free up buffer allocated */
 	/* / for mac->lim.gLimMlmAuthReq */
 	qdf_mem_free(mac->lim.gpLimMlmAuthReq);
 	mac->lim.gpLimMlmAuthReq = NULL;
 
-	sessionEntry->limMlmState = sessionEntry->limPrevMlmState;
+	pe_session->limMlmState = pe_session->limPrevMlmState;
 
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_MLM_STATE, sessionEntry->peSessionId,
-		       sessionEntry->limMlmState));
+		       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
+		       pe_session->limMlmState));
 
 	/*
 	 * Set the auth_ack_status status flag as success as
@@ -461,9 +461,9 @@
 		lim_deactivate_and_change_timer(mac,
 				eLIM_AUTH_FAIL_TIMER);
 
-	sir_copy_mac_addr(currentBssId, sessionEntry->bssId);
+	sir_copy_mac_addr(currentBssId, pe_session->bssId);
 
-	if (sessionEntry->limSmeState == eLIM_SME_WT_PRE_AUTH_STATE) {
+	if (pe_session->limSmeState == eLIM_SME_WT_PRE_AUTH_STATE) {
 		mac->lim.gLimPreAuthChannelNumber = 0;
 	}
 
@@ -764,7 +764,7 @@
  */
 void lim_send_set_bss_key_req(tpAniSirGlobal mac,
 			      tLimMlmSetKeysReq *pMlmSetKeysReq,
-			      struct pe_session *psessionEntry)
+			      struct pe_session *pe_session)
 {
 	struct scheduler_msg msgQ = {0};
 	tpSetBssKeyParams pSetBssKeyParams = NULL;
@@ -789,13 +789,13 @@
 	}
 
 	/* Update the WMA_SET_BSSKEY_REQ parameters */
-	pSetBssKeyParams->bssIdx = psessionEntry->bssIdx;
+	pSetBssKeyParams->bssIdx = pe_session->bssIdx;
 	pSetBssKeyParams->encType = pMlmSetKeysReq->edType;
 
 	pSetBssKeyParams->singleTidRc =
 		(uint8_t)(mac->mlme_cfg->sta.single_tid);
 	/* Update PE session Id */
-	pSetBssKeyParams->sessionId = psessionEntry->peSessionId;
+	pSetBssKeyParams->sessionId = pe_session->peSessionId;
 
 	pSetBssKeyParams->smesessionId = pMlmSetKeysReq->smesessionId;
 
@@ -825,7 +825,7 @@
 	msgQ.bodyval = 0;
 
 	pe_debug("Sending WMA_SET_BSSKEY_REQ...");
-	MTRACE(mac_trace_msg_tx(mac, psessionEntry->peSessionId, msgQ.type));
+	MTRACE(mac_trace_msg_tx(mac, pe_session->peSessionId, msgQ.type));
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
 		pe_err("Posting SET_BSSKEY to HAL failed, reason=%X",
@@ -866,7 +866,7 @@
 			      tLimMlmSetKeysReq *pMlmSetKeysReq,
 			      uint16_t staIdx,
 			      uint8_t defWEPIdx,
-			      struct pe_session *sessionEntry, bool sendRsp)
+			      struct pe_session *pe_session, bool sendRsp)
 {
 	struct scheduler_msg msgQ = {0};
 	tpSetStaKeyParams pSetStaKeyParams = NULL;
@@ -885,7 +885,7 @@
 	pSetStaKeyParams->singleTidRc =
 		(uint8_t)(mac->mlme_cfg->sta.single_tid);
 	/* Update  PE session ID */
-	pSetStaKeyParams->sessionId = sessionEntry->peSessionId;
+	pSetStaKeyParams->sessionId = pe_session->peSessionId;
 
 	/**
 	 * For WEP - defWEPIdx indicates the default WEP
@@ -903,25 +903,25 @@
 
 	if (sendRsp == true) {
 		/** Store the Previous MlmState*/
-		sessionEntry->limPrevMlmState = sessionEntry->limMlmState;
+		pe_session->limPrevMlmState = pe_session->limMlmState;
 		SET_LIM_PROCESS_DEFD_MESGS(mac, false);
 	}
 
-	if (LIM_IS_IBSS_ROLE(sessionEntry)
+	if (LIM_IS_IBSS_ROLE(pe_session)
 	    && !pMlmSetKeysReq->key[0].unicast) {
 		if (sendRsp == true)
-			sessionEntry->limMlmState =
+			pe_session->limMlmState =
 				eLIM_MLM_WT_SET_STA_BCASTKEY_STATE;
 		msgQ.type = WMA_SET_STA_BCASTKEY_REQ;
 	} else {
 		if (sendRsp == true)
-			sessionEntry->limMlmState =
+			pe_session->limMlmState =
 				eLIM_MLM_WT_SET_STA_KEY_STATE;
 		msgQ.type = WMA_SET_STAKEY_REQ;
 	}
 	MTRACE(mac_trace
-		       (mac, TRACE_CODE_MLM_STATE, sessionEntry->peSessionId,
-		       sessionEntry->limMlmState));
+		       (mac, TRACE_CODE_MLM_STATE, pe_session->peSessionId,
+		       pe_session->limMlmState));
 
 	/**
 	 * In the Case of WEP_DYNAMIC, ED_TKIP and ED_CCMP
@@ -942,12 +942,12 @@
 					     key[i], sizeof(tSirKeys));
 			}
 			pSetStaKeyParams->wepType = eSIR_WEP_STATIC;
-			sessionEntry->limMlmState =
+			pe_session->limMlmState =
 				eLIM_MLM_WT_SET_STA_KEY_STATE;
 			MTRACE(mac_trace
 				       (mac, TRACE_CODE_MLM_STATE,
-				       sessionEntry->peSessionId,
-				       sessionEntry->limMlmState));
+				       pe_session->peSessionId,
+				       pe_session->limMlmState));
 		} else {
 			/*This case the keys are coming from upper layer so need to fill the
 			 * key at the default wep key index and send to the HAL */
@@ -989,7 +989,7 @@
 	msgQ.bodyval = 0;
 
 	pe_debug("Sending WMA_SET_STAKEY_REQ...");
-	MTRACE(mac_trace_msg_tx(mac, sessionEntry->peSessionId, msgQ.type));
+	MTRACE(mac_trace_msg_tx(mac, pe_session->peSessionId, msgQ.type));
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
 		pe_err("Posting SET_STAKEY to HAL failed, reason=%X",
diff --git a/core/mac/src/pe/lim/lim_send_frames_host_roam.c b/core/mac/src/pe/lim/lim_send_frames_host_roam.c
index 9ad4332..ff03c76 100644
--- a/core/mac/src/pe/lim/lim_send_frames_host_roam.c
+++ b/core/mac/src/pe/lim/lim_send_frames_host_roam.c
@@ -471,13 +471,13 @@
  * lim_send_retry_reassoc_req_frame() - Retry for reassociation
  * @mac: Global MAC Context
  * @pMlmReassocReq: Request buffer to be sent
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * Return: None
  */
 void lim_send_retry_reassoc_req_frame(tpAniSirGlobal mac,
 				      tLimMlmReassocReq *pMlmReassocReq,
-				      struct pe_session *psessionEntry)
+				      struct pe_session *pe_session)
 {
 	tLimMlmReassocCnf mlmReassocCnf;        /* keep sme */
 	tLimMlmReassocReq *pTmpMlmReassocReq = NULL;
@@ -492,10 +492,10 @@
 	/* Prepare and send Reassociation request frame */
 	/* start reassoc timer. */
 	mac->lim.limTimers.gLimReassocFailureTimer.sessionId =
-		psessionEntry->peSessionId;
+		pe_session->peSessionId;
 	/* Start reassociation failure timer */
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TIMER_ACTIVATE,
-			 psessionEntry->peSessionId, eLIM_REASSOC_FAIL_TIMER));
+			 pe_session->peSessionId, eLIM_REASSOC_FAIL_TIMER));
 	if (tx_timer_activate(&mac->lim.limTimers.gLimReassocFailureTimer)
 	    != TX_SUCCESS) {
 		/* Could not start reassoc failure timer. */
@@ -509,7 +509,7 @@
 	}
 
 	lim_send_reassoc_req_with_ft_ies_mgmt_frame(mac, pTmpMlmReassocReq,
-						    psessionEntry);
+						    pe_session);
 	return;
 
 end:
@@ -525,7 +525,7 @@
 	mlmReassocCnf.resultCode = eSIR_SME_FT_REASSOC_FAILURE;
 	mlmReassocCnf.protStatusCode = eSIR_MAC_UNSPEC_FAILURE_STATUS;
 	/* Update PE sessio Id */
-	mlmReassocCnf.sessionId = psessionEntry->peSessionId;
+	mlmReassocCnf.sessionId = pe_session->peSessionId;
 
 	lim_post_sme_message(mac, LIM_MLM_REASSOC_CNF,
 			     (uint32_t *) &mlmReassocCnf);
@@ -535,13 +535,13 @@
  * lim_send_reassoc_req_mgmt_frame() - Send the reassociation frame
  * @mac: Global MAC Context
  * @pMlmReassocReq: Reassociation request buffer to be sent
- * @psessionEntry: PE Session
+ * @pe_session: PE Session
  *
  * Return: None
  */
 void lim_send_reassoc_req_mgmt_frame(tpAniSirGlobal mac,
 				tLimMlmReassocReq *pMlmReassocReq,
-				struct pe_session *psessionEntry)
+				struct pe_session *pe_session)
 {
 	tDot11fReAssocRequest *frm;
 	uint16_t caps;
@@ -559,18 +559,18 @@
 	bool isVHTEnabled = false;
 	tpSirMacMgmtHdr pMacHdr;
 
-	if (NULL == psessionEntry)
+	if (NULL == pe_session)
 		return;
 
-	smeSessionId = psessionEntry->smeSessionId;
-	if (NULL == psessionEntry->pLimReAssocReq)
+	smeSessionId = pe_session->smeSessionId;
+	if (NULL == pe_session->pLimReAssocReq)
 		return;
 
 	frm = qdf_mem_malloc(sizeof(*frm));
 	if (!frm)
 		goto err;
-	nAddIELen = psessionEntry->pLimReAssocReq->addIEAssoc.length;
-	pAddIE = psessionEntry->pLimReAssocReq->addIEAssoc.addIEdata;
+	nAddIELen = pe_session->pLimReAssocReq->addIEAssoc.length;
+	pAddIE = pe_session->pLimReAssocReq->addIEAssoc.addIEdata;
 
 	qdf_mem_set((uint8_t *) frm, sizeof(*frm), 0);
 
@@ -585,7 +585,7 @@
 	 * ignore the Privacy subfield within received Association and
 	 * Reassociation management frames.
 	 */
-	if (psessionEntry->encryptType == eSIR_ED_WPI)
+	if (pe_session->encryptType == eSIR_ED_WPI)
 		((tSirMacCapabilityInfo *) &caps)->privacy = 0;
 #endif
 	swap_bit_field16(caps, (uint16_t *) &frm->Capabilities);
@@ -593,48 +593,48 @@
 	frm->ListenInterval.interval = pMlmReassocReq->listenInterval;
 
 	qdf_mem_copy((uint8_t *) frm->CurrentAPAddress.mac,
-		     (uint8_t *) psessionEntry->bssId, 6);
+		     (uint8_t *) pe_session->bssId, 6);
 
 	populate_dot11f_ssid2(mac, &frm->SSID);
 	populate_dot11f_supp_rates(mac, POPULATE_DOT11F_RATES_OPERATIONAL,
-				   &frm->SuppRates, psessionEntry);
+				   &frm->SuppRates, pe_session);
 
-	fQosEnabled = (psessionEntry->limQosEnabled) &&
-		      SIR_MAC_GET_QOS(psessionEntry->limReassocBssCaps);
+	fQosEnabled = (pe_session->limQosEnabled) &&
+		      SIR_MAC_GET_QOS(pe_session->limReassocBssCaps);
 
-	fWmeEnabled = (psessionEntry->limWmeEnabled) &&
-		     LIM_BSS_CAPS_GET(WME, psessionEntry->limReassocBssQosCaps);
+	fWmeEnabled = (pe_session->limWmeEnabled) &&
+		     LIM_BSS_CAPS_GET(WME, pe_session->limReassocBssQosCaps);
 
-	fWsmEnabled = (psessionEntry->limWsmEnabled) && fWmeEnabled &&
-		     LIM_BSS_CAPS_GET(WSM, psessionEntry->limReassocBssQosCaps);
+	fWsmEnabled = (pe_session->limWsmEnabled) && fWmeEnabled &&
+		     LIM_BSS_CAPS_GET(WSM, pe_session->limReassocBssQosCaps);
 
-	if (psessionEntry->lim11hEnable &&
-	    psessionEntry->pLimReAssocReq->spectrumMgtIndicator == true) {
+	if (pe_session->lim11hEnable &&
+	    pe_session->pLimReAssocReq->spectrumMgtIndicator == true) {
 		PowerCapsPopulated = true;
 		populate_dot11f_power_caps(mac, &frm->PowerCaps, LIM_REASSOC,
-					   psessionEntry);
+					   pe_session);
 		populate_dot11f_supp_channels(mac, &frm->SuppChannels,
-				LIM_REASSOC, psessionEntry);
+				LIM_REASSOC, pe_session);
 	}
 	if (mac->rrm.rrmPEContext.rrmEnable &&
-	    SIR_MAC_GET_RRM(psessionEntry->limCurrentBssCaps)) {
+	    SIR_MAC_GET_RRM(pe_session->limCurrentBssCaps)) {
 		if (PowerCapsPopulated == false) {
 			PowerCapsPopulated = true;
 			populate_dot11f_power_caps(mac, &frm->PowerCaps,
-						   LIM_REASSOC, psessionEntry);
+						   LIM_REASSOC, pe_session);
 		}
 	}
 
 	if (fQosEnabled)
-		populate_dot11f_qos_caps_station(mac, psessionEntry,
+		populate_dot11f_qos_caps_station(mac, pe_session,
 						&frm->QOSCapsStation);
 
 	populate_dot11f_ext_supp_rates(mac, POPULATE_DOT11F_RATES_OPERATIONAL,
-				       &frm->ExtSuppRates, psessionEntry);
+				       &frm->ExtSuppRates, pe_session);
 
 	if (mac->rrm.rrmPEContext.rrmEnable &&
-	    SIR_MAC_GET_RRM(psessionEntry->limCurrentBssCaps))
-		populate_dot11f_rrm_ie(mac, &frm->RRMEnabledCap, psessionEntry);
+	    SIR_MAC_GET_RRM(pe_session->limCurrentBssCaps))
+		populate_dot11f_rrm_ie(mac, &frm->RRMEnabledCap, pe_session);
 	/* The join request *should* contain zero or one of the WPA and RSN */
 	/* IEs.  The payload send along with the request is a */
 	/* 'tSirSmeJoinReq'; the IE portion is held inside a 'tSirRSNie': */
@@ -659,41 +659,41 @@
 		wpsIe = limGetWscIEPtr(mac, pAddIE, nAddIELen);
 	if (NULL == wpsIe) {
 		populate_dot11f_rsn_opaque(mac,
-				&(psessionEntry->pLimReAssocReq->rsnIE),
+				&(pe_session->pLimReAssocReq->rsnIE),
 				&frm->RSNOpaque);
 		populate_dot11f_wpa_opaque(mac,
-				&(psessionEntry->pLimReAssocReq->rsnIE),
+				&(pe_session->pLimReAssocReq->rsnIE),
 				&frm->WPAOpaque);
 #if defined(FEATURE_WLAN_WAPI)
 		populate_dot11f_wapi_opaque(mac,
-					    &(psessionEntry->pLimReAssocReq->
+					    &(pe_session->pLimReAssocReq->
 					      rsnIE), &frm->WAPIOpaque);
 #endif /* defined(FEATURE_WLAN_WAPI) */
 	}
 	/* include WME EDCA IE as well */
 	if (fWmeEnabled) {
 		populate_dot11f_wmm_info_station_per_session(mac,
-				psessionEntry, &frm->WMMInfoStation);
+				pe_session, &frm->WMMInfoStation);
 
 		if (fWsmEnabled)
 			populate_dot11f_wmm_caps(&frm->WMMCaps);
 	}
 
-	if (psessionEntry->htCapability &&
+	if (pe_session->htCapability &&
 	    mac->lim.htCapabilityPresentInBeacon) {
-		populate_dot11f_ht_caps(mac, psessionEntry, &frm->HTCaps);
+		populate_dot11f_ht_caps(mac, pe_session, &frm->HTCaps);
 	}
-	if (psessionEntry->vhtCapability &&
-	    psessionEntry->vhtCapabilityPresentInBeacon) {
+	if (pe_session->vhtCapability &&
+	    pe_session->vhtCapabilityPresentInBeacon) {
 		pe_warn("Populate VHT IEs in Re-Assoc Request");
-		populate_dot11f_vht_caps(mac, psessionEntry, &frm->VHTCaps);
+		populate_dot11f_vht_caps(mac, pe_session, &frm->VHTCaps);
 		isVHTEnabled = true;
 	}
-	populate_dot11f_ext_cap(mac, isVHTEnabled, &frm->ExtCap, psessionEntry);
+	populate_dot11f_ext_cap(mac, isVHTEnabled, &frm->ExtCap, pe_session);
 
-	if (lim_is_session_he_capable(psessionEntry)) {
+	if (lim_is_session_he_capable(pe_session)) {
 		pe_debug("Populate HE IEs");
-		populate_dot11f_he_caps(mac, psessionEntry,
+		populate_dot11f_he_caps(mac, pe_session,
 					&frm->he_cap);
 	}
 
@@ -712,10 +712,10 @@
 	qdf_status = cds_packet_alloc((uint16_t) nBytes, (void **)&pFrame,
 				      (void **)&pPacket);
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
-		psessionEntry->limMlmState = psessionEntry->limPrevMlmState;
+		pe_session->limMlmState = pe_session->limPrevMlmState;
 		MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_MLM_STATE,
-				 psessionEntry->peSessionId,
-				 psessionEntry->limMlmState));
+				 pe_session->peSessionId,
+				 pe_session->limMlmState));
 		pe_err("Failed to alloc %d bytes for a ReAssociation Req",
 			nBytes);
 		goto end;
@@ -725,8 +725,8 @@
 
 	/* Next, we fill out the buffer descriptor: */
 	lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
-		SIR_MAC_MGMT_REASSOC_REQ, psessionEntry->limReAssocbssId,
-		psessionEntry->selfMacAddr);
+		SIR_MAC_MGMT_REASSOC_REQ, pe_session->limReAssocbssId,
+		pe_session->selfMacAddr);
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 
 	/* That done, pack the Probe Request: */
@@ -743,10 +743,10 @@
 
 	pe_debug("*** Sending Re-Association Request length: %d" "to", nBytes);
 
-	if (psessionEntry->assocReq != NULL) {
-		qdf_mem_free(psessionEntry->assocReq);
-		psessionEntry->assocReq = NULL;
-		psessionEntry->assocReqLen = 0;
+	if (pe_session->assocReq != NULL) {
+		qdf_mem_free(pe_session->assocReq);
+		pe_session->assocReq = NULL;
+		pe_session->assocReqLen = 0;
 	}
 
 	if (nAddIELen) {
@@ -755,30 +755,30 @@
 		nPayload += nAddIELen;
 	}
 
-	psessionEntry->assocReq = qdf_mem_malloc(nPayload);
-	if (psessionEntry->assocReq) {
+	pe_session->assocReq = qdf_mem_malloc(nPayload);
+	if (pe_session->assocReq) {
 		/* Store the Assocrequest. It is sent to csr in joincnfrsp */
-		qdf_mem_copy(psessionEntry->assocReq,
+		qdf_mem_copy(pe_session->assocReq,
 			     pFrame + sizeof(tSirMacMgmtHdr), nPayload);
-		psessionEntry->assocReqLen = nPayload;
+		pe_session->assocReqLen = nPayload;
 	}
 
 	if ((BAND_5G ==
-		lim_get_rf_band(psessionEntry->currentOperChannel))
-			|| (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE) ||
-			(psessionEntry->pePersona == QDF_P2P_GO_MODE))
+		lim_get_rf_band(pe_session->currentOperChannel))
+			|| (pe_session->pePersona == QDF_P2P_CLIENT_MODE) ||
+			(pe_session->pePersona == QDF_P2P_GO_MODE))
 		txFlag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
 
-	if (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE ||
-		psessionEntry->pePersona == QDF_STA_MODE)
+	if (pe_session->pePersona == QDF_P2P_CLIENT_MODE ||
+		pe_session->pePersona == QDF_STA_MODE)
 		txFlag |= HAL_USE_PEER_STA_REQUESTED_MASK;
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-			 psessionEntry->peSessionId, pMacHdr->fc.subType));
+			 pe_session->peSessionId, pMacHdr->fc.subType));
 	lim_diag_event_report(mac, WLAN_PE_DIAG_REASSOC_START_EVENT,
-			      psessionEntry, QDF_STATUS_SUCCESS, QDF_STATUS_SUCCESS);
+			      pe_session, QDF_STATUS_SUCCESS, QDF_STATUS_SUCCESS);
 	lim_diag_mgmt_tx_event_report(mac, pMacHdr,
-				      psessionEntry, QDF_STATUS_SUCCESS,
+				      pe_session, QDF_STATUS_SUCCESS,
 				      QDF_STATUS_SUCCESS);
 	qdf_status =
 		wma_tx_frame(mac, pPacket,
@@ -788,7 +788,7 @@
 			   RATEID_DEFAULT);
 	MTRACE(qdf_trace
 		       (QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-		       psessionEntry->peSessionId, qdf_status));
+		       pe_session->peSessionId, qdf_status));
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 		pe_err("Failed to send Re-Association Request: %X!",
 			qdf_status);
@@ -800,7 +800,7 @@
 err:
 	/* Free up buffer allocated for mlmAssocReq */
 	qdf_mem_free(pMlmReassocReq);
-	psessionEntry->pLimMlmReassocReq = NULL;
+	pe_session->pLimMlmReassocReq = NULL;
 
 }
 
diff --git a/core/mac/src/pe/lim/lim_send_management_frames.c b/core/mac/src/pe/lim/lim_send_management_frames.c
index dfc94ef..048cba8 100644
--- a/core/mac/src/pe/lim/lim_send_management_frames.c
+++ b/core/mac/src/pe/lim/lim_send_management_frames.c
@@ -870,7 +870,7 @@
 void
 lim_send_addts_req_action_frame(tpAniSirGlobal mac,
 				tSirMacAddr peerMacAddr,
-				tSirAddtsReqInfo *pAddTS, struct pe_session *psessionEntry)
+				tSirAddtsReqInfo *pAddTS, struct pe_session *pe_session)
 {
 	uint16_t i;
 	uint8_t *pFrame;
@@ -886,11 +886,11 @@
 	uint8_t txFlag = 0;
 	uint8_t smeSessionId = 0;
 
-	if (NULL == psessionEntry) {
+	if (NULL == pe_session) {
 		return;
 	}
 
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 
 	if (!pAddTS->wmeTspecPresent) {
 		qdf_mem_set((uint8_t *) &AddTSReq, sizeof(AddTSReq), 0);
@@ -958,7 +958,7 @@
 
 		populate_dot11f_wmmtspec(&pAddTS->tspec, &WMMAddTSReq.WMMTSPEC);
 #ifdef FEATURE_WLAN_ESE
-		lim_get_phy_mode(mac, &phyMode, psessionEntry);
+		lim_get_phy_mode(mac, &phyMode, pe_session);
 
 		if (phyMode == WNI_CFG_PHY_MODE_11G
 		    || phyMode == WNI_CFG_PHY_MODE_11A) {
@@ -1000,12 +1000,12 @@
 
 	/* Next, we fill out the buffer descriptor: */
 	lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
-		SIR_MAC_MGMT_ACTION, peerMacAddr, psessionEntry->selfMacAddr);
+		SIR_MAC_MGMT_ACTION, peerMacAddr, pe_session->selfMacAddr);
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 
-	sir_copy_mac_addr(pMacHdr->bssId, psessionEntry->bssId);
+	sir_copy_mac_addr(pMacHdr->bssId, pe_session->bssId);
 
-	lim_set_protected_bit(mac, psessionEntry, peerMacAddr, pMacHdr);
+	lim_set_protected_bit(mac, pe_session, peerMacAddr, pMacHdr);
 
 	/* That done, pack the struct: */
 	if (!pAddTS->wmeTspecPresent) {
@@ -1042,17 +1042,17 @@
 	lim_print_mac_addr(mac, peerMacAddr, LOGD);
 
 	if ((BAND_5G ==
-	     lim_get_rf_band(psessionEntry->currentOperChannel))
-	    || (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE)
-	    || (psessionEntry->pePersona == QDF_P2P_GO_MODE)
+	     lim_get_rf_band(pe_session->currentOperChannel))
+	    || (pe_session->pePersona == QDF_P2P_CLIENT_MODE)
+	    || (pe_session->pePersona == QDF_P2P_GO_MODE)
 	    ) {
 		txFlag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
 	}
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-			 psessionEntry->peSessionId, pMacHdr->fc.subType));
+			 pe_session->peSessionId, pMacHdr->fc.subType));
 	lim_diag_mgmt_tx_event_report(mac, pMacHdr,
-				      psessionEntry, QDF_STATUS_SUCCESS,
+				      pe_session, QDF_STATUS_SUCCESS,
 				      QDF_STATUS_SUCCESS);
 
 	/* Queue Addts Response frame in high priority WQ */
@@ -1062,7 +1062,7 @@
 				7, lim_tx_complete, pFrame, txFlag,
 				smeSessionId, 0, RATEID_DEFAULT);
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-			 psessionEntry->peSessionId, qdf_status));
+			 pe_session->peSessionId, qdf_status));
 
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status))
 		pe_err("Could not send an Add TS Request (%X",
@@ -1429,7 +1429,7 @@
 				tSirMacAddr peer,
 				uint8_t wmmTspecPresent,
 				tSirMacTSInfo *pTsinfo,
-				tSirMacTspecIE *pTspecIe, struct pe_session *psessionEntry)
+				tSirMacTspecIE *pTspecIe, struct pe_session *pe_session)
 {
 	uint8_t *pFrame;
 	tpSirMacMgmtHdr pMacHdr;
@@ -1441,11 +1441,11 @@
 	uint8_t txFlag = 0;
 	uint8_t smeSessionId = 0;
 
-	if (NULL == psessionEntry) {
+	if (NULL == pe_session) {
 		return;
 	}
 
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 
 	if (!wmmTspecPresent) {
 		qdf_mem_set((uint8_t *) &DelTS, sizeof(DelTS), 0);
@@ -1498,12 +1498,12 @@
 
 	/* Next, we fill out the buffer descriptor: */
 	lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
-		SIR_MAC_MGMT_ACTION, peer, psessionEntry->selfMacAddr);
+		SIR_MAC_MGMT_ACTION, peer, pe_session->selfMacAddr);
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 
-	sir_copy_mac_addr(pMacHdr->bssId, psessionEntry->bssId);
+	sir_copy_mac_addr(pMacHdr->bssId, pe_session->bssId);
 
-	lim_set_protected_bit(mac, psessionEntry, peer, pMacHdr);
+	lim_set_protected_bit(mac, pe_session, peer, pMacHdr);
 
 	/* That done, pack the struct: */
 	if (!wmmTspecPresent) {
@@ -1538,17 +1538,17 @@
 	lim_print_mac_addr(mac, pMacHdr->da, LOGD);
 
 	if ((BAND_5G ==
-	     lim_get_rf_band(psessionEntry->currentOperChannel))
-	    || (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE)
-	    || (psessionEntry->pePersona == QDF_P2P_GO_MODE)
+	     lim_get_rf_band(pe_session->currentOperChannel))
+	    || (pe_session->pePersona == QDF_P2P_CLIENT_MODE)
+	    || (pe_session->pePersona == QDF_P2P_GO_MODE)
 	    ) {
 		txFlag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
 	}
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-			 psessionEntry->peSessionId, pMacHdr->fc.subType));
+			 pe_session->peSessionId, pMacHdr->fc.subType));
 	lim_diag_mgmt_tx_event_report(mac, pMacHdr,
-				      psessionEntry, QDF_STATUS_SUCCESS,
+				      pe_session, QDF_STATUS_SUCCESS,
 				      QDF_STATUS_SUCCESS);
 	qdf_status = wma_tx_frame(mac, pPacket, (uint16_t) nBytes,
 				TXRX_FRM_802_11_MGMT,
@@ -1556,7 +1556,7 @@
 				7, lim_tx_complete, pFrame, txFlag,
 				smeSessionId, 0, RATEID_DEFAULT);
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-			 psessionEntry->peSessionId, qdf_status));
+			 pe_session->peSessionId, qdf_status));
 	/* Pkt will be freed up by the callback */
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status))
 		pe_err("Failed to send Del TS (%X)!", qdf_status);
@@ -2833,7 +2833,7 @@
 lim_send_disassoc_mgmt_frame(tpAniSirGlobal mac,
 			     uint16_t nReason,
 			     tSirMacAddr peer,
-			     struct pe_session *psessionEntry, bool waitForAck)
+			     struct pe_session *pe_session, bool waitForAck)
 {
 	tDot11fDisassociation frm;
 	uint8_t *pFrame;
@@ -2845,7 +2845,7 @@
 	uint32_t val = 0;
 	uint8_t smeSessionId = 0;
 
-	if (NULL == psessionEntry) {
+	if (NULL == pe_session) {
 		return;
 	}
 
@@ -2853,15 +2853,15 @@
 	 * In case when cac timer is running for this SAP session then
 	 * avoid sending disassoc out. It is violation of dfs specification.
 	 */
-	if (((psessionEntry->pePersona == QDF_SAP_MODE) ||
-	    (psessionEntry->pePersona == QDF_P2P_GO_MODE)) &&
+	if (((pe_session->pePersona == QDF_SAP_MODE) ||
+	    (pe_session->pePersona == QDF_P2P_GO_MODE)) &&
 	    (true == mac->sap.SapDfsInfo.is_dfs_cac_timer_running)) {
 		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO,
 			  FL
 				  ("CAC timer is running, drop disassoc from going out"));
 		return;
 	}
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 
 	qdf_mem_set((uint8_t *) &frm, sizeof(frm), 0);
 
@@ -2892,13 +2892,13 @@
 
 	/* Next, we fill out the buffer descriptor: */
 	lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
-		SIR_MAC_MGMT_DISASSOC, peer, psessionEntry->selfMacAddr);
+		SIR_MAC_MGMT_DISASSOC, peer, pe_session->selfMacAddr);
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 
 	/* Prepare the BSSID */
-	sir_copy_mac_addr(pMacHdr->bssId, psessionEntry->bssId);
+	sir_copy_mac_addr(pMacHdr->bssId, pe_session->bssId);
 
-	lim_set_protected_bit(mac, psessionEntry, peer, pMacHdr);
+	lim_set_protected_bit(mac, pe_session, peer, pMacHdr);
 
 	nStatus = dot11f_pack_disassociation(mac, &frm, pFrame +
 					     sizeof(tSirMacMgmtHdr),
@@ -2915,13 +2915,13 @@
 
 	pe_debug("***Sessionid %d Sending Disassociation frame with "
 		   "reason %u and waitForAck %d to " MAC_ADDRESS_STR " ,From "
-		   MAC_ADDRESS_STR, psessionEntry->peSessionId, nReason,
+		   MAC_ADDRESS_STR, pe_session->peSessionId, nReason,
 		waitForAck, MAC_ADDR_ARRAY(pMacHdr->da),
-		MAC_ADDR_ARRAY(psessionEntry->selfMacAddr));
+		MAC_ADDR_ARRAY(pe_session->selfMacAddr));
 
-	if ((BAND_5G == lim_get_rf_band(psessionEntry->currentOperChannel))
-	    || (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE) ||
-	    (psessionEntry->pePersona == QDF_P2P_GO_MODE)
+	if ((BAND_5G == lim_get_rf_band(pe_session->currentOperChannel))
+	    || (pe_session->pePersona == QDF_P2P_CLIENT_MODE) ||
+	    (pe_session->pePersona == QDF_P2P_GO_MODE)
 	    ) {
 		txFlag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
 	}
@@ -2930,10 +2930,10 @@
 
 	if (waitForAck) {
 		MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-				 psessionEntry->peSessionId,
+				 pe_session->peSessionId,
 				 pMacHdr->fc.subType));
 		lim_diag_mgmt_tx_event_report(mac, pMacHdr,
-					      psessionEntry, QDF_STATUS_SUCCESS,
+					      pe_session, QDF_STATUS_SUCCESS,
 					      QDF_STATUS_SUCCESS);
 		/* Queue Disassociation frame in high priority WQ */
 		/* get the duration from the request */
@@ -2946,7 +2946,7 @@
 					 RATEID_DEFAULT);
 		MTRACE(qdf_trace
 			       (QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-			       psessionEntry->peSessionId, qdf_status));
+			       pe_session->peSessionId, qdf_status));
 
 		val = SYS_MS_TO_TICKS(LIM_DISASSOC_DEAUTH_ACK_TIMEOUT);
 
@@ -2965,10 +2965,10 @@
 		}
 	} else {
 		MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-				 psessionEntry->peSessionId,
+				 pe_session->peSessionId,
 				 pMacHdr->fc.subType));
 		lim_diag_mgmt_tx_event_report(mac, pMacHdr,
-					      psessionEntry,
+					      pe_session,
 					      QDF_STATUS_SUCCESS, QDF_STATUS_SUCCESS);
 		/* Queue Disassociation frame in high priority WQ */
 		qdf_status = wma_tx_frame(mac, pPacket, (uint16_t) nBytes,
@@ -2979,7 +2979,7 @@
 					smeSessionId, 0, RATEID_DEFAULT);
 		MTRACE(qdf_trace
 			       (QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-			       psessionEntry->peSessionId, qdf_status));
+			       pe_session->peSessionId, qdf_status));
 		if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 			pe_err("Failed to send Disassociation (%X)!",
 				qdf_status);
@@ -3006,7 +3006,7 @@
 lim_send_deauth_mgmt_frame(tpAniSirGlobal mac,
 			   uint16_t nReason,
 			   tSirMacAddr peer,
-			   struct pe_session *psessionEntry, bool waitForAck)
+			   struct pe_session *pe_session, bool waitForAck)
 {
 	tDot11fDeAuth frm;
 	uint8_t *pFrame;
@@ -3022,7 +3022,7 @@
 #endif
 	uint8_t smeSessionId = 0;
 
-	if (NULL == psessionEntry) {
+	if (NULL == pe_session) {
 		return;
 	}
 
@@ -3030,15 +3030,15 @@
 	 * In case when cac timer is running for this SAP session then
 	 * avoid deauth frame out. It is violation of dfs specification.
 	 */
-	if (((psessionEntry->pePersona == QDF_SAP_MODE) ||
-	    (psessionEntry->pePersona == QDF_P2P_GO_MODE)) &&
+	if (((pe_session->pePersona == QDF_SAP_MODE) ||
+	    (pe_session->pePersona == QDF_P2P_GO_MODE)) &&
 	    (true == mac->sap.SapDfsInfo.is_dfs_cac_timer_running)) {
 		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO,
 			  FL
 				  ("CAC timer is running, drop the deauth from going out"));
 		return;
 	}
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 
 	qdf_mem_set((uint8_t *) &frm, sizeof(frm), 0);
 
@@ -3069,13 +3069,13 @@
 
 	/* Next, we fill out the buffer descriptor: */
 	lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
-		SIR_MAC_MGMT_DEAUTH, peer, psessionEntry->selfMacAddr);
+		SIR_MAC_MGMT_DEAUTH, peer, pe_session->selfMacAddr);
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 
 	/* Prepare the BSSID */
-	sir_copy_mac_addr(pMacHdr->bssId, psessionEntry->bssId);
+	sir_copy_mac_addr(pMacHdr->bssId, pe_session->bssId);
 
-	lim_set_protected_bit(mac, psessionEntry, peer, pMacHdr);
+	lim_set_protected_bit(mac, pe_session, peer, pMacHdr);
 
 	nStatus = dot11f_pack_de_auth(mac, &frm, pFrame +
 				      sizeof(tSirMacMgmtHdr), nPayload, &nPayload);
@@ -3091,13 +3091,13 @@
 	pe_debug("***Sessionid %d Sending Deauth frame with "
 		       "reason %u and waitForAck %d to " MAC_ADDRESS_STR
 		       " ,From " MAC_ADDRESS_STR,
-		psessionEntry->peSessionId, nReason, waitForAck,
+		pe_session->peSessionId, nReason, waitForAck,
 		MAC_ADDR_ARRAY(pMacHdr->da),
-		MAC_ADDR_ARRAY(psessionEntry->selfMacAddr));
+		MAC_ADDR_ARRAY(pe_session->selfMacAddr));
 
-	if ((BAND_5G == lim_get_rf_band(psessionEntry->currentOperChannel))
-	    || (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE) ||
-	    (psessionEntry->pePersona == QDF_P2P_GO_MODE)
+	if ((BAND_5G == lim_get_rf_band(pe_session->currentOperChannel))
+	    || (pe_session->pePersona == QDF_P2P_CLIENT_MODE) ||
+	    (pe_session->pePersona == QDF_P2P_GO_MODE)
 	    ) {
 		txFlag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
 	}
@@ -3106,15 +3106,15 @@
 #ifdef FEATURE_WLAN_TDLS
 	pStaDs =
 		dph_lookup_hash_entry(mac, peer, &aid,
-				      &psessionEntry->dph.dphHashTable);
+				      &pe_session->dph.dphHashTable);
 #endif
 
 	if (waitForAck) {
 		MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-				 psessionEntry->peSessionId,
+				 pe_session->peSessionId,
 				 pMacHdr->fc.subType));
 		lim_diag_mgmt_tx_event_report(mac, pMacHdr,
-					      psessionEntry,
+					      pe_session,
 					      QDF_STATUS_SUCCESS, QDF_STATUS_SUCCESS);
 		/* Queue Disassociation frame in high priority WQ */
 		qdf_status =
@@ -3126,7 +3126,7 @@
 					 RATEID_DEFAULT);
 		MTRACE(qdf_trace
 			       (QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-			       psessionEntry->peSessionId, qdf_status));
+			       pe_session->peSessionId, qdf_status));
 		/* Pkt will be freed up by the callback lim_tx_complete */
 		if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 			pe_err("Failed to send De-Authentication (%X)!",
@@ -3156,14 +3156,14 @@
 		}
 	} else {
 		MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-				 psessionEntry->peSessionId,
+				 pe_session->peSessionId,
 				 pMacHdr->fc.subType));
 #ifdef FEATURE_WLAN_TDLS
 		if ((NULL != pStaDs)
 		    && (STA_ENTRY_TDLS_PEER == pStaDs->staType)) {
 			/* Queue Disassociation frame in high priority WQ */
 			lim_diag_mgmt_tx_event_report(mac, pMacHdr,
-						      psessionEntry,
+						      pe_session,
 						      QDF_STATUS_SUCCESS,
 						      QDF_STATUS_SUCCESS);
 			qdf_status =
@@ -3174,7 +3174,7 @@
 		} else {
 #endif
 		lim_diag_mgmt_tx_event_report(mac, pMacHdr,
-					      psessionEntry,
+					      pe_session,
 					      QDF_STATUS_SUCCESS,
 					      QDF_STATUS_SUCCESS);
 		/* Queue Disassociation frame in high priority WQ */
@@ -3187,7 +3187,7 @@
 	}
 #endif
 		MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-				 psessionEntry->peSessionId, qdf_status));
+				 pe_session->peSessionId, qdf_status));
 		if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 			pe_err("Failed to send De-Authentication (%X)!",
 				qdf_status);
@@ -3214,7 +3214,7 @@
 QDF_STATUS
 lim_send_meas_report_frame(tpAniSirGlobal mac,
 			   tpSirMacMeasReqActionFrame pMeasReqFrame,
-			   tSirMacAddr peer, struct pe_session *psessionEntry)
+			   tSirMacAddr peer, struct pe_session *pe_session)
 {
 	tDot11fMeasurementReport frm;
 	uint8_t *pFrame;
@@ -3286,9 +3286,9 @@
 		SIR_MAC_MGMT_ACTION, peer);
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 
-	qdf_mem_copy(pMacHdr->bssId, psessionEntry->bssId, sizeof(tSirMacAddr));
+	qdf_mem_copy(pMacHdr->bssId, pe_session->bssId, sizeof(tSirMacAddr));
 
-	lim_set_protected_bit(mac, psessionEntry, peer, pMacHdr);
+	lim_set_protected_bit(mac, pe_session, peer, pMacHdr);
 
 	nStatus = dot11f_pack_measurement_report(mac, &frm, pFrame +
 						 sizeof(tSirMacMgmtHdr),
@@ -3305,7 +3305,7 @@
 	}
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-			 ((psessionEntry) ? psessionEntry->
+			 ((pe_session) ? pe_session->
 			  peSessionId : NO_SESSION), pMacHdr->fc.subType));
 	qdf_status =
 		wma_tx_frame(mac, pPacket, (uint16_t) nBytes,
@@ -3313,7 +3313,7 @@
 			   lim_tx_complete, pFrame, 0, 0, RATEID_DEFAULT);
 	MTRACE(qdf_trace
 		       (QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-		       ((psessionEntry) ? psessionEntry->peSessionId : NO_SESSION),
+		       ((pe_session) ? pe_session->peSessionId : NO_SESSION),
 		       qdf_status));
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 		pe_err("Failed to send a Measurement Report (%X)!",
@@ -3339,7 +3339,7 @@
 
 void
 lim_send_tpc_request_frame(tpAniSirGlobal mac,
-			   tSirMacAddr peer, struct pe_session *psessionEntry)
+			   tSirMacAddr peer, struct pe_session *pe_session)
 {
 	tDot11fTPCRequest frm;
 	uint8_t *pFrame;
@@ -3384,9 +3384,9 @@
 		SIR_MAC_MGMT_ACTION, peer);
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 
-	qdf_mem_copy(pMacHdr->bssId, psessionEntry->bssId, sizeof(tSirMacAddr));
+	qdf_mem_copy(pMacHdr->bssId, pe_session->bssId, sizeof(tSirMacAddr));
 
-	lim_set_protected_bit(mac, psessionEntry, peer, pMacHdr);
+	lim_set_protected_bit(mac, pe_session, peer, pMacHdr);
 
 	nStatus = dot11f_pack_tpc_request(mac, &frm, pFrame +
 					  sizeof(tSirMacMgmtHdr),
@@ -3403,7 +3403,7 @@
 	}
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-			 ((psessionEntry) ? psessionEntry->
+			 ((pe_session) ? pe_session->
 			  peSessionId : NO_SESSION), pMacHdr->fc.subType));
 	qdf_status =
 		wma_tx_frame(mac, pPacket, (uint16_t) nBytes,
@@ -3411,7 +3411,7 @@
 			   lim_tx_complete, pFrame, 0, 0, RATEID_DEFAULT);
 	MTRACE(qdf_trace
 		       (QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-		       ((psessionEntry) ? psessionEntry->peSessionId : NO_SESSION),
+		       ((pe_session) ? pe_session->peSessionId : NO_SESSION),
 		       qdf_status));
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 		pe_err("Failed to send a TPC Request (%X)!",
@@ -3437,7 +3437,7 @@
 QDF_STATUS
 lim_send_tpc_report_frame(tpAniSirGlobal mac,
 			  tpSirMacTpcReqActionFrame pTpcReqFrame,
-			  tSirMacAddr peer, struct pe_session *psessionEntry)
+			  tSirMacAddr peer, struct pe_session *pe_session)
 {
 	tDot11fTPCReport frm;
 	uint8_t *pFrame;
@@ -3486,9 +3486,9 @@
 
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 
-	qdf_mem_copy(pMacHdr->bssId, psessionEntry->bssId, sizeof(tSirMacAddr));
+	qdf_mem_copy(pMacHdr->bssId, pe_session->bssId, sizeof(tSirMacAddr));
 
-	lim_set_protected_bit(mac, psessionEntry, peer, pMacHdr);
+	lim_set_protected_bit(mac, pe_session, peer, pMacHdr);
 
 	nStatus = dot11f_pack_tpc_report(mac, &frm, pFrame +
 					 sizeof(tSirMacMgmtHdr),
@@ -3504,7 +3504,7 @@
 			nStatus);
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-			 ((psessionEntry) ? psessionEntry->
+			 ((pe_session) ? pe_session->
 			  peSessionId : NO_SESSION), pMacHdr->fc.subType));
 	qdf_status =
 		wma_tx_frame(mac, pPacket, (uint16_t) nBytes,
@@ -3512,7 +3512,7 @@
 			   lim_tx_complete, pFrame, 0, 0, RATEID_DEFAULT);
 	MTRACE(qdf_trace
 		(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-		((psessionEntry) ? psessionEntry->peSessionId : NO_SESSION),
+		((pe_session) ? pe_session->peSessionId : NO_SESSION),
 		qdf_status));
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 		pe_err("Failed to send a TPC Report (%X)!",
@@ -3550,7 +3550,7 @@
 				   tSirMacAddr peer,
 				   uint8_t nMode,
 				   uint8_t nNewChannel,
-				   uint8_t nCount, struct pe_session *psessionEntry)
+				   uint8_t nCount, struct pe_session *pe_session)
 {
 	tDot11fChannelSwitch frm;
 	uint8_t *pFrame;
@@ -3562,11 +3562,11 @@
 
 	uint8_t smeSessionId = 0;
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session entry is NULL!!!");
 		return QDF_STATUS_E_FAILURE;
 	}
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 
 	qdf_mem_set((uint8_t *) &frm, sizeof(frm), 0);
 
@@ -3603,12 +3603,12 @@
 	/* Next, we fill out the buffer descriptor: */
 	lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
 		SIR_MAC_MGMT_ACTION, peer,
-		psessionEntry->selfMacAddr);
+		pe_session->selfMacAddr);
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 	qdf_mem_copy((uint8_t *) pMacHdr->bssId,
-		     (uint8_t *) psessionEntry->bssId, sizeof(tSirMacAddr));
+		     (uint8_t *) pe_session->bssId, sizeof(tSirMacAddr));
 
-	lim_set_protected_bit(mac, psessionEntry, peer, pMacHdr);
+	lim_set_protected_bit(mac, pe_session, peer, pMacHdr);
 
 	nStatus = dot11f_pack_channel_switch(mac, &frm, pFrame +
 					     sizeof(tSirMacMgmtHdr),
@@ -3623,22 +3623,22 @@
 			nStatus);
 	}
 
-	if ((BAND_5G == lim_get_rf_band(psessionEntry->currentOperChannel))
-	    || (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE) ||
-	    (psessionEntry->pePersona == QDF_P2P_GO_MODE)
+	if ((BAND_5G == lim_get_rf_band(pe_session->currentOperChannel))
+	    || (pe_session->pePersona == QDF_P2P_CLIENT_MODE) ||
+	    (pe_session->pePersona == QDF_P2P_GO_MODE)
 	    ) {
 		txFlag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
 	}
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-			 psessionEntry->peSessionId, pMacHdr->fc.subType));
+			 pe_session->peSessionId, pMacHdr->fc.subType));
 	qdf_status = wma_tx_frame(mac, pPacket, (uint16_t) nBytes,
 				TXRX_FRM_802_11_MGMT,
 				ANI_TXDIR_TODS,
 				7, lim_tx_complete, pFrame, txFlag,
 				smeSessionId, 0, RATEID_DEFAULT);
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-			 psessionEntry->peSessionId, qdf_status));
+			 pe_session->peSessionId, qdf_status));
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 		pe_err("Failed to send a Channel Switch (%X)!",
 			qdf_status);
@@ -3953,7 +3953,7 @@
 QDF_STATUS
 lim_send_vht_opmode_notification_frame(tpAniSirGlobal mac,
 				       tSirMacAddr peer,
-				       uint8_t nMode, struct pe_session *psessionEntry)
+				       uint8_t nMode, struct pe_session *pe_session)
 {
 	tDot11fOperatingMode frm;
 	uint8_t *pFrame;
@@ -3965,11 +3965,11 @@
 
 	uint8_t smeSessionId = 0;
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session entry is NULL!!!");
 		return QDF_STATUS_E_FAILURE;
 	}
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 
 	qdf_mem_set((uint8_t *) &frm, sizeof(frm), 0);
 
@@ -4004,17 +4004,17 @@
 	qdf_mem_set(pFrame, nBytes, 0);
 
 	/* Next, we fill out the buffer descriptor: */
-	if (psessionEntry->pePersona == QDF_SAP_MODE)
+	if (pe_session->pePersona == QDF_SAP_MODE)
 		lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
 			SIR_MAC_MGMT_ACTION, peer,
-			psessionEntry->selfMacAddr);
+			pe_session->selfMacAddr);
 	else
 		lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
-			SIR_MAC_MGMT_ACTION, psessionEntry->bssId,
-			psessionEntry->selfMacAddr);
+			SIR_MAC_MGMT_ACTION, pe_session->bssId,
+			pe_session->selfMacAddr);
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 	qdf_mem_copy((uint8_t *) pMacHdr->bssId,
-		     (uint8_t *) psessionEntry->bssId, sizeof(tSirMacAddr));
+		     (uint8_t *) pe_session->bssId, sizeof(tSirMacAddr));
 	nStatus = dot11f_pack_operating_mode(mac, &frm, pFrame +
 					     sizeof(tSirMacMgmtHdr),
 					     nPayload, &nPayload);
@@ -4027,22 +4027,22 @@
 		pe_warn("There were warnings while packing a Operating Mode (0x%08x)",
 			nStatus);
 	}
-	if ((BAND_5G == lim_get_rf_band(psessionEntry->currentOperChannel))
-	    || (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE) ||
-	    (psessionEntry->pePersona == QDF_P2P_GO_MODE)
+	if ((BAND_5G == lim_get_rf_band(pe_session->currentOperChannel))
+	    || (pe_session->pePersona == QDF_P2P_CLIENT_MODE) ||
+	    (pe_session->pePersona == QDF_P2P_GO_MODE)
 	    ) {
 		txFlag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
 	}
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-			 psessionEntry->peSessionId, pMacHdr->fc.subType));
+			 pe_session->peSessionId, pMacHdr->fc.subType));
 	qdf_status = wma_tx_frame(mac, pPacket, (uint16_t) nBytes,
 				TXRX_FRM_802_11_MGMT,
 				ANI_TXDIR_TODS,
 				7, lim_tx_complete, pFrame, txFlag,
 				smeSessionId, 0, RATEID_DEFAULT);
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-			 psessionEntry->peSessionId, qdf_status));
+			 pe_session->peSessionId, qdf_status));
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 		pe_err("Failed to send a Channel Switch (%X)!",
 			qdf_status);
@@ -4063,7 +4063,7 @@
  *
  * \param peer mac address of peer station.
  *
- * \param psessionEntry address of session entry.
+ * \param pe_session address of session entry.
  *
  * \return QDF_STATUS_SUCCESS on success, QDF_STATUS_E_FAILURE else
  *
@@ -4073,7 +4073,7 @@
 QDF_STATUS
 lim_send_neighbor_report_request_frame(tpAniSirGlobal mac,
 				       tpSirMacNeighborReportReq pNeighborReq,
-				       tSirMacAddr peer, struct pe_session *psessionEntry)
+				       tSirMacAddr peer, struct pe_session *pe_session)
 {
 	QDF_STATUS statusCode = QDF_STATUS_SUCCESS;
 	tDot11fNeighborReportRequest frm;
@@ -4085,11 +4085,11 @@
 	uint8_t txFlag = 0;
 	uint8_t smeSessionId = 0;
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("(psession == NULL) in Request to send Neighbor Report request action frame");
 		return QDF_STATUS_E_FAILURE;
 	}
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 	qdf_mem_set((uint8_t *) &frm, sizeof(frm), 0);
 
 	frm.Category.category = SIR_MAC_ACTION_RRM;
@@ -4127,14 +4127,14 @@
 
 	/* Copy necessary info to BD */
 	lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
-		SIR_MAC_MGMT_ACTION, peer, psessionEntry->selfMacAddr);
+		SIR_MAC_MGMT_ACTION, peer, pe_session->selfMacAddr);
 
 	/* Update A3 with the BSSID */
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 
-	sir_copy_mac_addr(pMacHdr->bssId, psessionEntry->bssId);
+	sir_copy_mac_addr(pMacHdr->bssId, pe_session->bssId);
 
-	lim_set_protected_bit(mac, psessionEntry, peer, pMacHdr);
+	lim_set_protected_bit(mac, pe_session, peer, pMacHdr);
 
 	/* Now, we're ready to "pack" the frames */
 	nStatus = dot11f_pack_neighbor_report_request(mac,
@@ -4158,15 +4158,15 @@
 	pe_debug("Sending a Neighbor Report Request to");
 	lim_print_mac_addr(mac, peer, LOGD);
 
-	if ((BAND_5G == lim_get_rf_band(psessionEntry->currentOperChannel))
-	    || (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE) ||
-	    (psessionEntry->pePersona == QDF_P2P_GO_MODE)
+	if ((BAND_5G == lim_get_rf_band(pe_session->currentOperChannel))
+	    || (pe_session->pePersona == QDF_P2P_CLIENT_MODE) ||
+	    (pe_session->pePersona == QDF_P2P_GO_MODE)
 	    ) {
 		txFlag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
 	}
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-			 psessionEntry->peSessionId, pMacHdr->fc.subType));
+			 pe_session->peSessionId, pMacHdr->fc.subType));
 	qdf_status = wma_tx_frame(mac,
 				pPacket,
 				(uint16_t) nBytes,
@@ -4175,7 +4175,7 @@
 				7, lim_tx_complete, pFrame, txFlag,
 				smeSessionId, 0, RATEID_DEFAULT);
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-			 psessionEntry->peSessionId, qdf_status));
+			 pe_session->peSessionId, qdf_status));
 	if (QDF_STATUS_SUCCESS != qdf_status) {
 		pe_err("wma_tx_frame FAILED! Status [%d]", qdf_status);
 		statusCode = QDF_STATUS_E_FAILURE;
@@ -4200,7 +4200,7 @@
  *
  * \param peer mac address of peer station.
  *
- * \param psessionEntry address of session entry.
+ * \param pe_session address of session entry.
  *
  * \return QDF_STATUS_SUCCESS on success, QDF_STATUS_E_FAILURE else
  *
@@ -4210,7 +4210,7 @@
 QDF_STATUS
 lim_send_link_report_action_frame(tpAniSirGlobal mac,
 				  tpSirMacLinkReport pLinkReport,
-				  tSirMacAddr peer, struct pe_session *psessionEntry)
+				  tSirMacAddr peer, struct pe_session *pe_session)
 {
 	QDF_STATUS statusCode = QDF_STATUS_SUCCESS;
 	tDot11fLinkMeasurementReport frm;
@@ -4222,7 +4222,7 @@
 	uint8_t txFlag = 0;
 	uint8_t smeSessionId = 0;
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("(psession == NULL) in Request to send Link Report action frame");
 		return QDF_STATUS_E_FAILURE;
 	}
@@ -4274,14 +4274,14 @@
 
 	/* Copy necessary info to BD */
 	lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
-		SIR_MAC_MGMT_ACTION, peer, psessionEntry->selfMacAddr);
+		SIR_MAC_MGMT_ACTION, peer, pe_session->selfMacAddr);
 
 	/* Update A3 with the BSSID */
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 
-	sir_copy_mac_addr(pMacHdr->bssId, psessionEntry->bssId);
+	sir_copy_mac_addr(pMacHdr->bssId, pe_session->bssId);
 
-	lim_set_protected_bit(mac, psessionEntry, peer, pMacHdr);
+	lim_set_protected_bit(mac, pe_session, peer, pMacHdr);
 
 	/* Now, we're ready to "pack" the frames */
 	nStatus = dot11f_pack_link_measurement_report(mac,
@@ -4304,14 +4304,14 @@
 	pe_warn("Sending a Link Report to");
 	lim_print_mac_addr(mac, peer, LOGW);
 
-	if ((BAND_5G == lim_get_rf_band(psessionEntry->currentOperChannel))
-	    || (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE) ||
-	    (psessionEntry->pePersona == QDF_P2P_GO_MODE)) {
+	if ((BAND_5G == lim_get_rf_band(pe_session->currentOperChannel))
+	    || (pe_session->pePersona == QDF_P2P_CLIENT_MODE) ||
+	    (pe_session->pePersona == QDF_P2P_GO_MODE)) {
 		txFlag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
 	}
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-			 psessionEntry->peSessionId, pMacHdr->fc.subType));
+			 pe_session->peSessionId, pMacHdr->fc.subType));
 	qdf_status = wma_tx_frame(mac,
 				pPacket,
 				(uint16_t) nBytes,
@@ -4320,7 +4320,7 @@
 				7, lim_tx_complete, pFrame, txFlag,
 				smeSessionId, 0, RATEID_DEFAULT);
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-			 psessionEntry->peSessionId, qdf_status));
+			 pe_session->peSessionId, qdf_status));
 	if (QDF_STATUS_SUCCESS != qdf_status) {
 		pe_err("wma_tx_frame FAILED! Status [%d]", qdf_status);
 		statusCode = QDF_STATUS_E_FAILURE;
@@ -4342,7 +4342,7 @@
 				bool is_last_frame,
 				tpSirMacRadioMeasureReport pRRMReport,
 				tSirMacAddr peer,
-				struct pe_session *psessionEntry)
+				struct pe_session *pe_session)
 {
 	QDF_STATUS statusCode = QDF_STATUS_SUCCESS;
 	uint8_t *pFrame;
@@ -4360,13 +4360,13 @@
 	if (!frm)
 		return QDF_STATUS_E_NOMEM;
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("(psession == NULL) in Request to send Beacon Report action frame");
 		qdf_mem_free(frm);
 		return QDF_STATUS_E_FAILURE;
 	}
 
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 
 	pe_debug("dialog_token %d num_report %d is_last_frame %d",
 		 dialog_token, num_report, is_last_frame);
@@ -4445,14 +4445,14 @@
 
 	/* Copy necessary info to BD */
 	lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
-		SIR_MAC_MGMT_ACTION, peer, psessionEntry->selfMacAddr);
+		SIR_MAC_MGMT_ACTION, peer, pe_session->selfMacAddr);
 
 	/* Update A3 with the BSSID */
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 
-	sir_copy_mac_addr(pMacHdr->bssId, psessionEntry->bssId);
+	sir_copy_mac_addr(pMacHdr->bssId, pe_session->bssId);
 
-	lim_set_protected_bit(mac, psessionEntry, peer, pMacHdr);
+	lim_set_protected_bit(mac, pe_session, peer, pMacHdr);
 
 	/* Now, we're ready to "pack" the frames */
 	nStatus = dot11f_pack_radio_measurement_report(mac,
@@ -4476,15 +4476,15 @@
 	pe_warn("Sending a Radio Measure Report to");
 	lim_print_mac_addr(mac, peer, LOGW);
 
-	if ((BAND_5G == lim_get_rf_band(psessionEntry->currentOperChannel))
-	    || (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE) ||
-	    (psessionEntry->pePersona == QDF_P2P_GO_MODE)
+	if ((BAND_5G == lim_get_rf_band(pe_session->currentOperChannel))
+	    || (pe_session->pePersona == QDF_P2P_CLIENT_MODE) ||
+	    (pe_session->pePersona == QDF_P2P_GO_MODE)
 	    ) {
 		txFlag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
 	}
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-			 psessionEntry->peSessionId, pMacHdr->fc.subType));
+			 pe_session->peSessionId, pMacHdr->fc.subType));
 	qdf_status = wma_tx_frame(mac,
 				pPacket,
 				(uint16_t) nBytes,
@@ -4493,7 +4493,7 @@
 				7, lim_tx_complete, pFrame, txFlag,
 				smeSessionId, 0, RATEID_DEFAULT);
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-			 psessionEntry->peSessionId, qdf_status));
+			 pe_session->peSessionId, qdf_status));
 	if (QDF_STATUS_SUCCESS != qdf_status) {
 		pe_err("wma_tx_frame FAILED! Status [%d]", qdf_status);
 		statusCode = QDF_STATUS_E_FAILURE;
@@ -4524,7 +4524,7 @@
  *
  * \param peer    The Mac address of the station to which this action frame is addressed
  *
- * \param psessionEntry The PE session entry
+ * \param pe_session The PE session entry
  *
  * \return QDF_STATUS_SUCCESS if setup completes successfully
  *         QDF_STATUS_E_FAILURE is some problem is encountered
@@ -4532,7 +4532,7 @@
 
 QDF_STATUS lim_send_sa_query_request_frame(tpAniSirGlobal mac, uint8_t *transId,
 					      tSirMacAddr peer,
-					      struct pe_session *psessionEntry)
+					      struct pe_session *pe_session)
 {
 
 	tDot11fSaQueryReq frm;  /* SA query request action frame */
@@ -4578,16 +4578,16 @@
 
 	/* Copy necessary info to BD */
 	lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
-		SIR_MAC_MGMT_ACTION, peer, psessionEntry->selfMacAddr);
+		SIR_MAC_MGMT_ACTION, peer, pe_session->selfMacAddr);
 
 	/* Update A3 with the BSSID */
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 
-	sir_copy_mac_addr(pMacHdr->bssId, psessionEntry->bssId);
+	sir_copy_mac_addr(pMacHdr->bssId, pe_session->bssId);
 
 	/* Since this is a SA Query Request, set the "protect" (aka WEP) bit */
 	/* in the FC */
-	lim_set_protected_bit(mac, psessionEntry, peer, pMacHdr);
+	lim_set_protected_bit(mac, pe_session, peer, pMacHdr);
 
 	/* Pack 11w SA Query Request frame */
 	nStatus = dot11f_pack_sa_query_req(mac,
@@ -4609,17 +4609,17 @@
 	pe_debug("Sending an SA Query Request to");
 	lim_print_mac_addr(mac, peer, LOGD);
 	pe_debug("Sending an SA Query Request from ");
-	lim_print_mac_addr(mac, psessionEntry->selfMacAddr, LOGD);
+	lim_print_mac_addr(mac, pe_session->selfMacAddr, LOGD);
 
-	if ((BAND_5G == lim_get_rf_band(psessionEntry->currentOperChannel))
+	if ((BAND_5G == lim_get_rf_band(pe_session->currentOperChannel))
 #ifdef WLAN_FEATURE_P2P
-	    || (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE) ||
-	    (psessionEntry->pePersona == QDF_P2P_GO_MODE)
+	    || (pe_session->pePersona == QDF_P2P_CLIENT_MODE) ||
+	    (pe_session->pePersona == QDF_P2P_GO_MODE)
 #endif
 	    ) {
 		txFlag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
 	}
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 
 	qdf_status = wma_tx_frame(mac,
 				pPacket,
@@ -4654,7 +4654,7 @@
  *
  * \param peer    The Mac address of the AP to which this action frame is addressed
  *
- * \param psessionEntry The PE session entry
+ * \param pe_session The PE session entry
  *
  * \return QDF_STATUS_SUCCESS if setup completes successfully
  *         QDF_STATUS_E_FAILURE is some problem is encountered
@@ -4662,7 +4662,7 @@
 
 QDF_STATUS lim_send_sa_query_response_frame(tpAniSirGlobal mac,
 					       uint8_t *transId, tSirMacAddr peer,
-					       struct pe_session *psessionEntry)
+					       struct pe_session *pe_session)
 {
 
 	tDot11fSaQueryRsp frm;  /* SA query response action frame */
@@ -4675,7 +4675,7 @@
 	uint8_t txFlag = 0;
 	uint8_t smeSessionId = 0;
 
-	smeSessionId = psessionEntry->smeSessionId;
+	smeSessionId = pe_session->smeSessionId;
 
 	qdf_mem_set((uint8_t *) &frm, sizeof(frm), 0);
 	frm.Category.category = SIR_MAC_ACTION_SA_QUERY;
@@ -4711,16 +4711,16 @@
 
 	/* Copy necessary info to BD */
 	lim_populate_mac_header(mac, pFrame, SIR_MAC_MGMT_FRAME,
-		SIR_MAC_MGMT_ACTION, peer, psessionEntry->selfMacAddr);
+		SIR_MAC_MGMT_ACTION, peer, pe_session->selfMacAddr);
 
 	/* Update A3 with the BSSID */
 	pMacHdr = (tpSirMacMgmtHdr) pFrame;
 
-	sir_copy_mac_addr(pMacHdr->bssId, psessionEntry->bssId);
+	sir_copy_mac_addr(pMacHdr->bssId, pe_session->bssId);
 
 	/* Since this is a SA Query Response, set the "protect" (aka WEP) bit */
 	/* in the FC */
-	lim_set_protected_bit(mac, psessionEntry, peer, pMacHdr);
+	lim_set_protected_bit(mac, pe_session, peer, pMacHdr);
 
 	/* Pack 11w SA query response frame */
 	nStatus = dot11f_pack_sa_query_rsp(mac,
@@ -4742,17 +4742,17 @@
 	pe_debug("Sending a SA Query Response to");
 	lim_print_mac_addr(mac, peer, LOGD);
 
-	if ((BAND_5G == lim_get_rf_band(psessionEntry->currentOperChannel))
+	if ((BAND_5G == lim_get_rf_band(pe_session->currentOperChannel))
 #ifdef WLAN_FEATURE_P2P
-	    || (psessionEntry->pePersona == QDF_P2P_CLIENT_MODE) ||
-	    (psessionEntry->pePersona == QDF_P2P_GO_MODE)
+	    || (pe_session->pePersona == QDF_P2P_CLIENT_MODE) ||
+	    (pe_session->pePersona == QDF_P2P_GO_MODE)
 #endif
 	    ) {
 		txFlag |= HAL_USE_BD_RATE2_FOR_MANAGEMENT_FRAME;
 	}
 
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_MGMT,
-			 psessionEntry->peSessionId, pMacHdr->fc.subType));
+			 pe_session->peSessionId, pMacHdr->fc.subType));
 	qdf_status = wma_tx_frame(mac,
 				pPacket,
 				(uint16_t) nBytes,
@@ -4761,7 +4761,7 @@
 				7, lim_tx_complete, pFrame, txFlag,
 				smeSessionId, 0, RATEID_DEFAULT);
 	MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
-			 psessionEntry->peSessionId, qdf_status));
+			 pe_session->peSessionId, qdf_status));
 	if (QDF_STATUS_SUCCESS != qdf_status) {
 		pe_err("wma_tx_frame FAILED! Status [%d]", qdf_status);
 		nSirStatus = QDF_STATUS_E_FAILURE;
diff --git a/core/mac/src/pe/lim/lim_send_messages.c b/core/mac/src/pe/lim/lim_send_messages.c
index ab8b38f..f8e8fbe 100644
--- a/core/mac/src/pe/lim/lim_send_messages.c
+++ b/core/mac/src/pe/lim/lim_send_messages.c
@@ -100,7 +100,7 @@
  */
 QDF_STATUS lim_send_beacon_params(tpAniSirGlobal mac,
 				     tpUpdateBeaconParams pUpdatedBcnParams,
-				     struct pe_session *psessionEntry)
+				     struct pe_session *pe_session)
 {
 	tpUpdateBeaconParams pBcnParams = NULL;
 	QDF_STATUS retCode = QDF_STATUS_SUCCESS;
@@ -117,23 +117,23 @@
 	msgQ.bodyval = 0;
 	pe_debug("Sending WMA_UPDATE_BEACON_IND, paramChangeBitmap in hex: %x",
 	       pUpdatedBcnParams->paramChangeBitmap);
-	if (NULL == psessionEntry) {
+	if (NULL == pe_session) {
 		qdf_mem_free(pBcnParams);
 		MTRACE(mac_trace_msg_tx(mac, NO_SESSION, msgQ.type));
 		return QDF_STATUS_E_FAILURE;
 	} else {
 		MTRACE(mac_trace_msg_tx(mac,
-					psessionEntry->peSessionId,
+					pe_session->peSessionId,
 					msgQ.type));
 	}
-	pBcnParams->smeSessionId = psessionEntry->smeSessionId;
+	pBcnParams->smeSessionId = pe_session->smeSessionId;
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
 		qdf_mem_free(pBcnParams);
 		pe_err("Posting WMA_UPDATE_BEACON_IND, reason=%X",
 			retCode);
 	}
-	lim_send_beacon_ind(mac, psessionEntry, REASON_DEFAULT);
+	lim_send_beacon_ind(mac, pe_session, REASON_DEFAULT);
 	return retCode;
 }
 
@@ -171,10 +171,10 @@
 {
 	tpSwitchChannelParams pChnlParams = NULL;
 	struct scheduler_msg msgQ = {0};
-	struct pe_session *pSessionEntry;
+	struct pe_session *pe_session;
 
-	pSessionEntry = pe_find_session_by_session_id(mac, peSessionId);
-	if (pSessionEntry == NULL) {
+	pe_session = pe_find_session_by_session_id(mac, peSessionId);
+	if (pe_session == NULL) {
 		pe_err("Unable to get Session for session Id %d",
 				peSessionId);
 		return QDF_STATUS_E_FAILURE;
@@ -186,17 +186,17 @@
 	pChnlParams->ch_center_freq_seg0 = ch_center_freq_seg0;
 	pChnlParams->ch_center_freq_seg1 = ch_center_freq_seg1;
 	pChnlParams->ch_width = ch_width;
-	qdf_mem_copy(pChnlParams->selfStaMacAddr, pSessionEntry->selfMacAddr,
+	qdf_mem_copy(pChnlParams->selfStaMacAddr, pe_session->selfMacAddr,
 		     sizeof(tSirMacAddr));
 	pChnlParams->maxTxPower = maxTxPower;
-	qdf_mem_copy(pChnlParams->bssId, pSessionEntry->bssId,
+	qdf_mem_copy(pChnlParams->bssId, pe_session->bssId,
 		     sizeof(tSirMacAddr));
 	pChnlParams->peSessionId = peSessionId;
-	pChnlParams->vhtCapable = pSessionEntry->vhtCapability;
-	if (lim_is_session_he_capable(pSessionEntry))
+	pChnlParams->vhtCapable = pe_session->vhtCapability;
+	if (lim_is_session_he_capable(pe_session))
 		lim_update_chan_he_capable(mac, pChnlParams);
-	pChnlParams->dot11_mode = pSessionEntry->dot11mode;
-	pChnlParams->nss = pSessionEntry->nss;
+	pChnlParams->dot11_mode = pe_session->dot11mode;
+	pChnlParams->nss = pe_session->nss;
 	pe_debug("dot11mode: %d, vht_capable: %d nss value: %d",
 		pChnlParams->dot11_mode, pChnlParams->vhtCapable,
 		pChnlParams->nss);
@@ -249,7 +249,7 @@
 		pe_err("Posting  CH_SWITCH_REQ to WMA failed");
 		return QDF_STATUS_E_FAILURE;
 	}
-	pSessionEntry->ch_switch_in_progress = true;
+	pe_session->ch_switch_in_progress = true;
 
 	return QDF_STATUS_SUCCESS;
 }
@@ -469,7 +469,7 @@
 extern QDF_STATUS lim_set_link_state_ft(tpAniSirGlobal mac, tSirLinkState
 					   state, tSirMacAddr bssId,
 					   tSirMacAddr selfMacAddr, int ft,
-					   struct pe_session *psessionEntry)
+					   struct pe_session *pe_session)
 {
 	struct scheduler_msg msgQ = {0};
 	QDF_STATUS retCode;
@@ -483,17 +483,17 @@
 	sir_copy_mac_addr(pLinkStateParams->bssid, bssId);
 	sir_copy_mac_addr(pLinkStateParams->selfMacAddr, selfMacAddr);
 	pLinkStateParams->ft = 1;
-	pLinkStateParams->session = psessionEntry;
+	pLinkStateParams->session = pe_session;
 
 	msgQ.type = WMA_SET_LINK_STATE;
 	msgQ.reserved = 0;
 	msgQ.bodyptr = pLinkStateParams;
 	msgQ.bodyval = 0;
-	if (NULL == psessionEntry) {
+	if (NULL == pe_session) {
 		MTRACE(mac_trace_msg_tx(mac, NO_SESSION, msgQ.type));
 	} else {
 		MTRACE(mac_trace_msg_tx
-			       (mac, psessionEntry->peSessionId, msgQ.type));
+			       (mac, pe_session->peSessionId, msgQ.type));
 	}
 
 	retCode = (uint32_t) wma_post_ctrl_msg(mac, &msgQ);
@@ -507,7 +507,7 @@
 
 QDF_STATUS lim_send_mode_update(tpAniSirGlobal mac,
 				   tUpdateVHTOpMode *pTempParam,
-				   struct pe_session *psessionEntry)
+				   struct pe_session *pe_session)
 {
 	tUpdateVHTOpMode *pVhtOpMode = NULL;
 	QDF_STATUS retCode = QDF_STATUS_SUCCESS;
@@ -524,11 +524,11 @@
 	msgQ.bodyval = 0;
 	pe_debug("Sending WMA_UPDATE_OP_MODE, op_mode %d, sta_id %d",
 			pVhtOpMode->opMode, pVhtOpMode->staId);
-	if (NULL == psessionEntry)
+	if (NULL == pe_session)
 		MTRACE(mac_trace_msg_tx(mac, NO_SESSION, msgQ.type));
 	else
 		MTRACE(mac_trace_msg_tx(mac,
-					psessionEntry->peSessionId,
+					pe_session->peSessionId,
 					msgQ.type));
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
@@ -542,7 +542,7 @@
 
 QDF_STATUS lim_send_rx_nss_update(tpAniSirGlobal mac,
 				     tUpdateRxNss *pTempParam,
-				     struct pe_session *psessionEntry)
+				     struct pe_session *pe_session)
 {
 	tUpdateRxNss *pRxNss = NULL;
 	QDF_STATUS retCode = QDF_STATUS_SUCCESS;
@@ -557,11 +557,11 @@
 	msgQ.bodyptr = pRxNss;
 	msgQ.bodyval = 0;
 	pe_debug("Sending WMA_UPDATE_RX_NSS");
-	if (NULL == psessionEntry)
+	if (NULL == pe_session)
 		MTRACE(mac_trace_msg_tx(mac, NO_SESSION, msgQ.type));
 	else
 		MTRACE(mac_trace_msg_tx(mac,
-					psessionEntry->peSessionId,
+					pe_session->peSessionId,
 					msgQ.type));
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
@@ -575,7 +575,7 @@
 
 QDF_STATUS lim_set_membership(tpAniSirGlobal mac,
 				 tUpdateMembership *pTempParam,
-				 struct pe_session *psessionEntry)
+				 struct pe_session *pe_session)
 {
 	tUpdateMembership *pMembership = NULL;
 	QDF_STATUS retCode = QDF_STATUS_SUCCESS;
@@ -592,11 +592,11 @@
 	msgQ.bodyptr = pMembership;
 	msgQ.bodyval = 0;
 	pe_debug("Sending WMA_UPDATE_MEMBERSHIP");
-	if (NULL == psessionEntry)
+	if (NULL == pe_session)
 		MTRACE(mac_trace_msg_tx(mac, NO_SESSION, msgQ.type));
 	else
 		MTRACE(mac_trace_msg_tx(mac,
-					psessionEntry->peSessionId,
+					pe_session->peSessionId,
 					msgQ.type));
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
@@ -610,7 +610,7 @@
 
 QDF_STATUS lim_set_user_pos(tpAniSirGlobal mac,
 			       tUpdateUserPos *pTempParam,
-			       struct pe_session *psessionEntry)
+			       struct pe_session *pe_session)
 {
 	tUpdateUserPos *pUserPos = NULL;
 	QDF_STATUS retCode = QDF_STATUS_SUCCESS;
@@ -626,11 +626,11 @@
 	msgQ.bodyptr = pUserPos;
 	msgQ.bodyval = 0;
 	pe_debug("Sending WMA_UPDATE_USERPOS");
-	if (NULL == psessionEntry)
+	if (NULL == pe_session)
 		MTRACE(mac_trace_msg_tx(mac, NO_SESSION, msgQ.type));
 	else
 		MTRACE(mac_trace_msg_tx(mac,
-					psessionEntry->peSessionId,
+					pe_session->peSessionId,
 					msgQ.type));
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
@@ -647,7 +647,7 @@
  * lim_send_exclude_unencrypt_ind() - sends WMA_EXCLUDE_UNENCRYPTED_IND to HAL
  * @mac:          mac global context
  * @excludeUnenc:  true: ignore, false: indicate
- * @psessionEntry: session context
+ * @pe_session: session context
  *
  * LIM sends a message to HAL to indicate whether to ignore or indicate the
  * unprotected packet error.
@@ -656,7 +656,7 @@
  */
 QDF_STATUS lim_send_exclude_unencrypt_ind(tpAniSirGlobal mac,
 					     bool excludeUnenc,
-					     struct pe_session *psessionEntry)
+					     struct pe_session *pe_session)
 {
 	QDF_STATUS retCode = QDF_STATUS_SUCCESS;
 	struct scheduler_msg msgQ = {0};
@@ -668,7 +668,7 @@
 		return QDF_STATUS_E_NOMEM;
 
 	pExcludeUnencryptParam->excludeUnencrypt = excludeUnenc;
-	qdf_mem_copy(pExcludeUnencryptParam->bssid.bytes, psessionEntry->bssId,
+	qdf_mem_copy(pExcludeUnencryptParam->bssid.bytes, pe_session->bssId,
 			QDF_MAC_ADDR_SIZE);
 
 	msgQ.type = WMA_EXCLUDE_UNENCRYPTED_IND;
@@ -676,7 +676,7 @@
 	msgQ.bodyptr = pExcludeUnencryptParam;
 	msgQ.bodyval = 0;
 	pe_debug("Sending WMA_EXCLUDE_UNENCRYPTED_IND");
-	MTRACE(mac_trace_msg_tx(mac, psessionEntry->peSessionId, msgQ.type));
+	MTRACE(mac_trace_msg_tx(mac, pe_session->peSessionId, msgQ.type));
 	retCode = wma_post_ctrl_msg(mac, &msgQ);
 	if (QDF_STATUS_SUCCESS != retCode) {
 		qdf_mem_free(pExcludeUnencryptParam);
diff --git a/core/mac/src/pe/lim/lim_send_messages.h b/core/mac/src/pe/lim/lim_send_messages.h
index 0047227..e14747a 100644
--- a/core/mac/src/pe/lim/lim_send_messages.h
+++ b/core/mac/src/pe/lim/lim_send_messages.h
@@ -38,22 +38,22 @@
 				 uint8_t cfpCount, uint8_t cfpPeriod);
 QDF_STATUS lim_send_beacon_params(tpAniSirGlobal mac,
 				     tpUpdateBeaconParams pUpdatedBcnParams,
-				     struct pe_session *psessionEntry);
+				     struct pe_session *pe_session);
 /* QDF_STATUS lim_send_beacon_params(tpAniSirGlobal mac, tpUpdateBeaconParams pUpdatedBcnParams); */
 QDF_STATUS lim_send_mode_update(tpAniSirGlobal mac,
 				   tUpdateVHTOpMode *tempParam,
-				   struct pe_session *psessionEntry);
+				   struct pe_session *pe_session);
 QDF_STATUS lim_send_rx_nss_update(tpAniSirGlobal mac,
 				     tUpdateRxNss *tempParam,
-				     struct pe_session *psessionEntry);
+				     struct pe_session *pe_session);
 
 QDF_STATUS lim_set_membership(tpAniSirGlobal mac,
 				 tUpdateMembership *pTempParam,
-				 struct pe_session *psessionEntry);
+				 struct pe_session *pe_session);
 
 QDF_STATUS lim_set_user_pos(tpAniSirGlobal mac,
 			       tUpdateUserPos *pTempParam,
-			       struct pe_session *psessionEntry);
+			       struct pe_session *pe_session);
 QDF_STATUS lim_send_switch_chnl_params(tpAniSirGlobal mac,
 					  uint8_t chnlNumber,
 					  uint8_t ch_center_freq_seg0,
@@ -75,10 +75,10 @@
 extern QDF_STATUS lim_set_link_state_ft(tpAniSirGlobal mac, tSirLinkState
 					   state, tSirMacAddr bssId,
 					   tSirMacAddr selfMacAddr, int ft,
-					   struct pe_session *psessionEntry);
+					   struct pe_session *pe_session);
 void lim_set_active_edca_params(tpAniSirGlobal mac,
 				tSirMacEdcaParamRecord *plocalEdcaParams,
-				struct pe_session *psessionEntry);
+				struct pe_session *pe_session);
 #define CAPABILITY_FILTER_MASK  0x73CF
 #define ERP_FILTER_MASK         0xF8
 #define EDCA_FILTER_MASK        0xF0
@@ -92,7 +92,7 @@
 #ifdef WLAN_FEATURE_11W
 QDF_STATUS lim_send_exclude_unencrypt_ind(tpAniSirGlobal mac,
 					     bool excludeUnenc,
-					     struct pe_session *psessionEntry);
+					     struct pe_session *pe_session);
 #endif
 QDF_STATUS lim_send_ht40_obss_scanind(tpAniSirGlobal mac_ctx,
 						struct pe_session *session);
diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
index c9e5fc8..85ade11 100644
--- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
+++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
@@ -603,7 +603,7 @@
 void
 lim_send_sme_start_bss_rsp(tpAniSirGlobal mac,
 			   uint16_t msgType, tSirResultCodes resultCode,
-			   struct pe_session *psessionEntry, uint8_t smesessionId,
+			   struct pe_session *pe_session, uint8_t smesessionId,
 			   uint16_t smetransactionId)
 {
 
@@ -618,15 +618,15 @@
 
 	size = sizeof(tSirSmeStartBssRsp);
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pSirSmeRsp = qdf_mem_malloc(size);
 		if (!pSirSmeRsp)
 			return;
 	} else {
 		/* subtract size of beaconLength + Mac Hdr + Fixed Fields before SSID */
 		ieOffset = sizeof(tAniBeaconStruct) + SIR_MAC_B_PR_SSID_OFFSET;
-		ieLen = psessionEntry->schBeaconOffsetBegin
-			+ psessionEntry->schBeaconOffsetEnd - ieOffset;
+		ieLen = pe_session->schBeaconOffsetBegin
+			+ pe_session->schBeaconOffsetEnd - ieOffset;
 		/* calculate the memory size to allocate */
 		size += ieLen;
 
@@ -637,38 +637,38 @@
 		if (resultCode == eSIR_SME_SUCCESS) {
 
 			sir_copy_mac_addr(pSirSmeRsp->bssDescription.bssId,
-					  psessionEntry->bssId);
+					  pe_session->bssId);
 
 			/* Read beacon interval from session */
 			pSirSmeRsp->bssDescription.beaconInterval =
-				(uint16_t) psessionEntry->beaconParams.
+				(uint16_t) pe_session->beaconParams.
 				beaconInterval;
-			pSirSmeRsp->bssType = psessionEntry->bssType;
+			pSirSmeRsp->bssType = pe_session->bssType;
 
 			if (cfg_get_capability_info
 				    (mac, &pSirSmeRsp->bssDescription.capabilityInfo,
-				    psessionEntry)
+				    pe_session)
 			    != QDF_STATUS_SUCCESS)
 				pe_err("could not retrieve Capabilities value");
 
 			lim_get_phy_mode(mac,
 					 (uint32_t *) &pSirSmeRsp->bssDescription.
-					 nwType, psessionEntry);
+					 nwType, pe_session);
 
 			pSirSmeRsp->bssDescription.channelId =
-				psessionEntry->currentOperChannel;
+				pe_session->currentOperChannel;
 
-		if (!LIM_IS_NDI_ROLE(psessionEntry)) {
-			curLen = psessionEntry->schBeaconOffsetBegin - ieOffset;
+		if (!LIM_IS_NDI_ROLE(pe_session)) {
+			curLen = pe_session->schBeaconOffsetBegin - ieOffset;
 			qdf_mem_copy((uint8_t *) &pSirSmeRsp->bssDescription.
 				     ieFields,
-				     psessionEntry->pSchBeaconFrameBegin +
+				     pe_session->pSchBeaconFrameBegin +
 				     ieOffset, (uint32_t) curLen);
 
 			qdf_mem_copy(((uint8_t *) &pSirSmeRsp->bssDescription.
 				      ieFields) + curLen,
-				     psessionEntry->pSchBeaconFrameEnd,
-				     (uint32_t) psessionEntry->
+				     pe_session->pSchBeaconFrameEnd,
+				     (uint32_t) pe_session->
 				     schBeaconOffsetEnd);
 
 			pSirSmeRsp->bssDescription.length = (uint16_t)
@@ -679,25 +679,25 @@
 			size += ieLen - sizeof(uint32_t);
 		}
 #ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
-			if (psessionEntry->cc_switch_mode
+			if (pe_session->cc_switch_mode
 			    != QDF_MCC_TO_SCC_SWITCH_DISABLE) {
 				pSirSmeRsp->HTProfile.
 				htSupportedChannelWidthSet =
-					psessionEntry->htSupportedChannelWidthSet;
+					pe_session->htSupportedChannelWidthSet;
 				pSirSmeRsp->HTProfile.htRecommendedTxWidthSet =
-					psessionEntry->htRecommendedTxWidthSet;
+					pe_session->htRecommendedTxWidthSet;
 				pSirSmeRsp->HTProfile.htSecondaryChannelOffset =
-					psessionEntry->htSecondaryChannelOffset;
+					pe_session->htSecondaryChannelOffset;
 				pSirSmeRsp->HTProfile.dot11mode =
-					psessionEntry->dot11mode;
+					pe_session->dot11mode;
 				pSirSmeRsp->HTProfile.htCapability =
-					psessionEntry->htCapability;
+					pe_session->htCapability;
 				pSirSmeRsp->HTProfile.vhtCapability =
-					psessionEntry->vhtCapability;
+					pe_session->vhtCapability;
 				pSirSmeRsp->HTProfile.apCenterChan =
-					psessionEntry->ch_center_freq_seg0;
+					pe_session->ch_center_freq_seg0;
 				pSirSmeRsp->HTProfile.apChanWidth =
-					psessionEntry->ch_width;
+					pe_session->ch_width;
 			}
 #endif
 		}
@@ -709,22 +709,22 @@
 	pSirSmeRsp->sessionId = smesessionId;
 	pSirSmeRsp->transactionId = smetransactionId;
 	pSirSmeRsp->statusCode = resultCode;
-	if (psessionEntry != NULL)
-		pSirSmeRsp->staId = psessionEntry->staId;       /* else it will be always zero smeRsp StaID = 0 */
+	if (pe_session != NULL)
+		pSirSmeRsp->staId = pe_session->staId;       /* else it will be always zero smeRsp StaID = 0 */
 
 	mmhMsg.type = msgType;
 	mmhMsg.bodyptr = pSirSmeRsp;
 	mmhMsg.bodyval = 0;
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		MTRACE(mac_trace(mac, TRACE_CODE_TX_SME_MSG,
 				 NO_SESSION, mmhMsg.type));
 	} else {
 		MTRACE(mac_trace(mac, TRACE_CODE_TX_SME_MSG,
-				 psessionEntry->peSessionId, mmhMsg.type));
+				 pe_session->peSessionId, mmhMsg.type));
 	}
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
 	lim_diag_event_report(mac, WLAN_PE_DIAG_START_BSS_RSP_EVENT,
-			      psessionEntry, (uint16_t) resultCode, 0);
+			      pe_session, (uint16_t) resultCode, 0);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 
 	lim_sys_process_mmh_msg_api(mac, &mmhMsg, ePROT);
@@ -780,7 +780,7 @@
 			  uint16_t disassocTrigger,
 			  uint16_t aid,
 			  uint8_t smesessionId,
-			  uint16_t smetransactionId, struct pe_session *psessionEntry)
+			  uint16_t smetransactionId, struct pe_session *pe_session)
 {
 
 	uint8_t *pBuf;
@@ -877,7 +877,7 @@
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
 
 		lim_diag_event_report(mac, WLAN_PE_DIAG_DISASSOC_RSP_EVENT,
-				      psessionEntry, (uint16_t) reasonCode, 0);
+				      pe_session, (uint16_t) reasonCode, 0);
 #endif
 		pMsg = (uint32_t *) pSirSmeDisassocRsp;
 		break;
@@ -918,14 +918,14 @@
 		lim_copy_u32(pBuf, reasonCode);
 		pBuf += sizeof(tSirResultCodes);
 
-		qdf_mem_copy(pBuf, psessionEntry->bssId, sizeof(tSirMacAddr));
+		qdf_mem_copy(pBuf, pe_session->bssId, sizeof(tSirMacAddr));
 		pBuf += sizeof(tSirMacAddr);
 
 		qdf_mem_copy(pBuf, peerMacAddr, sizeof(tSirMacAddr));
 
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
 		lim_diag_event_report(mac, WLAN_PE_DIAG_DISASSOC_IND_EVENT,
-				      psessionEntry, (uint16_t) reasonCode, 0);
+				      pe_session, (uint16_t) reasonCode, 0);
 #endif
 		pMsg = (uint32_t *) pSirSmeDisassocInd;
 
@@ -934,8 +934,8 @@
 
 error:
 	/* Delete the PE session Created */
-	if ((psessionEntry != NULL) && LIM_IS_STA_ROLE(psessionEntry))
-		pe_delete_session(mac, psessionEntry);
+	if ((pe_session != NULL) && LIM_IS_STA_ROLE(pe_session))
+		pe_delete_session(mac, pe_session);
 
 	if (false == failure)
 		lim_send_sme_disassoc_deauth_ntf(mac, QDF_STATUS_SUCCESS,
@@ -956,7 +956,7 @@
    ----------------------------------------------------------------- */
 void
 lim_send_sme_disassoc_ind(tpAniSirGlobal mac, tpDphHashNode pStaDs,
-			  struct pe_session *psessionEntry)
+			  struct pe_session *pe_session)
 {
 	struct scheduler_msg mmhMsg = {0};
 	tSirSmeDisassocInd *pSirSmeDisassocInd;
@@ -968,12 +968,12 @@
 	pSirSmeDisassocInd->messageType = eWNI_SME_DISASSOC_IND;
 	pSirSmeDisassocInd->length = sizeof(tSirSmeDisassocInd);
 
-	pSirSmeDisassocInd->sessionId = psessionEntry->smeSessionId;
-	pSirSmeDisassocInd->transactionId = psessionEntry->transactionId;
+	pSirSmeDisassocInd->sessionId = pe_session->smeSessionId;
+	pSirSmeDisassocInd->transactionId = pe_session->transactionId;
 	pSirSmeDisassocInd->statusCode = eSIR_SME_DEAUTH_STATUS;
 	pSirSmeDisassocInd->reasonCode = pStaDs->mlmStaContext.disassocReason;
 
-	qdf_mem_copy(pSirSmeDisassocInd->bssid.bytes, psessionEntry->bssId,
+	qdf_mem_copy(pSirSmeDisassocInd->bssid.bytes, pe_session->bssId,
 		     QDF_MAC_ADDR_SIZE);
 
 	qdf_mem_copy(pSirSmeDisassocInd->peer_macaddr.bytes, pStaDs->staAddr,
@@ -986,9 +986,9 @@
 	mmhMsg.bodyval = 0;
 
 	MTRACE(mac_trace(mac, TRACE_CODE_TX_SME_MSG,
-			 psessionEntry->peSessionId, mmhMsg.type));
+			 pe_session->peSessionId, mmhMsg.type));
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
-	lim_diag_event_report(mac, WLAN_PE_DIAG_DISASSOC_IND_EVENT, psessionEntry,
+	lim_diag_event_report(mac, WLAN_PE_DIAG_DISASSOC_IND_EVENT, pe_session,
 			      0, (uint16_t) pStaDs->mlmStaContext.disassocReason);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 
@@ -1010,7 +1010,7 @@
    ----------------------------------------------------------------- */
 void
 lim_send_sme_deauth_ind(tpAniSirGlobal mac, tpDphHashNode pStaDs,
-			struct pe_session *psessionEntry)
+			struct pe_session *pe_session)
 {
 	struct scheduler_msg mmhMsg = {0};
 	tSirSmeDeauthInd *pSirSmeDeauthInd;
@@ -1022,9 +1022,9 @@
 	pSirSmeDeauthInd->messageType = eWNI_SME_DEAUTH_IND;
 	pSirSmeDeauthInd->length = sizeof(tSirSmeDeauthInd);
 
-	pSirSmeDeauthInd->sessionId = psessionEntry->smeSessionId;
-	pSirSmeDeauthInd->transactionId = psessionEntry->transactionId;
-	if (eSIR_INFRA_AP_MODE == psessionEntry->bssType) {
+	pSirSmeDeauthInd->sessionId = pe_session->smeSessionId;
+	pSirSmeDeauthInd->transactionId = pe_session->transactionId;
+	if (eSIR_INFRA_AP_MODE == pe_session->bssType) {
 		pSirSmeDeauthInd->statusCode =
 			(tSirResultCodes) pStaDs->mlmStaContext.cleanupTrigger;
 	} else {
@@ -1033,7 +1033,7 @@
 			(tSirResultCodes) pStaDs->mlmStaContext.disassocReason;
 	}
 	/* BSSID */
-	qdf_mem_copy(pSirSmeDeauthInd->bssid.bytes, psessionEntry->bssId,
+	qdf_mem_copy(pSirSmeDeauthInd->bssid.bytes, pe_session->bssId,
 		     QDF_MAC_ADDR_SIZE);
 	/* peerMacAddr */
 	qdf_mem_copy(pSirSmeDeauthInd->peer_macaddr.bytes, pStaDs->staAddr,
@@ -1049,9 +1049,9 @@
 	mmhMsg.bodyptr = pSirSmeDeauthInd;
 	mmhMsg.bodyval = 0;
 
-	MTRACE(mac_trace_msg_tx(mac, psessionEntry->peSessionId, mmhMsg.type));
+	MTRACE(mac_trace_msg_tx(mac, pe_session->peSessionId, mmhMsg.type));
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
-	lim_diag_event_report(mac, WLAN_PE_DIAG_DEAUTH_IND_EVENT, psessionEntry,
+	lim_diag_event_report(mac, WLAN_PE_DIAG_DEAUTH_IND_EVENT, pe_session,
 			      0, pStaDs->mlmStaContext.cleanupTrigger);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 
@@ -1075,19 +1075,19 @@
  *
  * @param  mac   - Pointer to global MAC structure
  * @param  pStaDs - Pointer to internal STA Datastructure
- * @param  psessionEntry - Pointer to the session entry
+ * @param  pe_session - Pointer to the session entry
  * @param  reasonCode - Reason for TDLS sta deletion
  * @return None
  */
 void
 lim_send_sme_tdls_del_sta_ind(tpAniSirGlobal mac, tpDphHashNode pStaDs,
-			      struct pe_session *psessionEntry, uint16_t reasonCode)
+			      struct pe_session *pe_session, uint16_t reasonCode)
 {
 	struct tdls_event_info info;
 
 	pe_debug("Delete TDLS Peer "MAC_ADDRESS_STR "with reason code: %d",
 			MAC_ADDR_ARRAY(pStaDs->staAddr), reasonCode);
-	info.vdev_id = psessionEntry->smeSessionId;
+	info.vdev_id = pe_session->smeSessionId;
 	qdf_mem_copy(info.peermac.bytes, pStaDs->staAddr, QDF_MAC_ADDR_SIZE);
 	info.message_type = TDLS_PEER_DISCONNECTED;
 	info.peer_reason = TDLS_DISCONNECTED_PEER_DELETE;
@@ -1112,7 +1112,7 @@
  * NA
  *
  * @param  mac   - Pointer to global MAC structure
- * @param  psessionEntry - Pointer to the session entry
+ * @param  pe_session - Pointer to the session entry
  * @param  txCompleteStatus - TX Complete Status of Mgmt Frames
  * @return None
  */
@@ -1225,12 +1225,12 @@
 	uint8_t *pBuf;
 	tSirSmeDeauthRsp *pSirSmeDeauthRsp;
 	tSirSmeDeauthInd *pSirSmeDeauthInd;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	uint8_t sessionId;
 	uint32_t *pMsg = NULL;
 	QDF_STATUS status;
 
-	psessionEntry = pe_find_session_by_bssid(mac, peerMacAddr, &sessionId);
+	pe_session = pe_find_session_by_bssid(mac, peerMacAddr, &sessionId);
 	switch (deauthTrigger) {
 	case eLIM_HOST_DEAUTH:
 		/**
@@ -1253,7 +1253,7 @@
 
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
 		lim_diag_event_report(mac, WLAN_PE_DIAG_DEAUTH_RSP_EVENT,
-				      psessionEntry, 0, (uint16_t) reasonCode);
+				      pe_session, 0, (uint16_t) reasonCode);
 #endif
 		pMsg = (uint32_t *) pSirSmeDeauthRsp;
 
@@ -1297,7 +1297,7 @@
 		pBuf += sizeof(tSirResultCodes);
 
 		/* bssId */
-		qdf_mem_copy(pBuf, psessionEntry->bssId, sizeof(tSirMacAddr));
+		qdf_mem_copy(pBuf, pe_session->bssId, sizeof(tSirMacAddr));
 		pBuf += sizeof(tSirMacAddr);
 
 		/* peerMacAddr */
@@ -1306,7 +1306,7 @@
 
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
 		lim_diag_event_report(mac, WLAN_PE_DIAG_DEAUTH_IND_EVENT,
-				      psessionEntry, 0, (uint16_t) reasonCode);
+				      pe_session, 0, (uint16_t) reasonCode);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 		pMsg = (uint32_t *) pSirSmeDeauthInd;
 
@@ -1314,8 +1314,8 @@
 	}
 
 	/*Delete the PE session  created */
-	if (psessionEntry != NULL) {
-		pe_delete_session(mac, psessionEntry);
+	if (pe_session != NULL) {
+		pe_delete_session(mac, pe_session);
 	}
 
 	lim_send_sme_disassoc_deauth_ntf(mac, QDF_STATUS_SUCCESS,
@@ -1424,7 +1424,7 @@
 lim_send_sme_set_context_rsp(tpAniSirGlobal mac,
 			     struct qdf_mac_addr peer_macaddr, uint16_t aid,
 			     tSirResultCodes resultCode,
-			     struct pe_session *psessionEntry, uint8_t smesessionId,
+			     struct pe_session *pe_session, uint8_t smesessionId,
 			     uint16_t smetransactionId)
 {
 	struct scheduler_msg mmhMsg = {0};
@@ -1447,17 +1447,17 @@
 	mmhMsg.type = eWNI_SME_SETCONTEXT_RSP;
 	mmhMsg.bodyptr = pSirSmeSetContextRsp;
 	mmhMsg.bodyval = 0;
-	if (NULL == psessionEntry) {
+	if (NULL == pe_session) {
 		MTRACE(mac_trace(mac, TRACE_CODE_TX_SME_MSG,
 				 NO_SESSION, mmhMsg.type));
 	} else {
 		MTRACE(mac_trace(mac, TRACE_CODE_TX_SME_MSG,
-				 psessionEntry->peSessionId, mmhMsg.type));
+				 pe_session->peSessionId, mmhMsg.type));
 	}
 
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
 	lim_diag_event_report(mac, WLAN_PE_DIAG_SETCONTEXT_RSP_EVENT,
-			      psessionEntry, (uint16_t) resultCode, 0);
+			      pe_session, (uint16_t) resultCode, 0);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 
 	mac->lim.sme_msg_callback(mac, &mmhMsg);
@@ -1475,7 +1475,7 @@
    ----------------------------------------------------------------- */
 void
 lim_send_sme_addts_rsp(tpAniSirGlobal mac, uint8_t rspReqd, uint32_t status,
-		       struct pe_session *psessionEntry, tSirMacTspecIE tspec,
+		       struct pe_session *pe_session, tSirMacTspecIE tspec,
 		       uint8_t smesessionId, uint16_t smetransactionId)
 {
 	tpSirAddtsRsp rsp;
@@ -1499,15 +1499,15 @@
 	mmhMsg.type = eWNI_SME_ADDTS_RSP;
 	mmhMsg.bodyptr = rsp;
 	mmhMsg.bodyval = 0;
-	if (NULL == psessionEntry) {
+	if (NULL == pe_session) {
 		MTRACE(mac_trace(mac, TRACE_CODE_TX_SME_MSG,
 				 NO_SESSION, mmhMsg.type));
 	} else {
 		MTRACE(mac_trace(mac, TRACE_CODE_TX_SME_MSG,
-				 psessionEntry->peSessionId, mmhMsg.type));
+				 pe_session->peSessionId, mmhMsg.type));
 	}
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
-	lim_diag_event_report(mac, WLAN_PE_DIAG_ADDTS_RSP_EVENT, psessionEntry, 0,
+	lim_diag_event_report(mac, WLAN_PE_DIAG_ADDTS_RSP_EVENT, pe_session, 0,
 			      0);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 
@@ -1517,7 +1517,7 @@
 
 void
 lim_send_sme_delts_rsp(tpAniSirGlobal mac, tpSirDeltsReq delts, uint32_t status,
-		       struct pe_session *psessionEntry, uint8_t smesessionId,
+		       struct pe_session *pe_session, uint8_t smesessionId,
 		       uint16_t smetransactionId)
 {
 	tpSirDeltsRsp rsp;
@@ -1534,7 +1534,7 @@
 	if (!rsp)
 		return;
 
-	if (psessionEntry != NULL) {
+	if (pe_session != NULL) {
 
 		rsp->aid = delts->aid;
 		qdf_copy_macaddr(&rsp->macaddr, &delts->macaddr);
@@ -1552,15 +1552,15 @@
 	mmhMsg.type = eWNI_SME_DELTS_RSP;
 	mmhMsg.bodyptr = rsp;
 	mmhMsg.bodyval = 0;
-	if (NULL == psessionEntry) {
+	if (NULL == pe_session) {
 		MTRACE(mac_trace(mac, TRACE_CODE_TX_SME_MSG,
 				 NO_SESSION, mmhMsg.type));
 	} else {
 		MTRACE(mac_trace(mac, TRACE_CODE_TX_SME_MSG,
-				 psessionEntry->peSessionId, mmhMsg.type));
+				 pe_session->peSessionId, mmhMsg.type));
 	}
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
-	lim_diag_event_report(mac, WLAN_PE_DIAG_DELTS_RSP_EVENT, psessionEntry,
+	lim_diag_event_report(mac, WLAN_PE_DIAG_DELTS_RSP_EVENT, pe_session,
 			      (uint16_t) status, 0);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 
@@ -1569,7 +1569,7 @@
 
 void
 lim_send_sme_delts_ind(tpAniSirGlobal mac, tpSirDeltsReqInfo delts, uint16_t aid,
-		       struct pe_session *psessionEntry)
+		       struct pe_session *pe_session)
 {
 	tpSirDeltsRsp rsp;
 	struct scheduler_msg mmhMsg = {0};
@@ -1588,15 +1588,15 @@
 
 	/* Update SME  session Id and SME transaction Id */
 
-	rsp->sessionId = psessionEntry->smeSessionId;
-	rsp->transactionId = psessionEntry->transactionId;
+	rsp->sessionId = pe_session->smeSessionId;
+	rsp->transactionId = pe_session->transactionId;
 
 	mmhMsg.type = eWNI_SME_DELTS_IND;
 	mmhMsg.bodyptr = rsp;
 	mmhMsg.bodyval = 0;
-	MTRACE(mac_trace_msg_tx(mac, psessionEntry->peSessionId, mmhMsg.type));
+	MTRACE(mac_trace_msg_tx(mac, pe_session->peSessionId, mmhMsg.type));
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_LIM    /* FEATURE_WLAN_DIAG_SUPPORT */
-	lim_diag_event_report(mac, WLAN_PE_DIAG_DELTS_IND_EVENT, psessionEntry, 0,
+	lim_diag_event_report(mac, WLAN_PE_DIAG_DELTS_IND_EVENT, pe_session, 0,
 			      0);
 #endif /* FEATURE_WLAN_DIAG_SUPPORT */
 
@@ -2166,12 +2166,12 @@
 
 void lim_handle_delete_bss_rsp(tpAniSirGlobal mac, struct scheduler_msg *MsgQ)
 {
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	tpDeleteBssParams pDelBss = (tpDeleteBssParams) (MsgQ->bodyptr);
 
-	psessionEntry =
+	pe_session =
 		pe_find_session_by_session_id(mac, pDelBss->sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session Does not exist for given sessionID: %d",
 			pDelBss->sessionId);
 		qdf_mem_free(MsgQ->bodyptr);
@@ -2185,15 +2185,15 @@
 	 * to some error conditions so that the next DEL_BSS request does
 	 * not take the HO_FAIL path
 	 */
-	psessionEntry->process_ho_fail = false;
-	if (LIM_IS_IBSS_ROLE(psessionEntry))
-		lim_ibss_del_bss_rsp(mac, MsgQ->bodyptr, psessionEntry);
-	else if (LIM_IS_UNKNOWN_ROLE(psessionEntry))
-		lim_process_sme_del_bss_rsp(mac, MsgQ->bodyval, psessionEntry);
-	else if (LIM_IS_NDI_ROLE(psessionEntry))
-		lim_ndi_del_bss_rsp(mac, MsgQ->bodyptr, psessionEntry);
+	pe_session->process_ho_fail = false;
+	if (LIM_IS_IBSS_ROLE(pe_session))
+		lim_ibss_del_bss_rsp(mac, MsgQ->bodyptr, pe_session);
+	else if (LIM_IS_UNKNOWN_ROLE(pe_session))
+		lim_process_sme_del_bss_rsp(mac, MsgQ->bodyval, pe_session);
+	else if (LIM_IS_NDI_ROLE(pe_session))
+		lim_ndi_del_bss_rsp(mac, MsgQ->bodyptr, pe_session);
 	else
-		lim_process_mlm_del_bss_rsp(mac, MsgQ, psessionEntry);
+		lim_process_mlm_del_bss_rsp(mac, MsgQ, pe_session);
 
 }
 
@@ -2257,12 +2257,12 @@
    that the Channel change has been done to the specified target
    channel in the Channel change request
    \param mac - global mac structure
-   \param psessionEntry - session info
+   \param pe_session - session info
    \param pChnlParams - Channel switch params
    --------------------------------------------------------------------*/
 void
 lim_send_sme_ap_channel_switch_resp(tpAniSirGlobal mac,
-				    struct pe_session *psessionEntry,
+				    struct pe_session *pe_session,
 				    tpSwitchChannelParams pChnlParams)
 {
 	struct scheduler_msg mmhMsg = {0};
@@ -2287,7 +2287,7 @@
 	 * Pass the sme sessionID to SME instead
 	 * PE session ID.
 	 */
-	pSmeSwithChnlParams->peSessionId = psessionEntry->smeSessionId;
+	pSmeSwithChnlParams->peSessionId = pe_session->smeSessionId;
 
 	mmhMsg.type = eWNI_SME_CHANNEL_CHANGE_RSP;
 	mmhMsg.bodyptr = (void *)pSmeSwithChnlParams;
@@ -2318,15 +2318,15 @@
 	}
 
 	if (!is_ch_dfs) {
-		if (channelId == psessionEntry->currentOperChannel) {
-			lim_apply_configuration(mac, psessionEntry);
-			lim_send_beacon(mac, psessionEntry);
+		if (channelId == pe_session->currentOperChannel) {
+			lim_apply_configuration(mac, pe_session);
+			lim_send_beacon(mac, pe_session);
 		} else {
 			pe_debug("Failed to Transmit Beacons on channel: %d after AP channel change response",
-				       psessionEntry->bcnLen);
+				       pe_session->bcnLen);
 		}
 
-		lim_obss_send_detection_cfg(mac, psessionEntry, true);
+		lim_obss_send_detection_cfg(mac, pe_session, true);
 	}
 	return;
 }
diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.h b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.h
index 31a23e7..3c2cae7 100644
--- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.h
+++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.h
@@ -67,7 +67,7 @@
 			     uint16_t, uint8_t, uint16_t);
 void lim_send_sme_disassoc_ind(tpAniSirGlobal, tpDphHashNode, struct pe_session *);
 void lim_send_sme_deauth_ind(tpAniSirGlobal, tpDphHashNode,
-			     struct pe_session *psessionEntry);
+			     struct pe_session *pe_session);
 void lim_send_sme_wm_status_change_ntf(tpAniSirGlobal, tSirSmeStatusChangeCode,
 				       uint32_t *, uint16_t, uint8_t);
 void lim_send_sme_set_context_rsp(tpAniSirGlobal, struct qdf_mac_addr, uint16_t,
@@ -81,10 +81,10 @@
 			  uint8_t smesessionId);
 
 void lim_send_sme_addts_rsp(tpAniSirGlobal mac, uint8_t rspReqd, uint32_t status,
-			    struct pe_session *psessionEntry, tSirMacTspecIE tspec,
+			    struct pe_session *pe_session, tSirMacTspecIE tspec,
 			    uint8_t smesessionId, uint16_t smetransactionId);
 void lim_send_sme_delts_rsp(tpAniSirGlobal mac, tpSirDeltsReq delts,
-			    uint32_t status, struct pe_session *psessionEntry,
+			    uint32_t status, struct pe_session *pe_session,
 			    uint8_t smessionId, uint16_t smetransactionId);
 void lim_send_sme_delts_ind(tpAniSirGlobal mac, tpSirDeltsReqInfo delts,
 			    uint16_t aid, struct pe_session *);
@@ -110,7 +110,7 @@
 					 uint8_t smesessionId);
 
 void lim_send_sme_ap_channel_switch_resp(tpAniSirGlobal mac,
-					 struct pe_session *psessionEntry,
+					 struct pe_session *pe_session,
 					 tpSwitchChannelParams pChnlParams);
 /*
  * lim_process_beacon_tx_success_ind() - handle successful beacon transmission
diff --git a/core/mac/src/pe/lim/lim_session.c b/core/mac/src/pe/lim/lim_session.c
index a5c4bb6..e24cb48 100644
--- a/core/mac/src/pe/lim/lim_session.c
+++ b/core/mac/src/pe/lim/lim_session.c
@@ -89,33 +89,33 @@
    --------------------------------------------------------------------------*/
 
 static void pe_init_beacon_params(tpAniSirGlobal mac,
-				  struct pe_session *psessionEntry)
+				  struct pe_session *pe_session)
 {
-	psessionEntry->beaconParams.beaconInterval = 0;
-	psessionEntry->beaconParams.fShortPreamble = 0;
-	psessionEntry->beaconParams.llaCoexist = 0;
-	psessionEntry->beaconParams.llbCoexist = 0;
-	psessionEntry->beaconParams.llgCoexist = 0;
-	psessionEntry->beaconParams.ht20Coexist = 0;
-	psessionEntry->beaconParams.llnNonGFCoexist = 0;
-	psessionEntry->beaconParams.fRIFSMode = 0;
-	psessionEntry->beaconParams.fLsigTXOPProtectionFullSupport = 0;
-	psessionEntry->beaconParams.gHTObssMode = 0;
+	pe_session->beaconParams.beaconInterval = 0;
+	pe_session->beaconParams.fShortPreamble = 0;
+	pe_session->beaconParams.llaCoexist = 0;
+	pe_session->beaconParams.llbCoexist = 0;
+	pe_session->beaconParams.llgCoexist = 0;
+	pe_session->beaconParams.ht20Coexist = 0;
+	pe_session->beaconParams.llnNonGFCoexist = 0;
+	pe_session->beaconParams.fRIFSMode = 0;
+	pe_session->beaconParams.fLsigTXOPProtectionFullSupport = 0;
+	pe_session->beaconParams.gHTObssMode = 0;
 
 	/* Number of legacy STAs associated */
-	qdf_mem_set((void *)&psessionEntry->gLim11bParams,
+	qdf_mem_set((void *)&pe_session->gLim11bParams,
 		    sizeof(tLimProtStaParams), 0);
-	qdf_mem_set((void *)&psessionEntry->gLim11aParams,
+	qdf_mem_set((void *)&pe_session->gLim11aParams,
 		    sizeof(tLimProtStaParams), 0);
-	qdf_mem_set((void *)&psessionEntry->gLim11gParams,
+	qdf_mem_set((void *)&pe_session->gLim11gParams,
 		    sizeof(tLimProtStaParams), 0);
-	qdf_mem_set((void *)&psessionEntry->gLimNonGfParams,
+	qdf_mem_set((void *)&pe_session->gLimNonGfParams,
 		    sizeof(tLimProtStaParams), 0);
-	qdf_mem_set((void *)&psessionEntry->gLimHt20Params,
+	qdf_mem_set((void *)&pe_session->gLimHt20Params,
 		    sizeof(tLimProtStaParams), 0);
-	qdf_mem_set((void *)&psessionEntry->gLimLsigTxopParams,
+	qdf_mem_set((void *)&pe_session->gLimLsigTxopParams,
 		    sizeof(tLimProtStaParams), 0);
-	qdf_mem_set((void *)&psessionEntry->gLimOlbcParams,
+	qdf_mem_set((void *)&pe_session->gLimOlbcParams,
 		    sizeof(tLimProtStaParams), 0);
 }
 
@@ -123,7 +123,7 @@
  * pe_reset_protection_callback() - resets protection structs so that when an AP
  * causing use of protection goes away, corresponding protection bit can be
  * reset
- * @ptr:        pointer to pSessionEntry
+ * @ptr:        pointer to pe_session
  *
  * This function resets protection structs so that when an AP causing use of
  * protection goes away, corresponding protection bit can be reset. This allowes
diff --git a/core/mac/src/pe/lim/lim_sme_req_utils.c b/core/mac/src/pe/lim/lim_sme_req_utils.c
index 42357e8..244d4bd 100644
--- a/core/mac/src/pe/lim/lim_sme_req_utils.c
+++ b/core/mac/src/pe/lim/lim_sme_req_utils.c
@@ -567,7 +567,7 @@
 uint8_t
 lim_is_sme_disassoc_req_valid(tpAniSirGlobal mac,
 			      tpSirSmeDisassocReq pDisassocReq,
-			      struct pe_session *psessionEntry)
+			      struct pe_session *pe_session)
 {
 	if (qdf_is_macaddr_group(&pDisassocReq->peer_macaddr) &&
 	    !qdf_is_macaddr_broadcast(&pDisassocReq->peer_macaddr))
@@ -600,7 +600,7 @@
 uint8_t
 lim_is_sme_disassoc_cnf_valid(tpAniSirGlobal mac,
 			      tpSirSmeDisassocCnf pDisassocCnf,
-			      struct pe_session *psessionEntry)
+			      struct pe_session *pe_session)
 {
 	if (qdf_is_macaddr_group(&pDisassocCnf->peer_macaddr))
 		return false;
@@ -630,7 +630,7 @@
 
 uint8_t
 lim_is_sme_deauth_req_valid(tpAniSirGlobal mac, tpSirSmeDeauthReq pDeauthReq,
-			    struct pe_session *psessionEntry)
+			    struct pe_session *pe_session)
 {
 	if (qdf_is_macaddr_group(&pDeauthReq->peer_macaddr) &&
 	    !qdf_is_macaddr_broadcast(&pDeauthReq->peer_macaddr))
diff --git a/core/mac/src/pe/lim/lim_sta_hash_api.c b/core/mac/src/pe/lim/lim_sta_hash_api.c
index a5ab0fa..d180b2c 100644
--- a/core/mac/src/pe/lim/lim_sta_hash_api.c
+++ b/core/mac/src/pe/lim/lim_sta_hash_api.c
@@ -52,10 +52,10 @@
  */
 
 QDF_STATUS lim_get_sta_hash_bssidx(tpAniSirGlobal mac, uint16_t assocId,
-				      uint8_t *bssidx, struct pe_session *psessionEntry)
+				      uint8_t *bssidx, struct pe_session *pe_session)
 {
 	tpDphHashNode pSta =
-		dph_get_hash_entry(mac, assocId, &psessionEntry->dph.dphHashTable);
+		dph_get_hash_entry(mac, assocId, &pe_session->dph.dphHashTable);
 
 	if (pSta == NULL) {
 		pe_err("invalid STA: %d", assocId);
diff --git a/core/mac/src/pe/lim/lim_sta_hash_api.h b/core/mac/src/pe/lim/lim_sta_hash_api.h
index a5ac1b4..f3c0c57 100644
--- a/core/mac/src/pe/lim/lim_sta_hash_api.h
+++ b/core/mac/src/pe/lim/lim_sta_hash_api.h
@@ -36,6 +36,6 @@
 #include "lim_types.h"
 
 QDF_STATUS lim_get_sta_hash_bssidx(tpAniSirGlobal mac, uint16_t assocId,
-				      uint8_t *bssidx, struct pe_session *psessionEntry);
+				      uint8_t *bssidx, struct pe_session *pe_session);
 
 #endif
diff --git a/core/mac/src/pe/lim/lim_timer_utils.c b/core/mac/src/pe/lim/lim_timer_utils.c
index e899e4f..819af6d 100644
--- a/core/mac/src/pe/lim/lim_timer_utils.c
+++ b/core/mac/src/pe/lim/lim_timer_utils.c
@@ -434,7 +434,7 @@
 	tpAniSirGlobal mac_ctx = (tpAniSirGlobal) mac_global;
 	struct pe_session *session = NULL;
 
-	session = mac_ctx->lim.pSessionEntry;
+	session = mac_ctx->lim.pe_session;
 	if (LIM_REASSOC == param && NULL != session
 	    && session->limMlmState == eLIM_MLM_WT_FT_REASSOC_RSP_STATE) {
 		pe_err("Reassoc timeout happened");
@@ -889,10 +889,10 @@
  */
 
 void lim_activate_cnf_timer(tpAniSirGlobal mac, uint16_t staId,
-			    struct pe_session *psessionEntry)
+			    struct pe_session *pe_session)
 {
 	mac->lim.limTimers.gpLimCnfWaitTimer[staId].sessionId =
-		psessionEntry->peSessionId;
+		pe_session->peSessionId;
 	if (tx_timer_activate(&mac->lim.limTimers.gpLimCnfWaitTimer[staId])
 	    != TX_SUCCESS) {
 		pe_err("could not activate cnf wait timer");
diff --git a/core/mac/src/pe/lim/lim_types.h b/core/mac/src/pe/lim/lim_types.h
index 3a7d12a..ed8d896 100644
--- a/core/mac/src/pe/lim/lim_types.h
+++ b/core/mac/src/pe/lim/lim_types.h
@@ -100,13 +100,13 @@
 #define LIM_MIN_MEM_ASSOC       4
 
 /* / Verifies whether given mac addr matches the CURRENT Bssid */
-#define IS_CURRENT_BSSID(mac, addr, psessionEntry)  (!qdf_mem_cmp(addr, \
-								      psessionEntry->bssId, \
-								      sizeof(psessionEntry->bssId)))
+#define IS_CURRENT_BSSID(mac, addr, pe_session)  (!qdf_mem_cmp(addr, \
+								      pe_session->bssId, \
+								      sizeof(pe_session->bssId)))
 /* / Verifies whether given addr matches the REASSOC Bssid */
-#define IS_REASSOC_BSSID(mac, addr, psessionEntry)  (!qdf_mem_cmp(addr, \
-								      psessionEntry->limReAssocbssId, \
-								      sizeof(psessionEntry->limReAssocbssId)))
+#define IS_REASSOC_BSSID(mac, addr, pe_session)  (!qdf_mem_cmp(addr, \
+								      pe_session->limReAssocbssId, \
+								      sizeof(pe_session->limReAssocbssId)))
 
 #define REQ_TYPE_REGISTRAR                   (0x2)
 #define REQ_TYPE_WLAN_MANAGER_REGISTRAR      (0x3)
@@ -434,7 +434,7 @@
 
 /* Function to handle HT and HT IE CFG parameter intializations */
 void handle_ht_capabilityand_ht_info(struct mac_context *mac,
-				     struct pe_session *psessionEntry);
+				     struct pe_session *pe_session);
 
 void lim_handle_param_update(tpAniSirGlobal mac, eUpdateIEsType cfgId);
 
@@ -470,7 +470,7 @@
 
 void lim_process_assoc_req_frame(tpAniSirGlobal, uint8_t *, uint8_t, struct pe_session *);
 void lim_send_mlm_assoc_ind(tpAniSirGlobal mac, tpDphHashNode pStaDs,
-			    struct pe_session *psessionEntry);
+			    struct pe_session *pe_session);
 
 void lim_process_assoc_rsp_frame(tpAniSirGlobal, uint8_t *, uint8_t, struct pe_session *);
 void lim_process_disassoc_frame(tpAniSirGlobal, uint8_t *, struct pe_session *);
@@ -533,7 +533,7 @@
 void lim_send_assoc_req_mgmt_frame(tpAniSirGlobal, tLimMlmAssocReq *, struct pe_session *);
 #ifdef WLAN_FEATURE_HOST_ROAM
 void lim_send_reassoc_req_with_ft_ies_mgmt_frame(tpAniSirGlobal mac,
-		tLimMlmReassocReq *pMlmReassocReq, struct pe_session *psessionEntry);
+		tLimMlmReassocReq *pMlmReassocReq, struct pe_session *pe_session);
 void lim_send_reassoc_req_mgmt_frame(tpAniSirGlobal, tLimMlmReassocReq *,
 				     struct pe_session *);
 /**
@@ -550,7 +550,7 @@
 #else
 static inline void lim_send_reassoc_req_with_ft_ies_mgmt_frame(
 		tpAniSirGlobal mac, tLimMlmReassocReq *pMlmReassocReq,
-		struct pe_session *psessionEntry)
+		struct pe_session *pe_session)
 {}
 static inline void lim_send_reassoc_req_mgmt_frame(tpAniSirGlobal mac_ctx,
 		tLimMlmReassocReq *reassoc_req, struct pe_session *pe_session)
@@ -609,7 +609,7 @@
 				     uint8_t wmmTspecPresent,
 				     tSirMacTSInfo * pTsinfo,
 				     tSirMacTspecIE * pTspecIe,
-				     struct pe_session *psessionEntry);
+				     struct pe_session *pe_session);
 void lim_send_addts_req_action_frame(tpAniSirGlobal mac, tSirMacAddr peerMacAddr,
 				     tSirAddtsReqInfo *addts, struct pe_session *);
 void lim_send_addts_rsp_action_frame(tpAniSirGlobal mac, tSirMacAddr peerMacAddr,
@@ -628,7 +628,7 @@
 		struct scheduler_msg *msg);
 
 tSirResultCodes lim_mlm_add_bss(tpAniSirGlobal, tLimMlmStartReq *,
-				struct pe_session *psessionEntry);
+				struct pe_session *pe_session);
 
 QDF_STATUS lim_send_channel_switch_mgmt_frame(tpAniSirGlobal, tSirMacAddr,
 						 uint8_t, uint8_t, uint8_t,
@@ -643,7 +643,7 @@
 
 QDF_STATUS lim_send_vht_opmode_notification_frame(tpAniSirGlobal mac,
 						     tSirMacAddr peer, uint8_t nMode,
-						     struct pe_session *psessionEntry);
+						     struct pe_session *pe_session);
 
 QDF_STATUS lim_send_neighbor_report_request_frame(tpAniSirGlobal,
 						     tpSirMacNeighborReportReq,
@@ -659,7 +659,7 @@
  * @is_last_frame: is the current report last or more reports to follow
  * @pRRMReport: Pointer to the RRM report structure
  * @peer: MAC address of the peer
- * @psessionEntry: Pointer to the PE session entry
+ * @pe_session: Pointer to the PE session entry
  *
  * Return: Ret Status
  */
@@ -670,7 +670,7 @@
 				bool is_last_frame,
 				tpSirMacRadioMeasureReport pRRMReport,
 				tSirMacAddr peer,
-				struct pe_session *psessionEntry);
+				struct pe_session *pe_session);
 
 #ifdef FEATURE_WLAN_TDLS
 void lim_init_tdls_data(tpAniSirGlobal, struct pe_session *);
@@ -697,7 +697,7 @@
 	return QDF_STATUS_SUCCESS;
 }
 static inline void lim_init_tdls_data(tpAniSirGlobal mac,
-					struct pe_session *pSessionEntry)
+					struct pe_session *pe_session)
 {
 
 }
@@ -727,23 +727,23 @@
 #ifdef ANI_SUPPORT_11H
 /* / Function that sends Measurement Report action frame */
 QDF_STATUS lim_send_meas_report_frame(tpAniSirGlobal, tpSirMacMeasReqActionFrame,
-					 tSirMacAddr, struct pe_session *psessionEntry);
+					 tSirMacAddr, struct pe_session *pe_session);
 
 /* / Function that sends TPC Report action frame */
 QDF_STATUS lim_send_tpc_report_frame(tpAniSirGlobal, tpSirMacTpcReqActionFrame,
-					tSirMacAddr, struct pe_session *psessionEntry);
+					tSirMacAddr, struct pe_session *pe_session);
 #endif
 
 /* / Function that sends TPC Request action frame */
 void lim_send_tpc_request_frame(tpAniSirGlobal, tSirMacAddr,
-				struct pe_session *psessionEntry);
+				struct pe_session *pe_session);
 
 /* Function(s) to handle responses received from HAL */
 void lim_process_mlm_add_bss_rsp(tpAniSirGlobal mac,
 				 struct scheduler_msg *limMsgQ);
 void lim_process_mlm_add_sta_rsp(tpAniSirGlobal mac,
 				struct scheduler_msg *limMsgQt,
-				 struct pe_session *psessionEntry);
+				 struct pe_session *pe_session);
 void lim_process_mlm_del_sta_rsp(tpAniSirGlobal mac,
 				 struct scheduler_msg *limMsgQ);
 void lim_process_mlm_del_bss_rsp(tpAniSirGlobal mac,
@@ -751,13 +751,13 @@
 				 struct pe_session *);
 void lim_process_sta_mlm_add_sta_rsp(tpAniSirGlobal mac,
 				     struct scheduler_msg *limMsgQ,
-				     struct pe_session *psessionEntry);
+				     struct pe_session *pe_session);
 void lim_process_sta_mlm_del_sta_rsp(tpAniSirGlobal mac,
 				     struct scheduler_msg *limMsgQ,
-				     struct pe_session *psessionEntry);
+				     struct pe_session *pe_session);
 void lim_process_sta_mlm_del_bss_rsp(tpAniSirGlobal mac,
 				     struct scheduler_msg *limMsgQ,
-				     struct pe_session *psessionEntry);
+				     struct pe_session *pe_session);
 void lim_process_mlm_set_sta_key_rsp(tpAniSirGlobal mac,
 				     struct scheduler_msg *limMsgQ);
 void lim_process_mlm_set_bss_key_rsp(tpAniSirGlobal mac,
@@ -777,11 +777,11 @@
 /* 11w send SA query request action frame */
 QDF_STATUS lim_send_sa_query_request_frame(tpAniSirGlobal mac, uint8_t *transId,
 					      tSirMacAddr peer,
-					      struct pe_session *psessionEntry);
+					      struct pe_session *pe_session);
 /* 11w SA query request action frame handler */
 QDF_STATUS lim_send_sa_query_response_frame(tpAniSirGlobal mac,
 					       uint8_t *transId, tSirMacAddr peer,
-					       struct pe_session *psessionEntry);
+					       struct pe_session *pe_session);
 #endif
 
 /* Inline functions */
@@ -933,17 +933,17 @@
 			       enum sir_bcn_update_reason reason);
 
 void
-lim_send_vdev_restart(tpAniSirGlobal mac, struct pe_session *psessionEntry,
+lim_send_vdev_restart(tpAniSirGlobal mac, struct pe_session *pe_session,
 		      uint8_t sessionId);
 
 void lim_get_wpspbc_sessions(tpAniSirGlobal mac, struct qdf_mac_addr addr,
 			uint8_t *uuid_e, eWPSPBCOverlap *overlap,
-			struct pe_session *psessionEntry);
-void limWPSPBCTimeout(tpAniSirGlobal mac, struct pe_session *psessionEntry);
-void lim_wpspbc_close(tpAniSirGlobal mac, struct pe_session *psessionEntry);
+			struct pe_session *pe_session);
+void limWPSPBCTimeout(tpAniSirGlobal mac, struct pe_session *pe_session);
+void lim_wpspbc_close(tpAniSirGlobal mac, struct pe_session *pe_session);
 void lim_remove_pbc_sessions(tpAniSirGlobal mac,
 				struct qdf_mac_addr pRemoveMac,
-				struct pe_session *psessionEntry);
+				struct pe_session *pe_session);
 
 #define LIM_WPS_OVERLAP_TIMER_MS                 10000
 
diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c
index 5802958..5c2a2b5 100644
--- a/core/mac/src/pe/lim/lim_utils.c
+++ b/core/mac/src/pe/lim/lim_utils.c
@@ -1007,19 +1007,19 @@
 	static int enable;
 	tUpdateBeaconParams beaconParams;
 
-	struct pe_session *psessionEntry = lim_is_ap_session_active(mac_ctx);
+	struct pe_session *pe_session = lim_is_ap_session_active(mac_ctx);
 
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err(" Session not found");
 		return;
 	}
 
-	if (psessionEntry->is_session_obss_offload_enabled) {
+	if (pe_session->is_session_obss_offload_enabled) {
 		pe_debug("protection offloaded");
 		return;
 	}
 	qdf_mem_set((uint8_t *) &beaconParams, sizeof(tUpdateBeaconParams), 0);
-	beaconParams.bssIdx = psessionEntry->bssIdx;
+	beaconParams.bssIdx = pe_session->bssIdx;
 
 	beaconParams.paramChangeBitmap = 0;
 	/*
@@ -1029,42 +1029,42 @@
 	 */
 	if (!enable) {
 		pe_debug("Resetting OLBC cache");
-		psessionEntry->gLimOlbcParams.numSta = 0;
-		psessionEntry->gLimOverlap11gParams.numSta = 0;
-		psessionEntry->gLimOverlapHt20Params.numSta = 0;
-		psessionEntry->gLimNonGfParams.numSta = 0;
-		psessionEntry->gLimLsigTxopParams.numSta = 0;
+		pe_session->gLimOlbcParams.numSta = 0;
+		pe_session->gLimOverlap11gParams.numSta = 0;
+		pe_session->gLimOverlapHt20Params.numSta = 0;
+		pe_session->gLimNonGfParams.numSta = 0;
+		pe_session->gLimLsigTxopParams.numSta = 0;
 
 		for (i = 0; i < LIM_PROT_STA_OVERLAP_CACHE_SIZE; i++)
 			mac_ctx->lim.protStaOverlapCache[i].active = false;
 
 		enable = 1;
 	} else {
-		if ((!psessionEntry->gLimOlbcParams.numSta) &&
-			(psessionEntry->gLimOlbcParams.protectionEnabled) &&
-			(!psessionEntry->gLim11bParams.protectionEnabled)) {
+		if ((!pe_session->gLimOlbcParams.numSta) &&
+			(pe_session->gLimOlbcParams.protectionEnabled) &&
+			(!pe_session->gLim11bParams.protectionEnabled)) {
 			pe_debug("Overlap cache clear and no 11B STA set");
 			lim_enable11g_protection(mac_ctx, false, true,
 						&beaconParams,
-						psessionEntry);
+						pe_session);
 		}
 
-		if ((!psessionEntry->gLimOverlap11gParams.numSta) &&
-			(psessionEntry->gLimOverlap11gParams.protectionEnabled)
-			&& (!psessionEntry->gLim11gParams.protectionEnabled)) {
+		if ((!pe_session->gLimOverlap11gParams.numSta) &&
+			(pe_session->gLimOverlap11gParams.protectionEnabled)
+			&& (!pe_session->gLim11gParams.protectionEnabled)) {
 			pe_debug("Overlap cache clear and no 11G STA set");
 			lim_enable_ht_protection_from11g(mac_ctx, false, true,
 							&beaconParams,
-							psessionEntry);
+							pe_session);
 		}
 
-		if ((!psessionEntry->gLimOverlapHt20Params.numSta) &&
-			(psessionEntry->gLimOverlapHt20Params.protectionEnabled)
-			&& (!psessionEntry->gLimHt20Params.protectionEnabled)) {
+		if ((!pe_session->gLimOverlapHt20Params.numSta) &&
+			(pe_session->gLimOverlapHt20Params.protectionEnabled)
+			&& (!pe_session->gLimHt20Params.protectionEnabled)) {
 			pe_debug("Overlap cache clear and no HT20 STA set");
 			lim_enable11g_protection(mac_ctx, false, true,
 						&beaconParams,
-						psessionEntry);
+						pe_session);
 		}
 
 		enable = 0;
@@ -1072,8 +1072,8 @@
 
 	if ((false == mac_ctx->sap.SapDfsInfo.is_dfs_cac_timer_running)
 					&& beaconParams.paramChangeBitmap) {
-		sch_set_fixed_beacon_fields(mac_ctx, psessionEntry);
-		lim_send_beacon_params(mac_ctx, &beaconParams, psessionEntry);
+		sch_set_fixed_beacon_fields(mac_ctx, pe_session);
+		lim_send_beacon_params(mac_ctx, &beaconParams, pe_session);
 	}
 	/* Start OLBC timer */
 	if (tx_timer_activate(&mac_ctx->lim.limTimers.gLimUpdateOlbcCacheTimer)
@@ -1144,7 +1144,7 @@
 			   tSirMacAddr peerMacAddr,
 			   tLimProtStaCacheType protStaCacheType,
 			   tHalBitVal gfSupported, tHalBitVal lsigTxopSupported,
-			   struct pe_session *psessionEntry)
+			   struct pe_session *pe_session)
 {
 	uint32_t i;
 
@@ -1152,14 +1152,14 @@
 	lim_print_mac_addr(mac, peerMacAddr, LOGD);
 
 	for (i = 0; i < LIM_PROT_STA_CACHE_SIZE; i++) {
-		if (psessionEntry->protStaCache[i].active) {
+		if (pe_session->protStaCache[i].active) {
 			pe_debug("Addr:");
 				lim_print_mac_addr
-				(mac, psessionEntry->protStaCache[i].addr,
+				(mac, pe_session->protStaCache[i].addr,
 				LOGD);
 
 			if (!qdf_mem_cmp
-				    (psessionEntry->protStaCache[i].addr,
+				    (pe_session->protStaCache[i].addr,
 				    peerMacAddr, sizeof(tSirMacAddr))) {
 				pe_debug("matching cache entry at: %d already active",
 					i);
@@ -1169,7 +1169,7 @@
 	}
 
 	for (i = 0; i < LIM_PROT_STA_CACHE_SIZE; i++) {
-		if (!psessionEntry->protStaCache[i].active)
+		if (!pe_session->protStaCache[i].active)
 			break;
 	}
 
@@ -1178,28 +1178,28 @@
 		return;
 	}
 
-	qdf_mem_copy(psessionEntry->protStaCache[i].addr,
+	qdf_mem_copy(pe_session->protStaCache[i].addr,
 		     peerMacAddr, sizeof(tSirMacAddr));
 
-	psessionEntry->protStaCache[i].protStaCacheType = protStaCacheType;
-	psessionEntry->protStaCache[i].active = true;
+	pe_session->protStaCache[i].protStaCacheType = protStaCacheType;
+	pe_session->protStaCache[i].active = true;
 	if (eLIM_PROT_STA_CACHE_TYPE_llB == protStaCacheType) {
-		psessionEntry->gLim11bParams.numSta++;
+		pe_session->gLim11bParams.numSta++;
 		pe_debug("11B,");
 	} else if (eLIM_PROT_STA_CACHE_TYPE_llG == protStaCacheType) {
-		psessionEntry->gLim11gParams.numSta++;
+		pe_session->gLim11gParams.numSta++;
 		pe_debug("11G,");
 	} else if (eLIM_PROT_STA_CACHE_TYPE_HT20 == protStaCacheType) {
-		psessionEntry->gLimHt20Params.numSta++;
+		pe_session->gLimHt20Params.numSta++;
 		pe_debug("HT20,");
 	}
 
 	if (!gfSupported) {
-		psessionEntry->gLimNonGfParams.numSta++;
+		pe_session->gLimNonGfParams.numSta++;
 		pe_debug("NonGf,");
 	}
 	if (!lsigTxopSupported) {
-		psessionEntry->gLimLsigTxopParams.numSta++;
+		pe_session->gLimLsigTxopParams.numSta++;
 		pe_debug("!lsigTxopSupported");
 	}
 } /* --------------------------------------------------------------------- */
@@ -1216,7 +1216,7 @@
 void
 lim_decide_ap_protection(tpAniSirGlobal mac, tSirMacAddr peerMacAddr,
 			 tpUpdateBeaconParams pBeaconParams,
-			 struct pe_session *psessionEntry)
+			 struct pe_session *pe_session)
 {
 	uint16_t tmpAid;
 	tpDphHashNode pStaDs;
@@ -1230,32 +1230,32 @@
 	/* check whether to enable protection or not */
 	pStaDs =
 		dph_lookup_hash_entry(mac, peerMacAddr, &tmpAid,
-				      &psessionEntry->dph.dphHashTable);
+				      &pe_session->dph.dphHashTable);
 	if (NULL == pStaDs) {
 		pe_err("pStaDs is NULL");
 		return;
 	}
-	lim_get_rf_band_new(mac, &rfBand, psessionEntry);
+	lim_get_rf_band_new(mac, &rfBand, pe_session);
 	/* if we are in 5 GHZ band */
 	if (BAND_5G == rfBand) {
 		/* We are 11N. we need to protect from 11A and Ht20. we don't need any other protection in 5 GHZ. */
 		/* HT20 case is common between both the bands and handled down as common code. */
-		if (true == psessionEntry->htCapability) {
+		if (true == pe_session->htCapability) {
 			/* we are 11N and 11A station is joining. */
 			/* protection from 11A required. */
 			if (false == pStaDs->mlmStaContext.htCapability) {
 				lim_update_11a_protection(mac, true, false,
 							 pBeaconParams,
-							 psessionEntry);
+							 pe_session);
 				return;
 			}
 		}
 	} else if (BAND_2G == rfBand) {
-		lim_get_phy_mode(mac, &phyMode, psessionEntry);
+		lim_get_phy_mode(mac, &phyMode, pe_session);
 
 		/* We are 11G. Check if we need protection from 11b Stations. */
 		if ((phyMode == WNI_CFG_PHY_MODE_11G) &&
-		    (false == psessionEntry->htCapability)) {
+		    (false == pe_session->htCapability)) {
 
 			if (pStaDs->erpEnabled == eHAL_CLEAR) {
 				protStaCacheType = eLIM_PROT_STA_CACHE_TYPE_llB;
@@ -1263,11 +1263,11 @@
 				pe_debug("Enabling protection from 11B");
 				lim_enable11g_protection(mac, true, false,
 							 pBeaconParams,
-							 psessionEntry);
+							 pe_session);
 			}
 		}
 		/* HT station. */
-		if (true == psessionEntry->htCapability) {
+		if (true == pe_session->htCapability) {
 			/* check if we need protection from 11b station */
 			if ((pStaDs->erpEnabled == eHAL_CLEAR) &&
 			    (!pStaDs->mlmStaContext.htCapability)) {
@@ -1276,7 +1276,7 @@
 				pe_debug("Enabling protection from 11B");
 				lim_enable11g_protection(mac, true, false,
 							 pBeaconParams,
-							 psessionEntry);
+							 pe_session);
 			}
 			/* station being joined is non-11b and non-ht ==> 11g device */
 			else if (!pStaDs->mlmStaContext.htCapability) {
@@ -1284,7 +1284,7 @@
 				/* enable protection */
 				lim_enable_ht_protection_from11g(mac, true, false,
 								 pBeaconParams,
-								 psessionEntry);
+								 pe_session);
 			}
 			/* ERP mode is enabled for the latest station joined */
 			/* latest station joined is HT capable */
@@ -1292,34 +1292,34 @@
 		}
 	}
 	/* we are HT and HT station is joining. This code is common for both the bands. */
-	if ((true == psessionEntry->htCapability) &&
+	if ((true == pe_session->htCapability) &&
 	    (true == pStaDs->mlmStaContext.htCapability)) {
 		if (!pStaDs->htGreenfield) {
 			lim_enable_ht_non_gf_protection(mac, true, false,
 							pBeaconParams,
-							psessionEntry);
+							pe_session);
 			gfSupported = eHAL_CLEAR;
 		}
 		/* Station joining is HT 20Mhz */
 		if ((eHT_CHANNEL_WIDTH_20MHZ ==
 		pStaDs->htSupportedChannelWidthSet) &&
 		(eHT_CHANNEL_WIDTH_20MHZ !=
-		 psessionEntry->htSupportedChannelWidthSet)){
+		 pe_session->htSupportedChannelWidthSet)){
 			protStaCacheType = eLIM_PROT_STA_CACHE_TYPE_HT20;
 			lim_enable_ht20_protection(mac, true, false,
-						   pBeaconParams, psessionEntry);
+						   pBeaconParams, pe_session);
 		}
 		/* Station joining does not support LSIG TXOP Protection */
 		if (!pStaDs->htLsigTXOPProtection) {
 			lim_enable_ht_lsig_txop_protection(mac, false, false,
 							   pBeaconParams,
-							   psessionEntry);
+							   pe_session);
 			lsigTxopSupported = eHAL_CLEAR;
 		}
 	}
 
 	lim_update_prot_sta_params(mac, peerMacAddr, protStaCacheType,
-				   gfSupported, lsigTxopSupported, psessionEntry);
+				   gfSupported, lsigTxopSupported, pe_session);
 
 	return;
 }
@@ -1335,17 +1335,17 @@
 void
 lim_enable_overlap11g_protection(tpAniSirGlobal mac,
 				 tpUpdateBeaconParams pBeaconParams,
-				 tpSirMacMgmtHdr pMh, struct pe_session *psessionEntry)
+				 tpSirMacMgmtHdr pMh, struct pe_session *pe_session)
 {
 	lim_update_overlap_sta_param(mac, pMh->bssId,
-				     &(psessionEntry->gLimOlbcParams));
+				     &(pe_session->gLimOlbcParams));
 
-	if (psessionEntry->gLimOlbcParams.numSta &&
-	    !psessionEntry->gLimOlbcParams.protectionEnabled) {
+	if (pe_session->gLimOlbcParams.numSta &&
+	    !pe_session->gLimOlbcParams.protectionEnabled) {
 		/* enable protection */
 		pe_debug("OLBC happens!!!");
 		lim_enable11g_protection(mac, true, true, pBeaconParams,
-					 psessionEntry);
+					 pe_session);
 	}
 }
 
@@ -1601,24 +1601,24 @@
 void
 lim_decide_sta_protection_on_assoc(tpAniSirGlobal mac,
 				   tpSchBeaconStruct pBeaconStruct,
-				   struct pe_session *psessionEntry)
+				   struct pe_session *pe_session)
 {
 	enum band_info rfBand = BAND_UNKNOWN;
 	uint32_t phyMode = WNI_CFG_PHY_MODE_NONE;
 
-	lim_get_rf_band_new(mac, &rfBand, psessionEntry);
-	lim_get_phy_mode(mac, &phyMode, psessionEntry);
+	lim_get_rf_band_new(mac, &rfBand, pe_session);
+	lim_get_phy_mode(mac, &phyMode, pe_session);
 
 	if (BAND_5G == rfBand) {
 		if ((eSIR_HT_OP_MODE_MIXED == pBeaconStruct->HTInfo.opMode) ||
 		    (eSIR_HT_OP_MODE_OVERLAP_LEGACY ==
 		     pBeaconStruct->HTInfo.opMode)) {
 			if (mac->lim.cfgProtection.fromlla)
-				psessionEntry->beaconParams.llaCoexist = true;
+				pe_session->beaconParams.llaCoexist = true;
 		} else if (eSIR_HT_OP_MODE_NO_LEGACY_20MHZ_HT ==
 			   pBeaconStruct->HTInfo.opMode) {
 			if (mac->lim.cfgProtection.ht20)
-				psessionEntry->beaconParams.ht20Coexist = true;
+				pe_session->beaconParams.ht20Coexist = true;
 		}
 
 	} else if (BAND_2G == rfBand) {
@@ -1637,20 +1637,20 @@
 			    pBeaconStruct->erpPresent &&
 			    (pBeaconStruct->erpIEInfo.useProtection ||
 			     pBeaconStruct->erpIEInfo.nonErpPresent)) {
-				psessionEntry->beaconParams.llbCoexist = true;
+				pe_session->beaconParams.llbCoexist = true;
 			}
 			/* AP has no 11b station associated. */
 			else {
-				psessionEntry->beaconParams.llbCoexist = false;
+				pe_session->beaconParams.llbCoexist = false;
 			}
 		}
 		/* following code block is only for HT station. */
-		if ((psessionEntry->htCapability) &&
+		if ((pe_session->htCapability) &&
 		    (pBeaconStruct->HTInfo.present)) {
 			tDot11fIEHTInfo htInfo = pBeaconStruct->HTInfo;
 
 			/* Obss Non HT STA present mode */
-			psessionEntry->beaconParams.gHTObssMode =
+			pe_session->beaconParams.gHTObssMode =
 				(uint8_t) htInfo.obssNonHTStaPresent;
 
 			/* CFG protection from 11G is enabled and */
@@ -1658,9 +1658,9 @@
 			if (mac->lim.cfgProtection.fromllg &&
 			    ((eSIR_HT_OP_MODE_MIXED == htInfo.opMode) ||
 			     (eSIR_HT_OP_MODE_OVERLAP_LEGACY == htInfo.opMode))
-			    && (!psessionEntry->beaconParams.llbCoexist)) {
+			    && (!pe_session->beaconParams.llbCoexist)) {
 				if (mac->lim.cfgProtection.fromllg)
-					psessionEntry->beaconParams.llgCoexist =
+					pe_session->beaconParams.llgCoexist =
 						true;
 			}
 			/* AP has only HT stations associated and at least one station is HT 20 */
@@ -1668,30 +1668,30 @@
 			/* decision for disabling protection from 11b has already been taken above. */
 			if (eSIR_HT_OP_MODE_NO_LEGACY_20MHZ_HT == htInfo.opMode) {
 				/* Disable protection from 11G station. */
-				psessionEntry->beaconParams.llgCoexist = false;
+				pe_session->beaconParams.llgCoexist = false;
 				/* CFG protection from HT 20 is enabled. */
 				if (mac->lim.cfgProtection.ht20)
-					psessionEntry->beaconParams.
+					pe_session->beaconParams.
 					ht20Coexist = true;
 			}
 			/* Disable protection from non-HT and HT20 devices. */
 			/* decision for disabling protection from 11b has already been taken above. */
 			if (eSIR_HT_OP_MODE_PURE == htInfo.opMode) {
-				psessionEntry->beaconParams.llgCoexist = false;
-				psessionEntry->beaconParams.ht20Coexist = false;
+				pe_session->beaconParams.llgCoexist = false;
+				pe_session->beaconParams.ht20Coexist = false;
 			}
 
 		}
 	}
 	/* protection related factors other than HT operating mode. Applies to 2.4 GHZ as well as 5 GHZ. */
-	if ((psessionEntry->htCapability) && (pBeaconStruct->HTInfo.present)) {
+	if ((pe_session->htCapability) && (pBeaconStruct->HTInfo.present)) {
 		tDot11fIEHTInfo htInfo = pBeaconStruct->HTInfo;
 
-		psessionEntry->beaconParams.fRIFSMode =
+		pe_session->beaconParams.fRIFSMode =
 			(uint8_t) htInfo.rifsMode;
-		psessionEntry->beaconParams.llnNonGFCoexist =
+		pe_session->beaconParams.llnNonGFCoexist =
 			(uint8_t) htInfo.nonGFDevicesPresent;
-		psessionEntry->beaconParams.fLsigTXOPProtectionFullSupport =
+		pe_session->beaconParams.fLsigTXOPProtectionFullSupport =
 			(uint8_t) htInfo.lsigTXOPProtectionFullSupport;
 	}
 }
@@ -1957,35 +1957,35 @@
  */
 static void __lim_process_channel_switch_timeout(tpAniSirGlobal mac)
 {
-	struct pe_session *psessionEntry = NULL;
+	struct pe_session *pe_session = NULL;
 	uint8_t channel; /* This is received and stored from channelSwitch Action frame */
 
-	psessionEntry = pe_find_session_by_session_id(mac,
+	pe_session = pe_find_session_by_session_id(mac,
 			mac->lim.limTimers.gLimChannelSwitchTimer.sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session Does not exist for given sessionID");
 		return;
 	}
 
-	if (!LIM_IS_STA_ROLE(psessionEntry)) {
+	if (!LIM_IS_STA_ROLE(pe_session)) {
 		pe_warn("Channel switch can be done only in STA role, Current Role: %d",
-			       GET_LIM_SYSTEM_ROLE(psessionEntry));
+			       GET_LIM_SYSTEM_ROLE(pe_session));
 		return;
 	}
 
-	if (psessionEntry->gLimSpecMgmt.dot11hChanSwState !=
+	if (pe_session->gLimSpecMgmt.dot11hChanSwState !=
 	   eLIM_11H_CHANSW_RUNNING) {
 		pe_warn("Channel switch timer should not have been running in state: %d",
-			psessionEntry->gLimSpecMgmt.dot11hChanSwState);
+			pe_session->gLimSpecMgmt.dot11hChanSwState);
 		return;
 	}
 
-	channel = psessionEntry->gLimChannelSwitch.primaryChannel;
+	channel = pe_session->gLimChannelSwitch.primaryChannel;
 	/* Restore Channel Switch parameters to default */
-	psessionEntry->gLimChannelSwitch.switchTimeoutValue = 0;
+	pe_session->gLimChannelSwitch.switchTimeoutValue = 0;
 
 	/* Channel-switch timeout has occurred. reset the state */
-	psessionEntry->gLimSpecMgmt.dot11hChanSwState = eLIM_11H_CHANSW_END;
+	pe_session->gLimSpecMgmt.dot11hChanSwState = eLIM_11H_CHANSW_END;
 
 	/* Check if the AP is switching to a channel that we support.
 	 * Else, just don't bother to switch. Indicate HDD to look for a
@@ -1993,7 +1993,7 @@
 	 */
 	if (!lim_is_channel_valid_for_channel_switch(mac, channel)) {
 		/* We need to restore pre-channelSwitch state on the STA */
-		if (lim_restore_pre_channel_switch_state(mac, psessionEntry) !=
+		if (lim_restore_pre_channel_switch_state(mac, pe_session) !=
 		    QDF_STATUS_SUCCESS) {
 			pe_err("Could not restore pre-channelSwitch (11h) state, resetting the system");
 			return;
@@ -2004,10 +2004,10 @@
 		 * then we cannot switch the channel. Just disassociate from AP.
 		 * We will find a better AP !!!
 		 */
-		if ((psessionEntry->limMlmState ==
+		if ((pe_session->limMlmState ==
 		   eLIM_MLM_LINK_ESTABLISHED_STATE) &&
-		   (psessionEntry->limSmeState != eLIM_SME_WT_DISASSOC_STATE) &&
-		   (psessionEntry->limSmeState != eLIM_SME_WT_DEAUTH_STATE)) {
+		   (pe_session->limSmeState != eLIM_SME_WT_DISASSOC_STATE) &&
+		   (pe_session->limSmeState != eLIM_SME_WT_DEAUTH_STATE)) {
 			pe_err("Invalid channel! Disconnect");
 			lim_tear_down_link_with_ap(mac,
 					   mac->lim.limTimers.
@@ -2016,34 +2016,34 @@
 			return;
 		}
 	}
-	lim_covert_channel_scan_type(mac, psessionEntry->currentOperChannel,
+	lim_covert_channel_scan_type(mac, pe_session->currentOperChannel,
 				     false);
-	mac->lim.dfschannelList.timeStamp[psessionEntry->currentOperChannel] =
+	mac->lim.dfschannelList.timeStamp[pe_session->currentOperChannel] =
 		0;
-	switch (psessionEntry->gLimChannelSwitch.state) {
+	switch (pe_session->gLimChannelSwitch.state) {
 	case eLIM_CHANNEL_SWITCH_PRIMARY_ONLY:
 		pe_warn("CHANNEL_SWITCH_PRIMARY_ONLY");
 		lim_switch_primary_channel(mac,
-					   psessionEntry->gLimChannelSwitch.
-					   primaryChannel, psessionEntry);
-		psessionEntry->gLimChannelSwitch.state =
+					   pe_session->gLimChannelSwitch.
+					   primaryChannel, pe_session);
+		pe_session->gLimChannelSwitch.state =
 			eLIM_CHANNEL_SWITCH_IDLE;
 		break;
 	case eLIM_CHANNEL_SWITCH_PRIMARY_AND_SECONDARY:
 		pe_warn("CHANNEL_SWITCH_PRIMARY_AND_SECONDARY");
-		lim_switch_primary_secondary_channel(mac, psessionEntry,
-			psessionEntry->gLimChannelSwitch.primaryChannel,
-			psessionEntry->gLimChannelSwitch.ch_center_freq_seg0,
-			psessionEntry->gLimChannelSwitch.ch_center_freq_seg1,
-			psessionEntry->gLimChannelSwitch.ch_width);
-		psessionEntry->gLimChannelSwitch.state =
+		lim_switch_primary_secondary_channel(mac, pe_session,
+			pe_session->gLimChannelSwitch.primaryChannel,
+			pe_session->gLimChannelSwitch.ch_center_freq_seg0,
+			pe_session->gLimChannelSwitch.ch_center_freq_seg1,
+			pe_session->gLimChannelSwitch.ch_width);
+		pe_session->gLimChannelSwitch.state =
 			eLIM_CHANNEL_SWITCH_IDLE;
 		break;
 
 	case eLIM_CHANNEL_SWITCH_IDLE:
 	default:
 		pe_err("incorrect state");
-		if (lim_restore_pre_channel_switch_state(mac, psessionEntry) !=
+		if (lim_restore_pre_channel_switch_state(mac, pe_session) !=
 		    QDF_STATUS_SUCCESS) {
 			pe_err("Could not restore pre-channelSwitch (11h) state, resetting the system");
 		}
@@ -2190,16 +2190,16 @@
  * @return None
  */
 void lim_cancel_dot11h_channel_switch(tpAniSirGlobal mac,
-				      struct pe_session *psessionEntry)
+				      struct pe_session *pe_session)
 {
-	if (!LIM_IS_STA_ROLE(psessionEntry))
+	if (!LIM_IS_STA_ROLE(pe_session))
 		return;
 
 	pe_debug("Received a beacon without channel switch IE");
 
 	MTRACE(mac_trace
 		       (mac, TRACE_CODE_TIMER_DEACTIVATE,
-		       psessionEntry->peSessionId, eLIM_CHANNEL_SWITCH_TIMER));
+		       pe_session->peSessionId, eLIM_CHANNEL_SWITCH_TIMER));
 
 	if (tx_timer_deactivate(&mac->lim.limTimers.gLimChannelSwitchTimer) !=
 	    QDF_STATUS_SUCCESS) {
@@ -2207,7 +2207,7 @@
 	}
 
 	/* We need to restore pre-channelSwitch state on the STA */
-	if (lim_restore_pre_channel_switch_state(mac, psessionEntry) !=
+	if (lim_restore_pre_channel_switch_state(mac, pe_session) !=
 	    QDF_STATUS_SUCCESS) {
 		pe_err("LIM: Could not restore pre-channelSwitch (11h) state, resetting the system");
 	}
@@ -2223,7 +2223,7 @@
  */
 void
 lim_util_count_sta_add(tpAniSirGlobal mac,
-		       tpDphHashNode pSta, struct pe_session *psessionEntry)
+		       tpDphHashNode pSta, struct pe_session *pe_session)
 {
 
 	if ((!pSta) || (!pSta->valid) || (pSta->fAniCount))
@@ -2235,12 +2235,12 @@
 		return;
 
 	/* get here only if this is the first ANI peer in the BSS */
-	sch_edca_profile_update(mac, psessionEntry);
+	sch_edca_profile_update(mac, pe_session);
 }
 
 void
 lim_util_count_sta_del(tpAniSirGlobal mac,
-		       tpDphHashNode pSta, struct pe_session *psessionEntry)
+		       tpDphHashNode pSta, struct pe_session *pe_session)
 {
 
 	if ((pSta == NULL) || (!pSta->fAniCount))
@@ -2267,7 +2267,7 @@
 		return;
 
 	/* get here only if this is the last ANI peer in the BSS */
-	sch_edca_profile_update(mac, psessionEntry);
+	sch_edca_profile_update(mac, pe_session);
 }
 
 /**
@@ -2281,11 +2281,11 @@
  * @param  mac               Pointer to Global MAC structure
  * @param  status             Status of channel switch request
  * @param  data               User data
- * @param  psessionEntry      Session information
+ * @param  pe_session      Session information
  * @return NONE
  */
 void lim_switch_channel_cback(tpAniSirGlobal mac, QDF_STATUS status,
-			      uint32_t *data, struct pe_session *psessionEntry)
+			      uint32_t *data, struct pe_session *pe_session)
 {
 	struct scheduler_msg mmhMsg = { 0 };
 	tSirSmeSwitchChannelInd *pSirSmeSwitchChInd;
@@ -2293,10 +2293,10 @@
 	QDF_STATUS evt_status;
 #endif
 
-	psessionEntry->currentOperChannel = psessionEntry->currentReqChannel;
+	pe_session->currentOperChannel = pe_session->currentReqChannel;
 
 	/* We need to restore pre-channelSwitch state on the STA */
-	if (lim_restore_pre_channel_switch_state(mac, psessionEntry) !=
+	if (lim_restore_pre_channel_switch_state(mac, pe_session) !=
 	    QDF_STATUS_SUCCESS) {
 		pe_err("Could not restore pre-channelSwitch (11h) state, resetting the system");
 		return;
@@ -2310,16 +2310,16 @@
 	pSirSmeSwitchChInd->messageType = eWNI_SME_SWITCH_CHL_IND;
 	pSirSmeSwitchChInd->length = sizeof(tSirSmeSwitchChannelInd);
 	pSirSmeSwitchChInd->newChannelId =
-		psessionEntry->gLimChannelSwitch.primaryChannel;
-	pSirSmeSwitchChInd->sessionId = psessionEntry->smeSessionId;
+		pe_session->gLimChannelSwitch.primaryChannel;
+	pSirSmeSwitchChInd->sessionId = pe_session->smeSessionId;
 	pSirSmeSwitchChInd->chan_params.ch_width =
-			psessionEntry->gLimChannelSwitch.ch_width;
+			pe_session->gLimChannelSwitch.ch_width;
 	pSirSmeSwitchChInd->chan_params.sec_ch_offset =
-			psessionEntry->gLimChannelSwitch.sec_ch_offset;
+			pe_session->gLimChannelSwitch.sec_ch_offset;
 	pSirSmeSwitchChInd->chan_params.center_freq_seg0 =
-			psessionEntry->gLimChannelSwitch.ch_center_freq_seg0;
+			pe_session->gLimChannelSwitch.ch_center_freq_seg0;
 	pSirSmeSwitchChInd->chan_params.center_freq_seg1 =
-			psessionEntry->gLimChannelSwitch.ch_center_freq_seg1;
+			pe_session->gLimChannelSwitch.ch_center_freq_seg1;
 
 	pe_debug("session: %d chan: %d width: %d sec offset: %d seg0: %d seg1: %d",
 		pSirSmeSwitchChInd->sessionId,
@@ -2329,23 +2329,23 @@
 		pSirSmeSwitchChInd->chan_params.center_freq_seg0,
 		pSirSmeSwitchChInd->chan_params.center_freq_seg1);
 
-	qdf_mem_copy(pSirSmeSwitchChInd->bssid.bytes, psessionEntry->bssId,
+	qdf_mem_copy(pSirSmeSwitchChInd->bssid.bytes, pe_session->bssId,
 		     QDF_MAC_ADDR_SIZE);
 	mmhMsg.bodyptr = pSirSmeSwitchChInd;
 	mmhMsg.bodyval = 0;
 
 	MTRACE(mac_trace(mac, TRACE_CODE_TX_SME_MSG,
-			 psessionEntry->peSessionId, mmhMsg.type));
+			 pe_session->peSessionId, mmhMsg.type));
 
 	sys_process_mmh_msg(mac, &mmhMsg);
 #ifdef CONFIG_VDEV_SM
 	evt_status = wlan_vdev_mlme_sm_deliver_evt(
-				psessionEntry->vdev,
+				pe_session->vdev,
 				WLAN_VDEV_SM_EV_START_SUCCESS,
-				sizeof(*psessionEntry), psessionEntry);
+				sizeof(*pe_session), pe_session);
 	if (QDF_IS_STATUS_ERROR(evt_status)) {
 		pe_err("Failed to post WLAN_VDEV_SM_EV_START_SUCCESS for vdevid %d",
-		       psessionEntry->smeSessionId);
+		       pe_session->smeSessionId);
 	}
 #endif
 }
@@ -2363,22 +2363,22 @@
  * @return NONE
  */
 void lim_switch_primary_channel(tpAniSirGlobal mac, uint8_t newChannel,
-				struct pe_session *psessionEntry)
+				struct pe_session *pe_session)
 {
 	pe_debug("old chnl: %d --> new chnl: %d",
-		       psessionEntry->currentOperChannel, newChannel);
+		       pe_session->currentOperChannel, newChannel);
 
-	psessionEntry->currentReqChannel = newChannel;
-	psessionEntry->limRFBand = lim_get_rf_band(newChannel);
+	pe_session->currentReqChannel = newChannel;
+	pe_session->limRFBand = lim_get_rf_band(newChannel);
 
-	psessionEntry->channelChangeReasonCode = LIM_SWITCH_CHANNEL_OPERATION;
+	pe_session->channelChangeReasonCode = LIM_SWITCH_CHANNEL_OPERATION;
 
 	mac->lim.gpchangeChannelCallback = lim_switch_channel_cback;
 	mac->lim.gpchangeChannelData = NULL;
 
 	lim_send_switch_chnl_params(mac, newChannel, 0, 0, CH_WIDTH_20MHZ,
-				    psessionEntry->maxTxPower,
-				    psessionEntry->peSessionId, false, 0, 0);
+				    pe_session->maxTxPower,
+				    pe_session->peSessionId, false, 0, 0);
 	return;
 }
 
@@ -2402,7 +2402,7 @@
  * @return NONE
  */
 void lim_switch_primary_secondary_channel(tpAniSirGlobal mac,
-					struct pe_session *psessionEntry,
+					struct pe_session *pe_session,
 					uint8_t newChannel,
 					uint8_t ch_center_freq_seg0,
 					uint8_t ch_center_freq_seg1,
@@ -2410,41 +2410,41 @@
 {
 
 	/* Assign the callback to resume TX once channel is changed. */
-	psessionEntry->currentReqChannel = newChannel;
-	psessionEntry->limRFBand = lim_get_rf_band(newChannel);
-	psessionEntry->channelChangeReasonCode = LIM_SWITCH_CHANNEL_OPERATION;
+	pe_session->currentReqChannel = newChannel;
+	pe_session->limRFBand = lim_get_rf_band(newChannel);
+	pe_session->channelChangeReasonCode = LIM_SWITCH_CHANNEL_OPERATION;
 	mac->lim.gpchangeChannelCallback = lim_switch_channel_cback;
 	mac->lim.gpchangeChannelData = NULL;
 
 	lim_send_switch_chnl_params(mac, newChannel, ch_center_freq_seg0,
 					ch_center_freq_seg1, ch_width,
-					psessionEntry->maxTxPower,
-					psessionEntry->peSessionId,
+					pe_session->maxTxPower,
+					pe_session->peSessionId,
 					false, 0, 0);
 
 	/* Store the new primary and secondary channel in session entries if different */
-	if (psessionEntry->currentOperChannel != newChannel) {
+	if (pe_session->currentOperChannel != newChannel) {
 		pe_warn("switch old chnl: %d --> new chnl: %d",
-			psessionEntry->currentOperChannel, newChannel);
-		psessionEntry->currentOperChannel = newChannel;
+			pe_session->currentOperChannel, newChannel);
+		pe_session->currentOperChannel = newChannel;
 	}
-	if (psessionEntry->htSecondaryChannelOffset !=
-			psessionEntry->gLimChannelSwitch.sec_ch_offset) {
+	if (pe_session->htSecondaryChannelOffset !=
+			pe_session->gLimChannelSwitch.sec_ch_offset) {
 		pe_warn("switch old sec chnl: %d --> new sec chnl: %d",
-			psessionEntry->htSecondaryChannelOffset,
-			psessionEntry->gLimChannelSwitch.sec_ch_offset);
-		psessionEntry->htSecondaryChannelOffset =
-			psessionEntry->gLimChannelSwitch.sec_ch_offset;
-		if (psessionEntry->htSecondaryChannelOffset ==
+			pe_session->htSecondaryChannelOffset,
+			pe_session->gLimChannelSwitch.sec_ch_offset);
+		pe_session->htSecondaryChannelOffset =
+			pe_session->gLimChannelSwitch.sec_ch_offset;
+		if (pe_session->htSecondaryChannelOffset ==
 		    PHY_SINGLE_CHANNEL_CENTERED) {
-			psessionEntry->htSupportedChannelWidthSet =
+			pe_session->htSupportedChannelWidthSet =
 				WNI_CFG_CHANNEL_BONDING_MODE_DISABLE;
 		} else {
-			psessionEntry->htSupportedChannelWidthSet =
+			pe_session->htSupportedChannelWidthSet =
 				WNI_CFG_CHANNEL_BONDING_MODE_ENABLE;
 		}
-		psessionEntry->htRecommendedTxWidthSet =
-			psessionEntry->htSupportedChannelWidthSet;
+		pe_session->htRecommendedTxWidthSet =
+			pe_session->htSupportedChannelWidthSet;
 	}
 
 	return;
@@ -2478,7 +2478,7 @@
  */
 
 uint8_t lim_get_ht_capability(tpAniSirGlobal mac,
-			      uint32_t htCap, struct pe_session *psessionEntry)
+			      uint32_t htCap, struct pe_session *pe_session)
 {
 	uint8_t retVal = 0;
 	uint8_t *ptr;
@@ -2532,24 +2532,24 @@
 		break;
 
 	case eHT_MAX_AMSDU_NUM:
-		retVal = (uint8_t) psessionEntry->max_amsdu_num;
+		retVal = (uint8_t) pe_session->max_amsdu_num;
 		break;
 
 	case eHT_RX_STBC:
-		retVal = (uint8_t) psessionEntry->htConfig.ht_rx_stbc;
+		retVal = (uint8_t) pe_session->htConfig.ht_rx_stbc;
 		break;
 
 	case eHT_TX_STBC:
-		retVal = (uint8_t) psessionEntry->htConfig.ht_tx_stbc;
+		retVal = (uint8_t) pe_session->htConfig.ht_tx_stbc;
 		break;
 
 	case eHT_SHORT_GI_40MHZ:
-		retVal = (uint8_t)(psessionEntry->htConfig.ht_sgi40) ?
+		retVal = (uint8_t)(pe_session->htConfig.ht_sgi40) ?
 			mac->mlme_cfg->ht_caps.ht_cap_info.short_gi_40_mhz : 0;
 		break;
 
 	case eHT_SHORT_GI_20MHZ:
-		retVal = (uint8_t)(psessionEntry->htConfig.ht_sgi20) ?
+		retVal = (uint8_t)(pe_session->htConfig.ht_sgi20) ?
 			mac->mlme_cfg->ht_caps.ht_cap_info.short_gi_20_mhz : 0;
 		break;
 
@@ -2563,11 +2563,11 @@
 		break;
 
 	case eHT_SUPPORTED_CHANNEL_WIDTH_SET:
-		retVal = (uint8_t) psessionEntry->htSupportedChannelWidthSet;
+		retVal = (uint8_t) pe_session->htSupportedChannelWidthSet;
 		break;
 
 	case eHT_ADVANCED_CODING:
-		retVal = (uint8_t) psessionEntry->htConfig.ht_rx_ldpc;
+		retVal = (uint8_t) pe_session->htConfig.ht_rx_ldpc;
 		break;
 
 	case eHT_MAX_RX_AMPDU_FACTOR:
@@ -2609,20 +2609,20 @@
 		break;
 
 	case eHT_RIFS_MODE:
-		retVal = psessionEntry->beaconParams.fRIFSMode;
+		retVal = pe_session->beaconParams.fRIFSMode;
 		break;
 
 	case eHT_RECOMMENDED_TX_WIDTH_SET:
-		retVal = psessionEntry->htRecommendedTxWidthSet;
+		retVal = pe_session->htRecommendedTxWidthSet;
 		break;
 
 	case eHT_EXTENSION_CHANNEL_OFFSET:
-		retVal = psessionEntry->htSecondaryChannelOffset;
+		retVal = pe_session->htSecondaryChannelOffset;
 		break;
 
 	case eHT_OP_MODE:
-		if (LIM_IS_AP_ROLE(psessionEntry))
-			retVal = psessionEntry->htOperMode;
+		if (LIM_IS_AP_ROLE(pe_session))
+			retVal = pe_session->htOperMode;
 		else
 			retVal = mac->lim.gHTOperMode;
 		break;
@@ -2637,7 +2637,7 @@
 
 	case eHT_LSIG_TXOP_PROTECTION_FULL_SUPPORT:
 		retVal =
-			psessionEntry->beaconParams.fLsigTXOPProtectionFullSupport;
+			pe_session->beaconParams.fLsigTXOPProtectionFullSupport;
 		break;
 
 	case eHT_PCO_ACTIVE:
@@ -3130,27 +3130,27 @@
 lim_enable_ht_protection_from11g(tpAniSirGlobal mac, uint8_t enable,
 				 uint8_t overlap,
 				 tpUpdateBeaconParams pBeaconParams,
-				 struct pe_session *psessionEntry)
+				 struct pe_session *pe_session)
 {
-	if (!psessionEntry->htCapability)
+	if (!pe_session->htCapability)
 		return QDF_STATUS_SUCCESS;  /* protection from 11g is only for HT stations. */
 
 	/* overlapping protection configuration check. */
 	if (overlap) {
-		if ((LIM_IS_AP_ROLE(psessionEntry))
-		    && (!psessionEntry->cfgProtection.overlapFromllg)) {
+		if ((LIM_IS_AP_ROLE(pe_session))
+		    && (!pe_session->cfgProtection.overlapFromllg)) {
 			/* protection disabled. */
 			pe_debug("overlap protection from 11g is disabled");
 			return QDF_STATUS_SUCCESS;
 		}
 	} else {
 		/* normal protection config check */
-		if (LIM_IS_AP_ROLE(psessionEntry) &&
-		    !psessionEntry->cfgProtection.fromllg) {
+		if (LIM_IS_AP_ROLE(pe_session) &&
+		    !pe_session->cfgProtection.fromllg) {
 			/* protection disabled. */
 			pe_debug("protection from 11g is disabled");
 			return QDF_STATUS_SUCCESS;
-		} else if (!LIM_IS_AP_ROLE(psessionEntry)) {
+		} else if (!LIM_IS_AP_ROLE(pe_session)) {
 			if (!mac->lim.cfgProtection.fromllg) {
 				/* protection disabled. */
 				pe_debug("protection from 11g is disabled");
@@ -3162,54 +3162,54 @@
 		/* If we are AP and HT capable, we need to set the HT OP mode */
 		/* appropriately. */
 
-		if (LIM_IS_AP_ROLE(psessionEntry)) {
+		if (LIM_IS_AP_ROLE(pe_session)) {
 			if (overlap) {
-				psessionEntry->gLimOverlap11gParams.
+				pe_session->gLimOverlap11gParams.
 				protectionEnabled = true;
 				/* 11g exists in overlap BSS. */
 				/* need not to change the operating mode to overlap_legacy */
 				/* if higher or same protection operating mode is enabled right now. */
 				if ((eSIR_HT_OP_MODE_OVERLAP_LEGACY !=
-				     psessionEntry->htOperMode)
+				     pe_session->htOperMode)
 				    && (eSIR_HT_OP_MODE_MIXED !=
-					psessionEntry->htOperMode)) {
-					psessionEntry->htOperMode =
+					pe_session->htOperMode)) {
+					pe_session->htOperMode =
 						eSIR_HT_OP_MODE_OVERLAP_LEGACY;
 				}
 				lim_enable_ht_rifs_protection(mac, true, overlap,
 							      pBeaconParams,
-							      psessionEntry);
+							      pe_session);
 				lim_enable_ht_obss_protection(mac, true, overlap,
 							      pBeaconParams,
-							      psessionEntry);
+							      pe_session);
 			} else {
 				/* 11g is associated to an AP operating in 11n mode. */
 				/* Change the HT operating mode to 'mixed mode'. */
-				psessionEntry->gLim11gParams.protectionEnabled =
+				pe_session->gLim11gParams.protectionEnabled =
 					true;
 				if (eSIR_HT_OP_MODE_MIXED !=
-				    psessionEntry->htOperMode) {
-					psessionEntry->htOperMode =
+				    pe_session->htOperMode) {
+					pe_session->htOperMode =
 						eSIR_HT_OP_MODE_MIXED;
 					lim_enable_ht_rifs_protection(mac, true,
 								      overlap,
 								      pBeaconParams,
-								      psessionEntry);
+								      pe_session);
 					lim_enable_ht_obss_protection(mac, true,
 								      overlap,
 								      pBeaconParams,
-								      psessionEntry);
+								      pe_session);
 				}
 			}
 		}
 		/* This part is common for staiton as well. */
-		if (false == psessionEntry->beaconParams.llgCoexist) {
+		if (false == pe_session->beaconParams.llgCoexist) {
 			pBeaconParams->llgCoexist =
-				psessionEntry->beaconParams.llgCoexist = true;
+				pe_session->beaconParams.llgCoexist = true;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_llGCOEXIST_CHANGED;
 		} else if (true ==
-			   psessionEntry->gLimOverlap11gParams.
+			   pe_session->gLimOverlap11gParams.
 			   protectionEnabled) {
 			/* As operating mode changed after G station assoc some way to update beacon */
 			/* This addresses the issue of mode not changing to - 11 in beacon when OBSS overlap is enabled */
@@ -3217,59 +3217,59 @@
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_llGCOEXIST_CHANGED;
 		}
-	} else if (true == psessionEntry->beaconParams.llgCoexist) {
+	} else if (true == pe_session->beaconParams.llgCoexist) {
 		/* for AP role. */
 		/* we need to take care of HT OP mode change if needed. */
 		/* We need to take care of Overlap cases. */
 
-		if (LIM_IS_AP_ROLE(psessionEntry)) {
+		if (LIM_IS_AP_ROLE(pe_session)) {
 			if (overlap) {
 				/* Overlap Legacy protection disabled. */
-				if (psessionEntry->gLim11gParams.numSta == 0)
-					psessionEntry->gLimOverlap11gParams.
+				if (pe_session->gLim11gParams.numSta == 0)
+					pe_session->gLimOverlap11gParams.
 					protectionEnabled = false;
 
 				/* no HT op mode change if any of the overlap protection enabled. */
 				if (!
-				    (psessionEntry->gLimOlbcParams.
+				    (pe_session->gLimOlbcParams.
 				     protectionEnabled
-				     || psessionEntry->gLimOverlapHt20Params.
+				     || pe_session->gLimOverlapHt20Params.
 				     protectionEnabled
-				     || psessionEntry->gLimOverlapNonGfParams.
+				     || pe_session->gLimOverlapNonGfParams.
 				     protectionEnabled)) {
 					/* Check if there is a need to change HT OP mode. */
 					if (eSIR_HT_OP_MODE_OVERLAP_LEGACY ==
-					    psessionEntry->htOperMode) {
+					    pe_session->htOperMode) {
 						lim_enable_ht_rifs_protection(mac,
 									      false,
 									      overlap,
 									      pBeaconParams,
-									      psessionEntry);
+									      pe_session);
 						lim_enable_ht_obss_protection(mac,
 									      false,
 									      overlap,
 									      pBeaconParams,
-									      psessionEntry);
+									      pe_session);
 
-						if (psessionEntry->gLimHt20Params.protectionEnabled) {
+						if (pe_session->gLimHt20Params.protectionEnabled) {
 						if (eHT_CHANNEL_WIDTH_20MHZ ==
-							psessionEntry->htSupportedChannelWidthSet)
-							psessionEntry->htOperMode =
+							pe_session->htSupportedChannelWidthSet)
+							pe_session->htOperMode =
 								eSIR_HT_OP_MODE_PURE;
 						else
-							psessionEntry->htOperMode =
+							pe_session->htOperMode =
 								eSIR_HT_OP_MODE_NO_LEGACY_20MHZ_HT;
 						} else
-							psessionEntry->htOperMode =
+							pe_session->htOperMode =
 								eSIR_HT_OP_MODE_PURE;
 					}
 				}
 			} else {
 				/* Disable protection from 11G stations. */
-				psessionEntry->gLim11gParams.protectionEnabled =
+				pe_session->gLim11gParams.protectionEnabled =
 					false;
 				/* Check if any other non-HT protection enabled. */
-				if (!psessionEntry->gLim11bParams.
+				if (!pe_session->gLim11bParams.
 				    protectionEnabled) {
 
 					/* Right now we are in HT OP Mixed mode. */
@@ -3277,57 +3277,57 @@
 					lim_enable_ht_obss_protection(mac, false,
 								      overlap,
 								      pBeaconParams,
-								      psessionEntry);
+								      pe_session);
 
 					/* Change HT OP mode to 01 if any overlap protection enabled */
-					if (psessionEntry->gLimOlbcParams.
+					if (pe_session->gLimOlbcParams.
 					    protectionEnabled
-					    || psessionEntry->
+					    || pe_session->
 					    gLimOverlap11gParams.
 					    protectionEnabled
-					    || psessionEntry->
+					    || pe_session->
 					    gLimOverlapHt20Params.
 					    protectionEnabled
-					    || psessionEntry->
+					    || pe_session->
 					    gLimOverlapNonGfParams.
 					    protectionEnabled) {
-						psessionEntry->htOperMode =
+						pe_session->htOperMode =
 							eSIR_HT_OP_MODE_OVERLAP_LEGACY;
 						lim_enable_ht_rifs_protection(mac,
 									      true,
 									      overlap,
 									      pBeaconParams,
-									      psessionEntry);
-					} else if (psessionEntry->
+									      pe_session);
+					} else if (pe_session->
 						   gLimHt20Params.
 						   protectionEnabled) {
 						/* Commenting because of CR 258588 WFA cert */
-						/* psessionEntry->htOperMode = eSIR_HT_OP_MODE_NO_LEGACY_20MHZ_HT; */
-						psessionEntry->htOperMode =
+						/* pe_session->htOperMode = eSIR_HT_OP_MODE_NO_LEGACY_20MHZ_HT; */
+						pe_session->htOperMode =
 							eSIR_HT_OP_MODE_PURE;
 						lim_enable_ht_rifs_protection(mac,
 									      false,
 									      overlap,
 									      pBeaconParams,
-									      psessionEntry);
+									      pe_session);
 					} else {
-						psessionEntry->htOperMode =
+						pe_session->htOperMode =
 							eSIR_HT_OP_MODE_PURE;
 						lim_enable_ht_rifs_protection(mac,
 									      false,
 									      overlap,
 									      pBeaconParams,
-									      psessionEntry);
+									      pe_session);
 					}
 				}
 			}
-			if (!psessionEntry->gLimOverlap11gParams.
+			if (!pe_session->gLimOverlap11gParams.
 			    protectionEnabled
-			    && !psessionEntry->gLim11gParams.
+			    && !pe_session->gLim11gParams.
 			    protectionEnabled) {
 				pe_debug("===> Protection from 11G Disabled");
 				pBeaconParams->llgCoexist =
-					psessionEntry->beaconParams.llgCoexist =
+					pe_session->beaconParams.llgCoexist =
 						false;
 				pBeaconParams->paramChangeBitmap |=
 					PARAM_llGCOEXIST_CHANGED;
@@ -3337,7 +3337,7 @@
 		else {
 			pe_debug("===> Protection from 11G Disabled");
 			pBeaconParams->llgCoexist =
-				psessionEntry->beaconParams.llgCoexist = false;
+				pe_session->beaconParams.llgCoexist = false;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_llGCOEXIST_CHANGED;
 		}
@@ -3359,10 +3359,10 @@
 QDF_STATUS
 lim_enable_ht_obss_protection(tpAniSirGlobal mac, uint8_t enable,
 			      uint8_t overlap, tpUpdateBeaconParams pBeaconParams,
-			      struct pe_session *psessionEntry)
+			      struct pe_session *pe_session)
 {
 
-	if (!psessionEntry->htCapability)
+	if (!pe_session->htCapability)
 		return QDF_STATUS_SUCCESS;  /* this protection  is only for HT stations. */
 
 	/* overlapping protection configuration check. */
@@ -3370,12 +3370,12 @@
 		/* overlapping protection configuration check. */
 	} else {
 		/* normal protection config check */
-		if ((LIM_IS_AP_ROLE(psessionEntry)) &&
-		    !psessionEntry->cfgProtection.obss) { /* ToDo Update this field */
+		if ((LIM_IS_AP_ROLE(pe_session)) &&
+		    !pe_session->cfgProtection.obss) { /* ToDo Update this field */
 			/* protection disabled. */
 			pe_debug("protection from Obss is disabled");
 			return QDF_STATUS_SUCCESS;
-		} else if (!LIM_IS_AP_ROLE(psessionEntry)) {
+		} else if (!LIM_IS_AP_ROLE(pe_session)) {
 			if (!mac->lim.cfgProtection.obss) { /* ToDo Update this field */
 				/* protection disabled. */
 				pe_debug("protection from Obss is disabled");
@@ -3384,39 +3384,39 @@
 		}
 	}
 
-	if (LIM_IS_AP_ROLE(psessionEntry)) {
+	if (LIM_IS_AP_ROLE(pe_session)) {
 		if ((enable)
-		    && (false == psessionEntry->beaconParams.gHTObssMode)) {
+		    && (false == pe_session->beaconParams.gHTObssMode)) {
 			pe_debug("=>obss protection enabled");
-			psessionEntry->beaconParams.gHTObssMode = true;
+			pe_session->beaconParams.gHTObssMode = true;
 			pBeaconParams->paramChangeBitmap |= PARAM_OBSS_MODE_CHANGED; /* UPDATE AN ENUM FOR OBSS MODE <todo> */
 
 		} else if (!enable
 			   && (true ==
-			       psessionEntry->beaconParams.gHTObssMode)) {
+			       pe_session->beaconParams.gHTObssMode)) {
 			pe_debug("===> obss Protection disabled");
-			psessionEntry->beaconParams.gHTObssMode = false;
+			pe_session->beaconParams.gHTObssMode = false;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_OBSS_MODE_CHANGED;
 
 		}
 /* CR-263021: OBSS bit is not switching back to 0 after disabling the overlapping legacy BSS */
 		if (!enable && !overlap) {
-			psessionEntry->gLimOverlap11gParams.protectionEnabled =
+			pe_session->gLimOverlap11gParams.protectionEnabled =
 				false;
 		}
 	} else {
 		if ((enable)
-		    && (false == psessionEntry->beaconParams.gHTObssMode)) {
+		    && (false == pe_session->beaconParams.gHTObssMode)) {
 			pe_debug("=>obss protection enabled");
-			psessionEntry->beaconParams.gHTObssMode = true;
+			pe_session->beaconParams.gHTObssMode = true;
 			pBeaconParams->paramChangeBitmap |= PARAM_OBSS_MODE_CHANGED; /* UPDATE AN ENUM FOR OBSS MODE <todo> */
 
 		} else if (!enable
 			   && (true ==
-			       psessionEntry->beaconParams.gHTObssMode)) {
+			       pe_session->beaconParams.gHTObssMode)) {
 			pe_debug("===> obss Protection disabled");
-			psessionEntry->beaconParams.gHTObssMode = false;
+			pe_session->beaconParams.gHTObssMode = false;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_OBSS_MODE_CHANGED;
 
@@ -3628,21 +3628,21 @@
 QDF_STATUS
 lim_enable_ht_non_gf_protection(tpAniSirGlobal mac, uint8_t enable,
 				uint8_t overlap, tpUpdateBeaconParams pBeaconParams,
-				struct pe_session *psessionEntry)
+				struct pe_session *pe_session)
 {
-	if (!psessionEntry->htCapability)
+	if (!pe_session->htCapability)
 		return QDF_STATUS_SUCCESS;  /* this protection  is only for HT stations. */
 
 	/* overlapping protection configuration check. */
 	if (overlap) {
 	} else {
 		/* normal protection config check */
-		if (LIM_IS_AP_ROLE(psessionEntry) &&
-		    !psessionEntry->cfgProtection.nonGf) {
+		if (LIM_IS_AP_ROLE(pe_session) &&
+		    !pe_session->cfgProtection.nonGf) {
 			/* protection disabled. */
 			pe_debug("protection from NonGf is disabled");
 			return QDF_STATUS_SUCCESS;
-		} else if (!LIM_IS_AP_ROLE(psessionEntry)) {
+		} else if (!LIM_IS_AP_ROLE(pe_session)) {
 			/* normal protection config check */
 			if (!mac->lim.cfgProtection.nonGf) {
 				/* protection disabled. */
@@ -3651,37 +3651,37 @@
 			}
 		}
 	}
-	if (LIM_IS_AP_ROLE(psessionEntry)) {
+	if (LIM_IS_AP_ROLE(pe_session)) {
 		if ((enable)
-		    && (false == psessionEntry->beaconParams.llnNonGFCoexist)) {
+		    && (false == pe_session->beaconParams.llnNonGFCoexist)) {
 			pe_debug(" => Protection from non GF Enabled");
 			pBeaconParams->llnNonGFCoexist =
-				psessionEntry->beaconParams.llnNonGFCoexist = true;
+				pe_session->beaconParams.llnNonGFCoexist = true;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_NON_GF_DEVICES_PRESENT_CHANGED;
 		} else if (!enable
 			   && (true ==
-			       psessionEntry->beaconParams.llnNonGFCoexist)) {
+			       pe_session->beaconParams.llnNonGFCoexist)) {
 			pe_debug("===> Protection from Non GF Disabled");
 			pBeaconParams->llnNonGFCoexist =
-				psessionEntry->beaconParams.llnNonGFCoexist = false;
+				pe_session->beaconParams.llnNonGFCoexist = false;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_NON_GF_DEVICES_PRESENT_CHANGED;
 		}
 	} else {
 		if ((enable)
-		    && (false == psessionEntry->beaconParams.llnNonGFCoexist)) {
+		    && (false == pe_session->beaconParams.llnNonGFCoexist)) {
 			pe_debug(" => Protection from non GF Enabled");
 			pBeaconParams->llnNonGFCoexist =
-				psessionEntry->beaconParams.llnNonGFCoexist = true;
+				pe_session->beaconParams.llnNonGFCoexist = true;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_NON_GF_DEVICES_PRESENT_CHANGED;
 		} else if (!enable
 			   && (true ==
-			       psessionEntry->beaconParams.llnNonGFCoexist)) {
+			       pe_session->beaconParams.llnNonGFCoexist)) {
 			pe_debug("===> Protection from Non GF Disabled");
 			pBeaconParams->llnNonGFCoexist =
-				psessionEntry->beaconParams.llnNonGFCoexist = false;
+				pe_session->beaconParams.llnNonGFCoexist = false;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_NON_GF_DEVICES_PRESENT_CHANGED;
 		}
@@ -3702,21 +3702,21 @@
 lim_enable_ht_lsig_txop_protection(tpAniSirGlobal mac, uint8_t enable,
 				   uint8_t overlap,
 				   tpUpdateBeaconParams pBeaconParams,
-				   struct pe_session *psessionEntry)
+				   struct pe_session *pe_session)
 {
-	if (!psessionEntry->htCapability)
+	if (!pe_session->htCapability)
 		return QDF_STATUS_SUCCESS;  /* this protection  is only for HT stations. */
 
 	/* overlapping protection configuration check. */
 	if (overlap) {
 	} else {
 		/* normal protection config check */
-		if (LIM_IS_AP_ROLE(psessionEntry) &&
-			!psessionEntry->cfgProtection.lsigTxop) {
+		if (LIM_IS_AP_ROLE(pe_session) &&
+			!pe_session->cfgProtection.lsigTxop) {
 			/* protection disabled. */
 			pe_debug("protection from LsigTxop not supported is disabled");
 			return QDF_STATUS_SUCCESS;
-		} else if (!LIM_IS_AP_ROLE(psessionEntry)) {
+		} else if (!LIM_IS_AP_ROLE(pe_session)) {
 			/* normal protection config check */
 			if (!mac->lim.cfgProtection.lsigTxop) {
 				/* protection disabled. */
@@ -3726,24 +3726,24 @@
 		}
 	}
 
-	if (LIM_IS_AP_ROLE(psessionEntry)) {
+	if (LIM_IS_AP_ROLE(pe_session)) {
 		if ((enable)
 		    && (false ==
-			psessionEntry->beaconParams.
+			pe_session->beaconParams.
 			fLsigTXOPProtectionFullSupport)) {
 			pe_debug(" => Protection from LsigTxop Enabled");
 			pBeaconParams->fLsigTXOPProtectionFullSupport =
-				psessionEntry->beaconParams.
+				pe_session->beaconParams.
 				fLsigTXOPProtectionFullSupport = true;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_LSIG_TXOP_FULL_SUPPORT_CHANGED;
 		} else if (!enable
 			   && (true ==
-			       psessionEntry->beaconParams.
+			       pe_session->beaconParams.
 			       fLsigTXOPProtectionFullSupport)) {
 			pe_debug("===> Protection from LsigTxop Disabled");
 			pBeaconParams->fLsigTXOPProtectionFullSupport =
-				psessionEntry->beaconParams.
+				pe_session->beaconParams.
 				fLsigTXOPProtectionFullSupport = false;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_LSIG_TXOP_FULL_SUPPORT_CHANGED;
@@ -3751,21 +3751,21 @@
 	} else {
 		if ((enable)
 		    && (false ==
-			psessionEntry->beaconParams.
+			pe_session->beaconParams.
 			fLsigTXOPProtectionFullSupport)) {
 			pe_debug(" => Protection from LsigTxop Enabled");
 			pBeaconParams->fLsigTXOPProtectionFullSupport =
-				psessionEntry->beaconParams.
+				pe_session->beaconParams.
 				fLsigTXOPProtectionFullSupport = true;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_LSIG_TXOP_FULL_SUPPORT_CHANGED;
 		} else if (!enable
 			   && (true ==
-			       psessionEntry->beaconParams.
+			       pe_session->beaconParams.
 			       fLsigTXOPProtectionFullSupport)) {
 			pe_debug("===> Protection from LsigTxop Disabled");
 			pBeaconParams->fLsigTXOPProtectionFullSupport =
-				psessionEntry->beaconParams.
+				pe_session->beaconParams.
 				fLsigTXOPProtectionFullSupport = false;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_LSIG_TXOP_FULL_SUPPORT_CHANGED;
@@ -3787,21 +3787,21 @@
 QDF_STATUS
 lim_enable_ht_rifs_protection(tpAniSirGlobal mac, uint8_t enable,
 			      uint8_t overlap, tpUpdateBeaconParams pBeaconParams,
-			      struct pe_session *psessionEntry)
+			      struct pe_session *pe_session)
 {
-	if (!psessionEntry->htCapability)
+	if (!pe_session->htCapability)
 		return QDF_STATUS_SUCCESS;  /* this protection  is only for HT stations. */
 
 	/* overlapping protection configuration check. */
 	if (overlap) {
 	} else {
 		/* normal protection config check */
-		if (LIM_IS_AP_ROLE(psessionEntry) &&
-		    !psessionEntry->cfgProtection.rifs) {
+		if (LIM_IS_AP_ROLE(pe_session) &&
+		    !pe_session->cfgProtection.rifs) {
 			/* protection disabled. */
 			pe_debug("protection from Rifs is disabled");
 			return QDF_STATUS_SUCCESS;
-		} else if (!LIM_IS_AP_ROLE(psessionEntry)) {
+		} else if (!LIM_IS_AP_ROLE(pe_session)) {
 			/* normal protection config check */
 			if (!mac->lim.cfgProtection.rifs) {
 				/* protection disabled. */
@@ -3811,41 +3811,41 @@
 		}
 	}
 
-	if (LIM_IS_AP_ROLE(psessionEntry)) {
+	if (LIM_IS_AP_ROLE(pe_session)) {
 		/* Disabling the RIFS Protection means Enable the RIFS mode of operation in the BSS */
 		if ((!enable)
-		    && (false == psessionEntry->beaconParams.fRIFSMode)) {
+		    && (false == pe_session->beaconParams.fRIFSMode)) {
 			pe_debug(" => Rifs protection Disabled");
 			pBeaconParams->fRIFSMode =
-				psessionEntry->beaconParams.fRIFSMode = true;
+				pe_session->beaconParams.fRIFSMode = true;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_RIFS_MODE_CHANGED;
 		}
 		/* Enabling the RIFS Protection means Disable the RIFS mode of operation in the BSS */
 		else if (enable
-			 && (true == psessionEntry->beaconParams.fRIFSMode)) {
+			 && (true == pe_session->beaconParams.fRIFSMode)) {
 			pe_debug("===> Rifs Protection Enabled");
 			pBeaconParams->fRIFSMode =
-				psessionEntry->beaconParams.fRIFSMode = false;
+				pe_session->beaconParams.fRIFSMode = false;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_RIFS_MODE_CHANGED;
 		}
 	} else {
 		/* Disabling the RIFS Protection means Enable the RIFS mode of operation in the BSS */
 		if ((!enable)
-		    && (false == psessionEntry->beaconParams.fRIFSMode)) {
+		    && (false == pe_session->beaconParams.fRIFSMode)) {
 			pe_debug(" => Rifs protection Disabled");
 			pBeaconParams->fRIFSMode =
-				psessionEntry->beaconParams.fRIFSMode = true;
+				pe_session->beaconParams.fRIFSMode = true;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_RIFS_MODE_CHANGED;
 		}
 		/* Enabling the RIFS Protection means Disable the RIFS mode of operation in the BSS */
 		else if (enable
-			 && (true == psessionEntry->beaconParams.fRIFSMode)) {
+			 && (true == pe_session->beaconParams.fRIFSMode)) {
 			pe_debug("===> Rifs Protection Enabled");
 			pBeaconParams->fRIFSMode =
-				psessionEntry->beaconParams.fRIFSMode = false;
+				pe_session->beaconParams.fRIFSMode = false;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_RIFS_MODE_CHANGED;
 		}
@@ -3873,7 +3873,7 @@
 QDF_STATUS
 lim_enable_short_preamble(tpAniSirGlobal mac, uint8_t enable,
 			  tpUpdateBeaconParams pBeaconParams,
-			  struct pe_session *psessionEntry)
+			  struct pe_session *pe_session)
 {
 	if (!mac->mlme_cfg->ht_caps.short_preamble)
 		return QDF_STATUS_SUCCESS;
@@ -3882,22 +3882,22 @@
 	if (!mac->mlme_cfg->feature_flags.enable_short_preamble_11g)
 		return QDF_STATUS_SUCCESS;
 
-	if (LIM_IS_AP_ROLE(psessionEntry)) {
-		if (enable && (psessionEntry->beaconParams.fShortPreamble == 0)) {
+	if (LIM_IS_AP_ROLE(pe_session)) {
+		if (enable && (pe_session->beaconParams.fShortPreamble == 0)) {
 			pe_debug("===> Short Preamble Enabled");
-			psessionEntry->beaconParams.fShortPreamble = true;
+			pe_session->beaconParams.fShortPreamble = true;
 			pBeaconParams->fShortPreamble =
-				(uint8_t) psessionEntry->beaconParams.
+				(uint8_t) pe_session->beaconParams.
 				fShortPreamble;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_SHORT_PREAMBLE_CHANGED;
 		} else if (!enable
-			   && (psessionEntry->beaconParams.fShortPreamble ==
+			   && (pe_session->beaconParams.fShortPreamble ==
 			       1)) {
 			pe_debug("===> Short Preamble Disabled");
-			psessionEntry->beaconParams.fShortPreamble = false;
+			pe_session->beaconParams.fShortPreamble = false;
 			pBeaconParams->fShortPreamble =
-				(uint8_t) psessionEntry->beaconParams.
+				(uint8_t) pe_session->beaconParams.
 				fShortPreamble;
 			pBeaconParams->paramChangeBitmap |=
 				PARAM_SHORT_PREAMBLE_CHANGED;
@@ -3970,23 +3970,23 @@
 void lim_update_sta_run_time_ht_switch_chnl_params(tpAniSirGlobal mac,
 						   tDot11fIEHTInfo *pHTInfo,
 						   uint8_t bssIdx,
-						   struct pe_session *psessionEntry)
+						   struct pe_session *pe_session)
 {
 	uint8_t center_freq = 0;
 	enum phy_ch_width ch_width = CH_WIDTH_20MHZ;
 
 	/* If self capability is set to '20Mhz only', then do not change the CB mode. */
 	if (!lim_get_ht_capability
-		    (mac, eHT_SUPPORTED_CHANNEL_WIDTH_SET, psessionEntry))
+		    (mac, eHT_SUPPORTED_CHANNEL_WIDTH_SET, pe_session))
 		return;
 
-	if (WLAN_REG_IS_24GHZ_CH(psessionEntry->currentOperChannel) &&
-		psessionEntry->force_24ghz_in_ht20) {
+	if (WLAN_REG_IS_24GHZ_CH(pe_session->currentOperChannel) &&
+		pe_session->force_24ghz_in_ht20) {
 		pe_debug("force_24ghz_in_ht20 is set and channel is 2.4 Ghz");
 		return;
 	}
 
-	if (psessionEntry->ftPEContext.ftPreAuthSession) {
+	if (pe_session->ftPEContext.ftPreAuthSession) {
 		pe_err("FT PREAUTH channel change is in progress");
 		return;
 	}
@@ -4005,7 +4005,7 @@
 		return;
 	}
 
-	if (psessionEntry->ch_switch_in_progress == true) {
+	if (pe_session->ch_switch_in_progress == true) {
 		pe_debug("ch switch is in progress, ignore HT IE BW update");
 		return;
 	}
@@ -4015,16 +4015,16 @@
 		return;
 	}
 
-	if (psessionEntry->htSecondaryChannelOffset !=
+	if (pe_session->htSecondaryChannelOffset !=
 	    (uint8_t) pHTInfo->secondaryChannelOffset
-	    || psessionEntry->htRecommendedTxWidthSet !=
+	    || pe_session->htRecommendedTxWidthSet !=
 	    (uint8_t) pHTInfo->recommendedTxWidthSet) {
-		psessionEntry->htSecondaryChannelOffset =
+		pe_session->htSecondaryChannelOffset =
 			(ePhyChanBondState) pHTInfo->secondaryChannelOffset;
-		psessionEntry->htRecommendedTxWidthSet =
+		pe_session->htRecommendedTxWidthSet =
 			(uint8_t) pHTInfo->recommendedTxWidthSet;
 		if (eHT_CHANNEL_WIDTH_40MHZ ==
-		    psessionEntry->htRecommendedTxWidthSet) {
+		    pe_session->htRecommendedTxWidthSet) {
 			ch_width = CH_WIDTH_40MHZ;
 			if (PHY_DOUBLE_CHANNEL_LOW_PRIMARY ==
 					pHTInfo->secondaryChannelOffset)
@@ -4042,21 +4042,21 @@
 		pe_debug("Primary Channel: %d Secondary Chan"
 				       "nel Offset: %d Channel Width: %d",
 			pHTInfo->primaryChannel, center_freq,
-			psessionEntry->htRecommendedTxWidthSet);
-		psessionEntry->channelChangeReasonCode =
+			pe_session->htRecommendedTxWidthSet);
+		pe_session->channelChangeReasonCode =
 			LIM_SWITCH_CHANNEL_OPERATION;
 		mac->lim.gpchangeChannelCallback = NULL;
 		mac->lim.gpchangeChannelData = NULL;
 
 		lim_send_switch_chnl_params(mac, (uint8_t) pHTInfo->primaryChannel,
 					    center_freq, 0, ch_width,
-					    psessionEntry->maxTxPower,
-					    psessionEntry->peSessionId,
+					    pe_session->maxTxPower,
+					    pe_session->peSessionId,
 					    true, 0, 0);
 
 		/* In case of IBSS, if STA should update HT Info IE in its beacons. */
-		if (LIM_IS_IBSS_ROLE(psessionEntry)) {
-			sch_set_fixed_beacon_fields(mac, psessionEntry);
+		if (LIM_IS_IBSS_ROLE(pe_session)) {
+			sch_set_fixed_beacon_fields(mac, pe_session);
 		}
 
 	}
@@ -4116,18 +4116,18 @@
 
 void lim_update_sta_run_time_ht_info(tpAniSirGlobal mac,
 				     tDot11fIEHTInfo *pHTInfo,
-				     struct pe_session *psessionEntry)
+				     struct pe_session *pe_session)
 {
-	if (psessionEntry->htRecommendedTxWidthSet !=
+	if (pe_session->htRecommendedTxWidthSet !=
 	    (uint8_t) pHTInfo->recommendedTxWidthSet) {
-		psessionEntry->htRecommendedTxWidthSet =
+		pe_session->htRecommendedTxWidthSet =
 			(uint8_t) pHTInfo->recommendedTxWidthSet;
 		/* Send change notification to HAL */
 	}
 
-	if (psessionEntry->beaconParams.fRIFSMode !=
+	if (pe_session->beaconParams.fRIFSMode !=
 	    (uint8_t) pHTInfo->rifsMode) {
-		psessionEntry->beaconParams.fRIFSMode =
+		pe_session->beaconParams.fRIFSMode =
 			(uint8_t) pHTInfo->rifsMode;
 		/* Send change notification to HAL */
 	}
@@ -4145,9 +4145,9 @@
 		/* Send change notification to HAL */
 	}
 
-	if (psessionEntry->beaconParams.llnNonGFCoexist !=
+	if (pe_session->beaconParams.llnNonGFCoexist !=
 	    pHTInfo->nonGFDevicesPresent) {
-		psessionEntry->beaconParams.llnNonGFCoexist =
+		pe_session->beaconParams.llnNonGFCoexist =
 			(uint8_t) pHTInfo->nonGFDevicesPresent;
 	}
 
@@ -4169,9 +4169,9 @@
 		/* Send change notification to HAL */
 	}
 
-	if (psessionEntry->beaconParams.fLsigTXOPProtectionFullSupport !=
+	if (pe_session->beaconParams.fLsigTXOPProtectionFullSupport !=
 	    (uint8_t) pHTInfo->lsigTXOPProtectionFullSupport) {
-		psessionEntry->beaconParams.fLsigTXOPProtectionFullSupport =
+		pe_session->beaconParams.fLsigTXOPProtectionFullSupport =
 			(uint8_t) pHTInfo->lsigTXOPProtectionFullSupport;
 		/* Send change notification to HAL */
 	}
@@ -4539,16 +4539,16 @@
  */
 
 QDF_STATUS
-lim_restore_pre_channel_switch_state(tpAniSirGlobal mac, struct pe_session *psessionEntry)
+lim_restore_pre_channel_switch_state(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
 
 	QDF_STATUS retCode = QDF_STATUS_SUCCESS;
 
-	if (!LIM_IS_STA_ROLE(psessionEntry))
+	if (!LIM_IS_STA_ROLE(pe_session))
 		return retCode;
 
 	/* Channel switch should be ready for the next time */
-	psessionEntry->gLimSpecMgmt.dot11hChanSwState = eLIM_11H_CHANSW_INIT;
+	pe_session->gLimSpecMgmt.dot11hChanSwState = eLIM_11H_CHANSW_INIT;
 
 	return retCode;
 }
@@ -4569,17 +4569,17 @@
  *          NA
  *
  * @param  mac - Pointer to Global MAC structure
- * @param  psessionEntry
+ * @param  pe_session
  * @return None
  */
 void
-lim_prepare_for11h_channel_switch(tpAniSirGlobal mac, struct pe_session *psessionEntry)
+lim_prepare_for11h_channel_switch(tpAniSirGlobal mac, struct pe_session *pe_session)
 {
-	if (!LIM_IS_STA_ROLE(psessionEntry))
+	if (!LIM_IS_STA_ROLE(pe_session))
 		return;
 
 	/* Flag to indicate 11h channel switch in progress */
-	psessionEntry->gLimSpecMgmt.dot11hChanSwState = eLIM_11H_CHANSW_RUNNING;
+	pe_session->gLimSpecMgmt.dot11hChanSwState = eLIM_11H_CHANSW_RUNNING;
 
 	if (mac->lim.gLimSmeState == eLIM_SME_LINK_EST_WT_SCAN_STATE ||
 	    mac->lim.gLimSmeState == eLIM_SME_CHANNEL_SCAN_STATE) {
@@ -4590,13 +4590,13 @@
 			/* This will instruct HAL to set it to any previous valid channel. */
 			pe_set_resume_channel(mac, 0, 0);
 		} else {
-			lim_restore_pre_channel_switch_state(mac, psessionEntry);
+			lim_restore_pre_channel_switch_state(mac, pe_session);
 		}
 		return;
 	} else {
 		pe_debug("Not in scan state, start channel switch timer");
 		/** We are safe to switch channel at this point */
-		lim_stop_tx_and_switch_channel(mac, psessionEntry->peSessionId);
+		lim_stop_tx_and_switch_channel(mac, pe_session->peSessionId);
 	}
 }
 
@@ -4672,7 +4672,7 @@
 }
 
 void lim_set_tspec_uapsd_mask_per_session(tpAniSirGlobal mac,
-					  struct pe_session *psessionEntry,
+					  struct pe_session *pe_session,
 					  tSirMacTSInfo *pTsInfo, uint32_t action)
 {
 	uint8_t userPrio = (uint8_t) pTsInfo->traffic.userPrio;
@@ -4692,35 +4692,35 @@
 
 	if (action == CLEAR_UAPSD_MASK) {
 		if (direction == SIR_MAC_DIRECTION_UPLINK)
-			psessionEntry->gUapsdPerAcTriggerEnableMask &=
+			pe_session->gUapsdPerAcTriggerEnableMask &=
 				~(1 << ac);
 		else if (direction == SIR_MAC_DIRECTION_DNLINK)
-			psessionEntry->gUapsdPerAcDeliveryEnableMask &=
+			pe_session->gUapsdPerAcDeliveryEnableMask &=
 				~(1 << ac);
 		else if (direction == SIR_MAC_DIRECTION_BIDIR) {
-			psessionEntry->gUapsdPerAcTriggerEnableMask &=
+			pe_session->gUapsdPerAcTriggerEnableMask &=
 				~(1 << ac);
-			psessionEntry->gUapsdPerAcDeliveryEnableMask &=
+			pe_session->gUapsdPerAcDeliveryEnableMask &=
 				~(1 << ac);
 		}
 	} else if (action == SET_UAPSD_MASK) {
 		if (direction == SIR_MAC_DIRECTION_UPLINK)
-			psessionEntry->gUapsdPerAcTriggerEnableMask |=
+			pe_session->gUapsdPerAcTriggerEnableMask |=
 				(1 << ac);
 		else if (direction == SIR_MAC_DIRECTION_DNLINK)
-			psessionEntry->gUapsdPerAcDeliveryEnableMask |=
+			pe_session->gUapsdPerAcDeliveryEnableMask |=
 				(1 << ac);
 		else if (direction == SIR_MAC_DIRECTION_BIDIR) {
-			psessionEntry->gUapsdPerAcTriggerEnableMask |=
+			pe_session->gUapsdPerAcTriggerEnableMask |=
 				(1 << ac);
-			psessionEntry->gUapsdPerAcDeliveryEnableMask |=
+			pe_session->gUapsdPerAcDeliveryEnableMask |=
 				(1 << ac);
 		}
 	}
 
-	pe_debug("New psessionEntry->gUapsdPerAcTriggerEnableMask 0x%x psessionEntry->gUapsdPerAcDeliveryEnableMask 0x%x",
-		psessionEntry->gUapsdPerAcTriggerEnableMask,
-		psessionEntry->gUapsdPerAcDeliveryEnableMask);
+	pe_debug("New pe_session->gUapsdPerAcTriggerEnableMask 0x%x pe_session->gUapsdPerAcDeliveryEnableMask 0x%x",
+		pe_session->gUapsdPerAcTriggerEnableMask,
+		pe_session->gUapsdPerAcDeliveryEnableMask);
 
 	return;
 }
@@ -4997,7 +4997,7 @@
    \return void
    -----------------------------------------------------------*/
 void lim_diag_event_report(tpAniSirGlobal mac, uint16_t eventType,
-			   struct pe_session *pSessionEntry, uint16_t status,
+			   struct pe_session *pe_session, uint16_t status,
 			   uint16_t reasonCode)
 {
 	tSirMacAddr nullBssid = { 0, 0, 0, 0, 0, 0 };
@@ -5006,16 +5006,16 @@
 
 	qdf_mem_set(&peEvent, sizeof(host_event_wlan_pe_payload_type), 0);
 
-	if (NULL == pSessionEntry) {
+	if (NULL == pe_session) {
 		qdf_mem_copy(peEvent.bssid, nullBssid, sizeof(tSirMacAddr));
 		peEvent.sme_state = (uint16_t) mac->lim.gLimSmeState;
 		peEvent.mlm_state = (uint16_t) mac->lim.gLimMlmState;
 
 	} else {
-		qdf_mem_copy(peEvent.bssid, pSessionEntry->bssId,
+		qdf_mem_copy(peEvent.bssid, pe_session->bssId,
 			     sizeof(tSirMacAddr));
-		peEvent.sme_state = (uint16_t) pSessionEntry->limSmeState;
-		peEvent.mlm_state = (uint16_t) pSessionEntry->limMlmState;
+		peEvent.sme_state = (uint16_t) pe_session->limSmeState;
+		peEvent.mlm_state = (uint16_t) pe_session->limMlmState;
 	}
 	peEvent.event_type = eventType;
 	peEvent.status = status;
@@ -5142,74 +5142,74 @@
 
 /* Returns length of NoA stream and Pointer pNoaStream passed to this function is filled with noa stream */
 uint8_t lim_get_noa_attr_stream(tpAniSirGlobal mac, uint8_t *pNoaStream,
-				struct pe_session *psessionEntry)
+				struct pe_session *pe_session)
 {
 	uint8_t len = 0;
 
 	uint8_t *pBody = pNoaStream;
 
-	if ((psessionEntry != NULL) && (psessionEntry->valid) &&
-	    (psessionEntry->pePersona == QDF_P2P_GO_MODE)) {
-		if ((!(psessionEntry->p2pGoPsUpdate.uNoa1Duration))
-		    && (!(psessionEntry->p2pGoPsUpdate.uNoa2Duration))
-		    && (!psessionEntry->p2pGoPsUpdate.oppPsFlag)
+	if ((pe_session != NULL) && (pe_session->valid) &&
+	    (pe_session->pePersona == QDF_P2P_GO_MODE)) {
+		if ((!(pe_session->p2pGoPsUpdate.uNoa1Duration))
+		    && (!(pe_session->p2pGoPsUpdate.uNoa2Duration))
+		    && (!pe_session->p2pGoPsUpdate.oppPsFlag)
 		    )
 			return 0;  /* No NoA Descriptor then return 0 */
 
 		pBody[0] = SIR_P2P_NOA_ATTR;
 
-		pBody[3] = psessionEntry->p2pGoPsUpdate.index;
+		pBody[3] = pe_session->p2pGoPsUpdate.index;
 		pBody[4] =
-			psessionEntry->p2pGoPsUpdate.ctWin | (psessionEntry->
+			pe_session->p2pGoPsUpdate.ctWin | (pe_session->
 							      p2pGoPsUpdate.
 							      oppPsFlag << 7);
 		len = 5;
 		pBody += len;
 
-		if (psessionEntry->p2pGoPsUpdate.uNoa1Duration) {
-			*pBody = psessionEntry->p2pGoPsUpdate.uNoa1IntervalCnt;
+		if (pe_session->p2pGoPsUpdate.uNoa1Duration) {
+			*pBody = pe_session->p2pGoPsUpdate.uNoa1IntervalCnt;
 			pBody += 1;
 			len += 1;
 
 			*((uint32_t *) (pBody)) =
-				sir_swap_u32if_needed(psessionEntry->p2pGoPsUpdate.
+				sir_swap_u32if_needed(pe_session->p2pGoPsUpdate.
 						      uNoa1Duration);
 			pBody += sizeof(uint32_t);
 			len += 4;
 
 			*((uint32_t *) (pBody)) =
-				sir_swap_u32if_needed(psessionEntry->p2pGoPsUpdate.
+				sir_swap_u32if_needed(pe_session->p2pGoPsUpdate.
 						      uNoa1Interval);
 			pBody += sizeof(uint32_t);
 			len += 4;
 
 			*((uint32_t *) (pBody)) =
-				sir_swap_u32if_needed(psessionEntry->p2pGoPsUpdate.
+				sir_swap_u32if_needed(pe_session->p2pGoPsUpdate.
 						      uNoa1StartTime);
 			pBody += sizeof(uint32_t);
 			len += 4;
 
 		}
 
-		if (psessionEntry->p2pGoPsUpdate.uNoa2Duration) {
-			*pBody = psessionEntry->p2pGoPsUpdate.uNoa2IntervalCnt;
+		if (pe_session->p2pGoPsUpdate.uNoa2Duration) {
+			*pBody = pe_session->p2pGoPsUpdate.uNoa2IntervalCnt;
 			pBody += 1;
 			len += 1;
 
 			*((uint32_t *) (pBody)) =
-				sir_swap_u32if_needed(psessionEntry->p2pGoPsUpdate.
+				sir_swap_u32if_needed(pe_session->p2pGoPsUpdate.
 						      uNoa2Duration);
 			pBody += sizeof(uint32_t);
 			len += 4;
 
 			*((uint32_t *) (pBody)) =
-				sir_swap_u32if_needed(psessionEntry->p2pGoPsUpdate.
+				sir_swap_u32if_needed(pe_session->p2pGoPsUpdate.
 						      uNoa2Interval);
 			pBody += sizeof(uint32_t);
 			len += 4;
 
 			*((uint32_t *) (pBody)) =
-				sir_swap_u32if_needed(psessionEntry->p2pGoPsUpdate.
+				sir_swap_u32if_needed(pe_session->p2pGoPsUpdate.
 						      uNoa2StartTime);
 			pBody += sizeof(uint32_t);
 			len += 4;
@@ -5268,7 +5268,7 @@
 {
 	tpAniSirGlobal mac = (tpAniSirGlobal) pMacGlobal;
 	tPmfSaQueryTimerId timerId;
-	struct pe_session *psessionEntry;
+	struct pe_session *pe_session;
 	tpDphHashNode pSta;
 	uint8_t maxretries;
 
@@ -5276,15 +5276,15 @@
 	timerId.value = param;
 
 	/* Check that SA Query is in progress */
-	psessionEntry = pe_find_session_by_session_id(mac,
+	pe_session = pe_find_session_by_session_id(mac,
 			timerId.fields.sessionId);
-	if (psessionEntry == NULL) {
+	if (pe_session == NULL) {
 		pe_err("Session does not exist for given session ID: %d",
 			timerId.fields.sessionId);
 		return;
 	}
 	pSta = dph_get_hash_entry(mac, timerId.fields.peerIdx,
-			       &psessionEntry->dph.dphHashTable);
+			       &pe_session->dph.dphHashTable);
 	if (pSta == NULL) {
 		pe_err("Entry does not exist for given peer index: %d",
 			timerId.fields.peerIdx);
@@ -5301,8 +5301,8 @@
 		lim_print_mac_addr(mac, pSta->staAddr, LOGE);
 		lim_send_disassoc_mgmt_frame(mac,
 			eSIR_MAC_DISASSOC_DUE_TO_INACTIVITY_REASON,
-			pSta->staAddr, psessionEntry, false);
-		lim_trigger_sta_deletion(mac, pSta, psessionEntry);
+			pSta->staAddr, pe_session, false);
+		lim_trigger_sta_deletion(mac, pSta, pe_session);
 		pSta->pmfSaQueryState = DPH_SA_QUERY_TIMED_OUT;
 		return;
 	}
@@ -5310,7 +5310,7 @@
 	lim_send_sa_query_request_frame(mac,
 					(uint8_t *) &(pSta->
 						      pmfSaQueryCurrentTransId),
-					pSta->staAddr, psessionEntry);
+					pSta->staAddr, pe_session);
 	pSta->pmfSaQueryCurrentTransId++;
 	pe_debug("Starting SA Query retry: %d", pSta->pmfSaQueryRetryCount);
 	if (tx_timer_activate(&pSta->pmfSaQueryTimer) != TX_SUCCESS) {
@@ -5320,7 +5320,7 @@
 }
 #endif
 
-bool lim_check_vht_op_mode_change(tpAniSirGlobal mac, struct pe_session *psessionEntry,
+bool lim_check_vht_op_mode_change(tpAniSirGlobal mac, struct pe_session *pe_session,
 				  uint8_t chanWidth, uint8_t staId,
 				  uint8_t *peerMac)
 {
@@ -5328,10 +5328,10 @@
 
 	tempParam.opMode = chanWidth;
 	tempParam.staId = staId;
-	tempParam.smesessionId = psessionEntry->smeSessionId;
+	tempParam.smesessionId = pe_session->smeSessionId;
 	qdf_mem_copy(tempParam.peer_mac, peerMac, sizeof(tSirMacAddr));
 
-	lim_send_mode_update(mac, &tempParam, psessionEntry);
+	lim_send_mode_update(mac, &tempParam, pe_session);
 
 	return true;
 }
@@ -5351,7 +5351,7 @@
 }
 #endif
 
-bool lim_set_nss_change(tpAniSirGlobal mac, struct pe_session *psessionEntry,
+bool lim_set_nss_change(tpAniSirGlobal mac, struct pe_session *pe_session,
 			uint8_t rxNss, uint8_t staId, uint8_t *peerMac)
 {
 	tUpdateRxNss tempParam;
@@ -5363,16 +5363,16 @@
 
 	tempParam.rxNss = rxNss;
 	tempParam.staId = staId;
-	tempParam.smesessionId = psessionEntry->smeSessionId;
+	tempParam.smesessionId = pe_session->smeSessionId;
 	qdf_mem_copy(tempParam.peer_mac, peerMac, sizeof(tSirMacAddr));
 
-	lim_send_rx_nss_update(mac, &tempParam, psessionEntry);
+	lim_send_rx_nss_update(mac, &tempParam, pe_session);
 
 	return true;
 }
 
 bool lim_check_membership_user_position(tpAniSirGlobal mac,
-					struct pe_session *psessionEntry,
+					struct pe_session *pe_session,
 					uint32_t membership, uint32_t userPosition,
 					uint8_t staId)
 {
@@ -5381,24 +5381,24 @@
 
 	tempParamMembership.membership = membership;
 	tempParamMembership.staId = staId;
-	tempParamMembership.smesessionId = psessionEntry->smeSessionId;
-	qdf_mem_copy(tempParamMembership.peer_mac, psessionEntry->bssId,
+	tempParamMembership.smesessionId = pe_session->smeSessionId;
+	qdf_mem_copy(tempParamMembership.peer_mac, pe_session->bssId,
 		     sizeof(tSirMacAddr));
 
-	lim_set_membership(mac, &tempParamMembership, psessionEntry);
+	lim_set_membership(mac, &tempParamMembership, pe_session);
 
 	tempParamUserPosition.userPos = userPosition;
 	tempParamUserPosition.staId = staId;
-	tempParamUserPosition.smesessionId = psessionEntry->smeSessionId;
-	qdf_mem_copy(tempParamUserPosition.peer_mac, psessionEntry->bssId,
+	tempParamUserPosition.smesessionId = pe_session->smeSessionId;
+	qdf_mem_copy(tempParamUserPosition.peer_mac, pe_session->bssId,
 		     sizeof(tSirMacAddr));
 
-	lim_set_user_pos(mac, &tempParamUserPosition, psessionEntry);
+	lim_set_user_pos(mac, &tempParamUserPosition, pe_session);
 
 	return true;
 }
 
-void lim_get_short_slot_from_phy_mode(tpAniSirGlobal mac, struct pe_session *psessionEntry,
+void lim_get_short_slot_from_phy_mode(tpAniSirGlobal mac, struct pe_session *pe_session,
 				      uint32_t phyMode, uint8_t *pShortSlotEnabled)
 {
 	uint8_t val = 0;
@@ -5406,22 +5406,22 @@
 	/* only 2.4G band should have short slot enable, rest it should be default */
 	if (phyMode == WNI_CFG_PHY_MODE_11G) {
 		/* short slot is default in all other modes */
-		if ((psessionEntry->pePersona == QDF_SAP_MODE) ||
-		    (psessionEntry->pePersona == QDF_IBSS_MODE) ||
-		    (psessionEntry->pePersona == QDF_P2P_GO_MODE)) {
+		if ((pe_session->pePersona == QDF_SAP_MODE) ||
+		    (pe_session->pePersona == QDF_IBSS_MODE) ||
+		    (pe_session->pePersona == QDF_P2P_GO_MODE)) {
 			val = true;
 		}
 		/* Program Polaris based on AP capability */
-		if (psessionEntry->limMlmState == eLIM_MLM_WT_JOIN_BEACON_STATE) {
+		if (pe_session->limMlmState == eLIM_MLM_WT_JOIN_BEACON_STATE) {
 			/* Joining BSS. */
 			val =
-				SIR_MAC_GET_SHORT_SLOT_TIME(psessionEntry->
+				SIR_MAC_GET_SHORT_SLOT_TIME(pe_session->
 							    limCurrentBssCaps);
-		} else if (psessionEntry->limMlmState ==
+		} else if (pe_session->limMlmState ==
 			   eLIM_MLM_WT_REASSOC_RSP_STATE) {
 			/* Reassociating with AP. */
 			val =
-				SIR_MAC_GET_SHORT_SLOT_TIME(psessionEntry->
+				SIR_MAC_GET_SHORT_SLOT_TIME(pe_session->
 							    limReassocBssCaps);
 		}
 	} else {
@@ -5445,7 +5445,7 @@
  *
  * \param  mac Pointer to Global MAC structure
  *
- * \param psessionEntry Pointer to session corresponding to the connection
+ * \param pe_session Pointer to session corresponding to the connection
  *
  * \param peer Peer address of the STA to which the frame is to be sent
  *
@@ -5457,16 +5457,16 @@
  */
 void
 lim_set_protected_bit(tpAniSirGlobal mac,
-		      struct pe_session *psessionEntry,
+		      struct pe_session *pe_session,
 		      tSirMacAddr peer, tpSirMacMgmtHdr pMacHdr)
 {
 	uint16_t aid;
 	tpDphHashNode pStaDs;
 
-	if (LIM_IS_AP_ROLE(psessionEntry)) {
+	if (LIM_IS_AP_ROLE(pe_session)) {
 
 		pStaDs = dph_lookup_hash_entry(mac, peer, &aid,
-					       &psessionEntry->dph.dphHashTable);
+					       &pe_session->dph.dphHashTable);
 		if (pStaDs != NULL) {
 			/* rmfenabled will be set at the time of addbss.
 			 * but sometimes EAP auth fails and keys are not
@@ -5478,8 +5478,8 @@
 			if (pStaDs->rmfEnabled && pStaDs->is_key_installed)
 				pMacHdr->fc.wep = 1;
 		}
-	} else if (psessionEntry->limRmfEnabled &&
-			psessionEntry->is_key_installed) {
+	} else if (pe_session->limRmfEnabled &&
+			pe_session->is_key_installed) {
 		pMacHdr->fc.wep = 1;
 	}
 } /*** end lim_set_protected_bit() ***/
diff --git a/core/mac/src/pe/lim/lim_utils.h b/core/mac/src/pe/lim/lim_utils.h
index a251aed..a009dac 100644
--- a/core/mac/src/pe/lim/lim_utils.h
+++ b/core/mac/src/pe/lim/lim_utils.h
@@ -140,7 +140,7 @@
 
 extern QDF_STATUS lim_send_set_max_tx_power_req(tpAniSirGlobal mac,
 		int8_t txPower,
-		struct pe_session *pSessionEntry);
+		struct pe_session *pe_session);
 extern uint8_t lim_get_max_tx_power(int8_t regMax, int8_t apTxPower,
 		uint8_t iniTxPower);
 uint8_t lim_is_addr_bc(tSirMacAddr);
@@ -153,15 +153,15 @@
 void lim_enable_overlap11g_protection(tpAniSirGlobal mac,
 		tpUpdateBeaconParams pBeaconParams,
 		tpSirMacMgmtHdr pMh,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 void lim_update_overlap_sta_param(tpAniSirGlobal mac, tSirMacAddr bssId,
 		tpLimProtStaParams pStaParams);
 void lim_update_short_preamble(tpAniSirGlobal mac, tSirMacAddr peerMacAddr,
 		tpUpdateBeaconParams pBeaconParams,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 void lim_update_short_slot_time(tpAniSirGlobal mac, tSirMacAddr peerMacAddr,
 		tpUpdateBeaconParams pBeaconParams,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 
 /*
  * lim_send_sme_mgmt_frame_ind() - Function to send mgmt frame ind to HDD
@@ -216,7 +216,7 @@
 void lim_decide_ap_protection_on_delete(tpAniSirGlobal mac,
 		tpDphHashNode pStaDs,
 		tpUpdateBeaconParams pBeaconParams,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 
 extern QDF_STATUS lim_update_11a_protection(tpAniSirGlobal mac,
 		uint8_t enable,
@@ -227,17 +227,17 @@
 		uint8_t enable,
 		uint8_t overlap,
 		tpUpdateBeaconParams pBeaconParams,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 extern QDF_STATUS lim_enable_ht_protection_from11g(tpAniSirGlobal mac,
 		uint8_t enable,
 		uint8_t overlap,
 		tpUpdateBeaconParams
 		pBeaconParams,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 extern QDF_STATUS lim_enable_ht20_protection(tpAniSirGlobal mac,
 		uint8_t enable, uint8_t overlap,
 		tpUpdateBeaconParams pBeaconParams,
-		struct pe_session *sessionEntry);
+		struct pe_session *pe_session);
 extern QDF_STATUS lim_enable_ht_non_gf_protection(tpAniSirGlobal mac,
 		uint8_t enable, uint8_t overlap,
 		tpUpdateBeaconParams
@@ -246,7 +246,7 @@
 		uint8_t enable, uint8_t overlap,
 		tpUpdateBeaconParams
 		pBeaconParams,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 extern QDF_STATUS lim_enable_ht_lsig_txop_protection(tpAniSirGlobal mac,
 		uint8_t enable,
 		uint8_t overlap,
@@ -255,7 +255,7 @@
 extern QDF_STATUS lim_enable_short_preamble(tpAniSirGlobal mac,
 		uint8_t enable,
 		tpUpdateBeaconParams pBeaconParams,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 extern QDF_STATUS lim_enable_ht_obss_protection(tpAniSirGlobal mac,
 		uint8_t enable, uint8_t overlap,
 		tpUpdateBeaconParams
@@ -263,14 +263,14 @@
 void lim_decide_sta_protection(tpAniSirGlobal mac,
 		tpSchBeaconStruct pBeaconStruct,
 		tpUpdateBeaconParams pBeaconParams,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 void lim_decide_sta_protection_on_assoc(tpAniSirGlobal mac,
 		tpSchBeaconStruct pBeaconStruct,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 void lim_update_sta_run_time_ht_switch_chnl_params(tpAniSirGlobal mac,
 		tDot11fIEHTInfo *pHTInfo,
 		uint8_t bssIdx,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 /* Print MAC address utility function */
 void lim_print_mac_addr(tpAniSirGlobal, tSirMacAddr, uint8_t);
 
@@ -295,13 +295,13 @@
 void lim_stop_tx_and_switch_channel(tpAniSirGlobal mac, uint8_t sessionId);
 void lim_process_channel_switch_timeout(tpAniSirGlobal);
 QDF_STATUS lim_start_channel_switch(tpAniSirGlobal mac,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 void lim_update_channel_switch(tpAniSirGlobal, tpSirProbeRespBeacon,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 
 void lim_switch_primary_channel(tpAniSirGlobal, uint8_t, struct pe_session *);
 void lim_switch_primary_secondary_channel(tpAniSirGlobal mac,
-					struct pe_session *psessionEntry,
+					struct pe_session *pe_session,
 					uint8_t newChannel,
 					uint8_t ch_center_freq_seg0,
 					uint8_t ch_center_freq_seg1,
@@ -313,18 +313,18 @@
 		tDot11fIEHTCaps *pHTCaps);
 void lim_update_sta_run_time_ht_info(struct mac_context *mac,
 		tDot11fIEHTInfo *pRcvdHTInfo,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 void lim_cancel_dot11h_channel_switch(tpAniSirGlobal mac,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 bool lim_is_channel_valid_for_channel_switch(tpAniSirGlobal mac,
 		uint8_t channel);
 QDF_STATUS lim_restore_pre_channel_switch_state(tpAniSirGlobal mac,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 
 void lim_prepare_for11h_channel_switch(tpAniSirGlobal mac,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 void lim_switch_channel_cback(tpAniSirGlobal mac, QDF_STATUS status,
-		uint32_t *data, struct pe_session *psessionEntry);
+		uint32_t *data, struct pe_session *pe_session);
 
 /**
  * lim_get_session_by_macaddr() - api to find session based on MAC
@@ -353,11 +353,11 @@
 
 static inline QDF_STATUS
 lim_get_mgmt_staid(tpAniSirGlobal mac, uint16_t *staid,
-		struct pe_session *psessionEntry)
+		struct pe_session *pe_session)
 {
-	if (LIM_IS_AP_ROLE(psessionEntry))
+	if (LIM_IS_AP_ROLE(pe_session))
 		*staid = 1;
-	else if (LIM_IS_STA_ROLE(psessionEntry))
+	else if (LIM_IS_STA_ROLE(pe_session))
 		*staid = 0;
 	else
 		return QDF_STATUS_E_FAILURE;
@@ -384,7 +384,7 @@
 }
 
 static inline int lim_select_cb_mode(tDphHashNode *pStaDs,
-		struct pe_session *psessionEntry, uint8_t channel,
+		struct pe_session *pe_session, uint8_t channel,
 		uint8_t chan_bw)
 {
 	if (pStaDs->mlmStaContext.vhtCapability && chan_bw) {
@@ -425,9 +425,9 @@
 
 /* ANI peer station count management and associated actions */
 void lim_util_count_sta_add(tpAniSirGlobal mac, tpDphHashNode pSta,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 void lim_util_count_sta_del(tpAniSirGlobal mac, tpDphHashNode pSta,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 
 uint8_t lim_get_ht_capability(tpAniSirGlobal, uint32_t, struct pe_session *);
 QDF_STATUS lim_tx_complete(void *context, qdf_nbuf_t buf, bool free);
@@ -435,7 +435,7 @@
 QDF_STATUS lim_validate_delts_req(tpAniSirGlobal mac,
 		tpSirDeltsReq pDeltsReq,
 		tSirMacAddr peerMacAddr,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 
 void lim_pkt_free(tpAniSirGlobal mac,
 		eFrameType frmType, uint8_t *pBD, void *body);
@@ -489,11 +489,11 @@
 		uint32_t type, tpSchBeaconStruct pBeacon);
 
 void lim_set_tspec_uapsd_mask_per_session(tpAniSirGlobal mac,
-		struct pe_session *psessionEntry,
+		struct pe_session *pe_session,
 		tSirMacTSInfo *pTsInfo, uint32_t action);
 
 void lim_handle_heart_beat_timeout_for_session(tpAniSirGlobal mac,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 
 void lim_process_add_sta_rsp(tpAniSirGlobal mac,
 			     struct scheduler_msg *pMsgQ);
@@ -502,14 +502,14 @@
 
 void lim_process_ap_mlm_add_sta_rsp(tpAniSirGlobal mac,
 				    struct scheduler_msg *limMsgQ,
-				    struct pe_session *psessionEntry);
+				    struct pe_session *pe_session);
 void lim_process_ap_mlm_del_bss_rsp(tpAniSirGlobal mac,
 		struct scheduler_msg *limMsgQ,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 
 void lim_process_ap_mlm_del_sta_rsp(tpAniSirGlobal mac,
 		struct scheduler_msg *limMsgQ,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 
 struct pe_session *lim_is_ibss_session_active(tpAniSirGlobal mac);
 struct pe_session *lim_is_ap_session_active(tpAniSirGlobal mac);
@@ -527,7 +527,7 @@
 		uint8_t *noaStream, uint8_t noaLen,
 		uint8_t overFlowLen);
 uint8_t lim_get_noa_attr_stream(tpAniSirGlobal mac, uint8_t *pNoaStream,
-		struct pe_session *psessionEntry);
+		struct pe_session *pe_session);
 
 uint8_t lim_build_p2p_ie(tpAniSirGlobal mac, uint8_t *ie, uint8_t *data,
 		uint8_t ie_len);
@@ -538,16 +538,16 @@
 uint32_t lim_get_max_rate_flags(tpAniSirGlobal mac_ctx, tpDphHashNode sta_ds);
 
 bool lim_check_vht_op_mode_change(tpAniSirGlobal mac,
-		struct pe_session *psessionEntry,
+		struct pe_session *pe_session,
 		uint8_t chanWidth, uint8_t staId,
 		uint8_t *peerMac);
 #ifdef WLAN_FEATURE_11AX_BSS_COLOR
 bool lim_send_he_ie_update(tpAniSirGlobal mac_ctx, struct pe_session *pe_session);
 #endif
-bool lim_set_nss_change(tpAniSirGlobal mac, struct pe_session *psessionEntry,
+bool lim_set_nss_change(tpAniSirGlobal mac, struct pe_session *pe_session,
 		uint8_t rxNss, uint8_t staId, uint8_t *peerMac);
 bool lim_check_membership_user_position(tpAniSirGlobal mac,
-		struct pe_session *psessionEntry,
+		struct pe_session *pe_session,
 		uint32_t membership, uint32_t userPosition,
 		uint8_t staId);
 
@@ -653,7 +653,7 @@
 
 #ifdef FEATURE_WLAN_DIAG_SUPPORT
 void lim_diag_event_report(tpAniSirGlobal mac, uint16_t eventType,
-		struct pe_session *pSessionEntry, uint16_t status,
+		struct pe_session *pe_session, uint16_t status,
 		uint16_t reasonCode);
 /**
  * lim_diag_mgmt_tx_event_report() - to log TX event to external application
@@ -691,7 +691,7 @@
 		uint16_t reason_code);
 #else
 static inline void lim_diag_event_report(tpAniSirGlobal mac, uint16_t
-		eventType, struct pe_session *pSessionEntry, uint16_t status,
+		eventType, struct pe_session *pe_session, uint16_t status,
 		uint16_t reasonCode) {}
 static inline
 void lim_diag_mgmt_tx_event_report(tpAniSirGlobal mac_ctx, void *mgmt_hdr,
@@ -707,7 +707,7 @@
 		ePhyChanBondState cbState);
 
 void lim_get_short_slot_from_phy_mode(tpAniSirGlobal mac,
-		struct pe_session *psessionEntry,
+		struct pe_session *pe_session,
 		uint32_t phyMode, uint8_t *pShortSlotEnable);
 
 void lim_clean_up_disassoc_deauth_req(tpAniSirGlobal mac, uint8_t *staMac,
@@ -720,11 +720,11 @@
 void lim_pmf_sa_query_timer_handler(void *pMacGlobal, uint32_t param);
 void lim_pmf_comeback_timer_callback(void *context);
 void lim_set_protected_bit(tpAniSirGlobal mac,
-	struct pe_session *psessionEntry,
+	struct pe_session *pe_session,
 	tSirMacAddr peer, tpSirMacMgmtHdr pMacHdr);
 #else
 static inline void lim_set_protected_bit(tpAniSirGlobal mac,
-	struct pe_session *psessionEntry,
+	struct pe_session *pe_session,
 	tSirMacAddr peer, tpSirMacMgmtHdr pMacHdr) {}
 #endif /* WLAN_FEATURE_11W */