Explorar o código

Merge "qcacld-3.0: Take bss peer reference by updating peer ref count" into wlan-cld3.driver.lnx.2.0.r112-rel

Linux Build Service Account hai 1 ano
pai
achega
f4a0ac56c0
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      components/umac/mlme/mlo_mgr/src/wlan_t2lm_api.c

+ 3 - 1
components/umac/mlme/mlo_mgr/src/wlan_t2lm_api.c

@@ -598,7 +598,8 @@ wlan_t2lm_clear_all_tid_mapping(struct wlan_objmgr_vdev *vdev)
 	}
 
 	t2lm_ctx = &vdev->mlo_dev_ctx->t2lm_ctx;
-	peer = wlan_vdev_get_bsspeer(vdev);
+	peer = wlan_objmgr_vdev_try_get_bsspeer(vdev,
+						WLAN_MLO_MGR_ID);
 	if (!peer) {
 		t2lm_err("peer is null");
 		return;
@@ -626,6 +627,7 @@ wlan_t2lm_clear_all_tid_mapping(struct wlan_objmgr_vdev *vdev)
 	wlan_t2lm_clear_peer_negotiation(peer);
 	wlan_t2lm_clear_ongoing_negotiation(peer);
 	wlan_mlo_t2lm_timer_stop(vdev);
+	wlan_objmgr_peer_release_ref(peer, WLAN_MLO_MGR_ID);
 }
 
 static bool