qcacmn: Fix assignment of vdev in cm_ctx and few prints

Fix the assignment of vdev in cm_ctx and fix few prints.

Change-Id: I5d76ab2ca39a1a84b3987fd9cb566c2f08ecc399
CRs-Fixed: 2856499
This commit is contained in:
gaurank kathpalia
2021-01-16 16:58:36 +05:30
committed by snandini
parent a3f2a76372
commit 6dc7ecfcb8
3 changed files with 9 additions and 10 deletions

View File

@@ -79,6 +79,7 @@ QDF_STATUS wlan_cm_init(struct vdev_mlme_obj *vdev_mlme)
if (!vdev_mlme->cnx_mgr_ctx)
return QDF_STATUS_E_NOMEM;
vdev_mlme->cnx_mgr_ctx->vdev = vdev;
status = mlme_cm_ext_hdl_create(vdev_mlme->cnx_mgr_ctx);
if (QDF_IS_STATUS_ERROR(status)) {
qdf_mem_free(vdev_mlme->cnx_mgr_ctx);
@@ -86,7 +87,6 @@ QDF_STATUS wlan_cm_init(struct vdev_mlme_obj *vdev_mlme)
return status;
}
vdev_mlme->cnx_mgr_ctx->vdev = vdev;
status = cm_sm_create(vdev_mlme->cnx_mgr_ctx);
if (QDF_IS_STATUS_ERROR(status)) {
mlme_cm_ext_hdl_destroy(vdev_mlme->cnx_mgr_ctx);