Forráskód Böngészése

qcacld-3.0: Check link session Before populate MLO RNR IE

Mlo flag of vdev is set in wlan_hdd_cfg80211_start_bss context which
happens before pe session creation, so we may get a mlo vdev but the
pe session is not created.
Check link session Before populate MLO RNR IE.

Change-Id: I59da17bf1722c5a580c804ec8e6bf801aa510b0a
CRs-Fixed: 3105243
Bing Sun 3 éve
szülő
commit
d1ad81958b
1 módosított fájl, 7 hozzáadás és 1 törlés
  1. 7 1
      core/mac/src/sys/legacy/src/utils/src/parser_api.c

+ 7 - 1
core/mac/src/sys/legacy/src/utils/src/parser_api.c

@@ -7543,7 +7543,13 @@ void populate_dot11f_mlo_rnr(struct mac_context *mac_ctx,
 			continue;
 		}
 		link_session = pe_find_session_by_vdev_id(
-			mac_ctx, wlan_vdev_list[link]->vdev_objmgr.vdev_id);
+			mac_ctx, wlan_vdev_get_id(wlan_vdev_list[link]));
+		if (!link_session) {
+			pe_debug("vdev id %d pe session is not created",
+				 wlan_vdev_get_id(wlan_vdev_list[link]));
+			lim_mlo_release_vdev_ref(wlan_vdev_list[link]);
+			continue;
+		}
 		if (!rnr_populated) {
 			populate_dot11f_rnr_tbtt_info_10(mac_ctx, session,
 							 link_session, dot11f);