فهرست منبع

qcacld-3.0: Add lim_join_req null check in lim_set_mbssid_info()

pe_session->lim_join_req is NULL for LFR2.0 roaming case, need to
add null check before access. If null get mbssid_info from
pe_session->pLimReAssocReq.

Change-Id: I17314a52f3b3fbc57908a7f3f8a369229baf02fd
CRs-Fixed: 2958899
Huashan Qu 3 سال پیش
والد
کامیت
12787cff21
1فایلهای تغییر یافته به همراه10 افزوده شده و 1 حذف شده
  1. 10 1
      core/mac/src/pe/lim/lim_assoc_utils.c

+ 10 - 1
core/mac/src/pe/lim/lim_assoc_utils.c

@@ -2694,7 +2694,16 @@ static void lim_set_mbssid_info(struct pe_session *pe_session)
 {
 	struct scan_mbssid_info *mbssid_info;
 
-	mbssid_info = &pe_session->lim_join_req->bssDescription.mbssid_info;
+	if (!pe_session->lim_join_req && !pe_session->pLimReAssocReq)
+		return;
+
+	if (pe_session->lim_join_req)
+		mbssid_info =
+			&pe_session->lim_join_req->bssDescription.mbssid_info;
+	else
+		mbssid_info =
+			&pe_session->pLimReAssocReq->bssDescription.mbssid_info;
+
 	mlme_set_mbssid_info(pe_session->vdev, mbssid_info);
 }