qcacmn: Add fix to validate disconnect req for MLO STA

In case of MLO, to avoid race between ongoing connect and a new
disconnect, add fix to validate disconnect req for MLO STA

Change-Id: I4b27a06103ffce637738b1894c3bdcf46533043c
CRs-Fixed: 3493915
This commit is contained in:
Himanshu Batra
2023-05-11 18:23:08 +05:30
committed by Madan Koyyalamudi
parent 7c844f2d3f
commit 25e0531edd

View File

@@ -1372,6 +1372,13 @@ QDF_STATUS mlo_sync_disconnect(struct wlan_objmgr_vdev *vdev,
sta_ctx->connect_req = NULL;
}
status = mlo_validate_disconn_req(vdev, source,
reason_code, bssid);
if (QDF_IS_STATUS_ERROR(status)) {
mlo_err("Connect in progress, deferring disconnect");
return status;
}
status = mlo_send_link_disconnect_sync(mlo_dev_ctx, source,
reason_code, bssid);
if (QDF_IS_STATUS_SUCCESS(status))