qcacmn: Clear MLD caps of vdev on connect req failure
Clear MLD caps of vdev on connect req failure Change-Id: Ic1615b0b13a02c4655192133f9afe58380edf5a5 CRs-Fixed: 3364986
This commit is contained in:

committed by
Madan Koyyalamudi

szülő
70e9286f37
commit
aaf04d8bc5
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2021, The Linux Foundation. All rights reserved.
|
||||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
@@ -250,6 +250,10 @@ static QDF_STATUS mlo_validate_mlo_cap(struct wlan_objmgr_vdev *vdev)
|
|||||||
{
|
{
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline
|
||||||
|
void mlo_mld_clear_mlo_cap(struct wlan_objmgr_vdev *vdev)
|
||||||
|
{ }
|
||||||
#else
|
#else
|
||||||
/**
|
/**
|
||||||
* mlo_is_mld_connected - Check whether MLD is connected
|
* mlo_is_mld_connected - Check whether MLD is connected
|
||||||
@@ -565,7 +569,10 @@ QDF_STATUS mlo_connect(struct wlan_objmgr_vdev *vdev,
|
|||||||
mlo_clear_connected_links_bmap(vdev);
|
mlo_clear_connected_links_bmap(vdev);
|
||||||
mlo_dev_lock_release(mlo_dev_ctx);
|
mlo_dev_lock_release(mlo_dev_ctx);
|
||||||
|
|
||||||
return wlan_cm_start_connect(vdev, req);
|
status = wlan_cm_start_connect(vdev, req);
|
||||||
|
if (QDF_IS_STATUS_ERROR(status))
|
||||||
|
mlo_mld_clear_mlo_cap(vdev);
|
||||||
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
mlo_dev_lock_release(mlo_dev_ctx);
|
mlo_dev_lock_release(mlo_dev_ctx);
|
||||||
|
Reference in New Issue
Block a user