qcacmn: Add MLO as disconnect source

When processing a peer or southbound disconnect on the non assoc link,
there is a vdev stop issue due to the correct state not being set. For
this link, set the disconnect source as MLO instead of passing it down
from the caller.

Change-Id: I8db444e7c80659a1a1026a53326e99c96ef631f0
CRs-fixed: 3040658
This commit is contained in:
Lincoln Tran
2021-09-27 09:50:00 -07:00
zatwierdzone przez Madan Koyyalamudi
rodzic 8e8df4a411
commit 92f93cb246
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@@ -531,7 +531,8 @@ mlo_send_link_disconnect(struct wlan_mlo_dev_context *mlo_dev_ctx,
if (qdf_test_bit(i, mlo_dev_ctx->sta_ctx->wlan_connected_links) &&
mlo_dev_ctx->wlan_vdev_list[i] != mlo_get_assoc_link_vdev(mlo_dev_ctx))
wlan_cm_disconnect(mlo_dev_ctx->wlan_vdev_list[i],
source, reason_code, NULL);
CM_MLO_DISCONNECT, reason_code,
NULL);
}
wlan_cm_disconnect(mlo_get_assoc_link_vdev(mlo_dev_ctx),
@@ -554,7 +555,7 @@ mlo_send_link_disconnect_sync(struct wlan_mlo_dev_context *mlo_dev_ctx,
if (qdf_test_bit(i, mlo_dev_ctx->sta_ctx->wlan_connected_links) &&
mlo_dev_ctx->wlan_vdev_list[i] != mlo_get_assoc_link_vdev(mlo_dev_ctx))
wlan_cm_disconnect_sync(mlo_dev_ctx->wlan_vdev_list[i],
source, reason_code);
CM_MLO_DISCONNECT, reason_code);
}
wlan_cm_disconnect_sync(mlo_get_assoc_link_vdev(mlo_dev_ctx),