qcacmn: Modify the minidump_remove function
The wlan_minidump_remove function utilizes the updated kernel API. So, modify the function definition and parameters accordingly. Change-Id: Ib62a46688400d5d9c2ff45c17dc41d5f0b7f58d0 CRs-Fixed: 2860432
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@@ -64,7 +64,9 @@ static QDF_STATUS mlme_pdev_obj_create_handler(struct wlan_objmgr_pdev *pdev,
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
||||
init_failed:
|
||||
wlan_minidump_remove(pdev_mlme);
|
||||
wlan_minidump_remove(pdev_mlme, sizeof(*pdev_mlme), psoc,
|
||||
WLAN_MD_OBJMGR_PDEV_MLME, "pdev_mlme");
|
||||
|
||||
qdf_mem_free(pdev_mlme);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
@@ -81,11 +83,14 @@ static QDF_STATUS mlme_pdev_obj_destroy_handler(struct wlan_objmgr_pdev *pdev,
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
mlme_pdev_ops_ext_hdl_destroy(pdev_mlme);
|
||||
|
||||
wlan_objmgr_pdev_component_obj_detach(pdev, WLAN_UMAC_COMP_MLME,
|
||||
(void *)pdev_mlme);
|
||||
wlan_minidump_remove(pdev_mlme);
|
||||
mlme_pdev_ops_ext_hdl_destroy(pdev_mlme);
|
||||
|
||||
wlan_minidump_remove(pdev_mlme, sizeof(*pdev_mlme),
|
||||
wlan_pdev_get_psoc(pdev),
|
||||
WLAN_MD_OBJMGR_PDEV_MLME, "pdev_mlme");
|
||||
|
||||
qdf_mem_free(pdev_mlme);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@@ -137,7 +137,9 @@ ext_hdl_create_failed:
|
||||
cm_sm_create_failed:
|
||||
mlme_vdev_sm_destroy(vdev_mlme);
|
||||
init_failed:
|
||||
wlan_minidump_remove(vdev_mlme);
|
||||
wlan_minidump_remove(vdev_mlme, sizeof(*vdev_mlme), psoc,
|
||||
WLAN_MD_OBJMGR_VDEV_MLME, "vdev_mlme");
|
||||
|
||||
qdf_mem_free(vdev_mlme);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
@@ -158,14 +160,19 @@ static QDF_STATUS mlme_vdev_obj_destroy_handler(struct wlan_objmgr_vdev *vdev,
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
wlan_cm_deinit(vdev_mlme);
|
||||
mlme_vdev_sm_destroy(vdev_mlme);
|
||||
wlan_objmgr_vdev_component_obj_detach(vdev, WLAN_UMAC_COMP_MLME,
|
||||
vdev_mlme);
|
||||
|
||||
mlme_vdev_ops_ext_hdl_destroy(vdev_mlme);
|
||||
|
||||
wlan_objmgr_vdev_component_obj_detach(vdev, WLAN_UMAC_COMP_MLME,
|
||||
vdev_mlme);
|
||||
wlan_minidump_remove(vdev_mlme);
|
||||
wlan_cm_deinit(vdev_mlme);
|
||||
|
||||
mlme_vdev_sm_destroy(vdev_mlme);
|
||||
|
||||
wlan_minidump_remove(vdev_mlme, sizeof(*vdev_mlme),
|
||||
wlan_vdev_get_psoc(vdev),
|
||||
WLAN_MD_OBJMGR_VDEV_MLME, "vdev_mlme");
|
||||
|
||||
qdf_mem_free(vdev_mlme);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
Reference in New Issue
Block a user