瀏覽代碼

qcacmn: Clear up bmap for vdev moving to UP_ACTIVE state

During MLO AP vdev partner bringup, SYNC_COMPL can be posted for a
vdev twice since the bitmap is not cleared after posting the event.
But is cleared only when the vdev exits the sync_wait state.

Hence add change to clear the bitmap before posting the event so
so that no other partner vdev will post the same event once again.

Change-Id: I15226b650e4dc51a379d97556f2f2ab62319adf7
CRs-Fixed: 3605598
Santosh Anbu 1 年之前
父節點
當前提交
ae01803cfd
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      umac/mlo_mgr/src/wlan_mlo_mgr_ap.c

+ 5 - 0
umac/mlo_mgr/src/wlan_mlo_mgr_ap.c

@@ -552,6 +552,11 @@ static bool mlo_handle_link_ready(struct wlan_objmgr_vdev *vdev)
 		/* Release ref taken as part of mlo_ap_get_vdev_list */
 		mlo_release_vdev_ref(vdev_list[i]);
 	}
+
+	/* Clear up bmap for this vdev as it is moving to UP_ACTIVE state */
+	idx = mlo_get_link_vdev_ix(mld_ctx, vdev);
+	wlan_util_change_map_index(mld_ctx->ap_ctx->mlo_vdev_up_bmap, idx, 0);
+
 	mlo_ap_lock_release(vdev->mlo_dev_ctx->ap_ctx);
 	return true;
 }