qcacmn: Fix static analysis issue in MLO disconnect API

Fix static analysis issue in MLO disconnect API

Change-Id: Ibf7b82e4805a81d2d32ea2bfa82a8e1f3756867c
CRs-Fixed: 3140790
This commit is contained in:
Himanshu Batra
2022-03-01 09:09:56 +05:30
gecommit door Madan Koyyalamudi
bovenliggende 97c1a168a5
commit 8da6f58098

Bestand weergeven

@@ -842,9 +842,9 @@ QDF_STATUS mlo_disconnect(struct wlan_objmgr_vdev *vdev,
copied_conn_req_lock_release(sta_ctx);
}
if (wlan_vdev_mlme_is_mlo_vdev(vdev)) {
if (mlo_dev_ctx && wlan_vdev_mlme_is_mlo_vdev(vdev)) {
mlo_dev_lock_acquire(mlo_dev_ctx);
if (sta_ctx->connect_req) {
if (sta_ctx && sta_ctx->connect_req) {
mlo_free_connect_ies(sta_ctx->connect_req);
qdf_mem_free(sta_ctx->connect_req);
sta_ctx->connect_req = NULL;
@@ -884,8 +884,8 @@ QDF_STATUS mlo_sync_disconnect(struct wlan_objmgr_vdev *vdev,
copied_conn_req_lock_release(sta_ctx);
}
if (wlan_vdev_mlme_is_mlo_vdev(vdev)) {
if (sta_ctx->connect_req) {
if (mlo_dev_ctx && wlan_vdev_mlme_is_mlo_vdev(vdev)) {
if (sta_ctx && sta_ctx->connect_req) {
mlo_free_connect_ies(sta_ctx->connect_req);
qdf_mem_free(sta_ctx->connect_req);
sta_ctx->connect_req = NULL;