qcacmn: Ignore ap vdev count initialization

Avoid ap vdev count initialization through mlo
bridge vdev.

Change-Id: Id8845f2499d2064ec768e90ffa6324bfde60d3d9
CRs-Fixed: 3592556
Bu işleme şunda yer alıyor:
Balaganapathy Palanisamy
2023-08-19 19:42:21 +05:30
işlemeyi yapan: Rahul Choudhary
ebeveyn df30eaaa50
işleme b7aac4a3be

Dosyayı Görüntüle

@@ -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])