qcacmn: Check mld ctx info first and then print debug info

Check mld ctx info first and then print the debug info
for teardown request with num socs and num links.

Change-Id: Ib37ce76955e2b83aaa5ecec08010f05e293c2a19
CRs-Fixed: 3200920
This commit is contained in:
Surya Prakash Raajen
2022-05-19 16:32:37 +05:30
zatwierdzone przez Madan Koyyalamudi
rodzic 1c82895c18
commit ff354463a5

Wyświetl plik

@@ -486,13 +486,13 @@ QDF_STATUS mlo_link_teardown_link(struct wlan_objmgr_psoc *psoc,
QDF_STATUS status;
struct mlo_mgr_context *mlo_ctx = wlan_objmgr_get_mlo_ctx();
if (!mlo_ctx)
return QDF_STATUS_E_FAILURE;
qdf_debug("Teardown req with num_soc %d num_link %d",
mlo_ctx->setup_info.num_soc,
mlo_ctx->setup_info.num_links);
if (!mlo_ctx)
return QDF_STATUS_E_FAILURE;
if (!mlo_ctx->setup_info.num_soc)
return QDF_STATUS_SUCCESS;