Przeglądaj źródła

qcacld-3.0: Fix extraction of invalid PE session entry during Nss update

Ensure that the PE session is extracted using the SME session id during
Nss update request. The Nss update request carries the SME session id
and not the PE session id. Fixing the implementation by invoking
pe_find_session_by_sme_session_id() to extract the PE session entry
using the SME session id, instead of pe_find_session_by_session_id()
which uses the PE session id.

Change-Id: If388fa917635c7a536d21fcfb664b081babd5c2a
CRs-Fixed: 970802
Chandrasekaran, Manishekar 9 lat temu
rodzic
commit
5738eb0fe8

+ 1 - 1
core/mac/src/pe/lim/lim_process_sme_req_messages.c

@@ -5676,7 +5676,7 @@ static void lim_process_nss_update_request(tpAniSirGlobal mac_ctx,
 	}
 
 	nss_update_req_ptr = (struct sir_nss_update_request *)msg_buf;
-	session_entry = pe_find_session_by_session_id(mac_ctx,
+	session_entry = pe_find_session_by_sme_session_id(mac_ctx,
 				nss_update_req_ptr->vdev_id);
 	if (session_entry == NULL) {
 		lim_log(mac_ctx, LOGE, FL(