|
@@ -51,16 +51,17 @@ bool mlo_ap_vdev_attach(struct wlan_objmgr_vdev *vdev,
|
|
|
dev_ctx = vdev->mlo_dev_ctx;
|
|
|
wlan_vdev_set_link_id(vdev, link_id);
|
|
|
|
|
|
- if (!vdev->vdev_objmgr.mlo_bridge_vdev)
|
|
|
+ if (!vdev->vdev_objmgr.mlo_bridge_vdev) {
|
|
|
wlan_vdev_mlme_set_mlo_vdev(vdev);
|
|
|
|
|
|
- /*
|
|
|
- * every link will trigger mlo_ap_vdev_attach,
|
|
|
- * and they should provide the same vdev_count.
|
|
|
- */
|
|
|
- mlo_dev_lock_acquire(dev_ctx);
|
|
|
- dev_ctx->ap_ctx->num_ml_vdevs = vdev_count;
|
|
|
- mlo_dev_lock_release(dev_ctx);
|
|
|
+ /*
|
|
|
+ * every link will trigger mlo_ap_vdev_attach,
|
|
|
+ * and they should provide the same vdev_count.
|
|
|
+ */
|
|
|
+ mlo_dev_lock_acquire(dev_ctx);
|
|
|
+ dev_ctx->ap_ctx->num_ml_vdevs = vdev_count;
|
|
|
+ mlo_dev_lock_release(dev_ctx);
|
|
|
+ }
|
|
|
|
|
|
for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) {
|
|
|
if (dev_ctx->wlan_vdev_list[i])
|