qcacmn: Remove unused psoc private object

Interface manager is not using the psoc private
object structure. Remove the allocate and attach code
in psoc create and destroy code.

Change-Id: I9450052345769ef6627d76731b2b51b5414bd146
CRs-Fixed: 2811077
This commit is contained in:
Sandeep Puligilla
2020-10-31 00:53:50 -07:00
committato da snandini
parent 3cb0095f11
commit a5235578f7
2 ha cambiato i file con 0 aggiunte e 44 eliminazioni

Vedi File

@@ -66,14 +66,6 @@
#define ifmgr_hex_dump(level, data, buf_len) \
qdf_trace_hex_dump(QDF_MODULE_ID_IFMGR, level, data, buf_len)
/**
* struct wlan_if_mgr_obj - interface object definition
*
*/
struct wlan_if_mgr_obj {
};
/*
* wlan_if_mgr_init() - Interface manager module initialization API
*

Vedi File

@@ -73,25 +73,8 @@ QDF_STATUS wlan_if_mgr_deinit(void)
QDF_STATUS wlan_if_mgr_psoc_created_notification(struct wlan_objmgr_psoc *psoc,
void *arg_list)
{
struct wlan_if_mgr_obj *ifmgr_obj;
QDF_STATUS status = QDF_STATUS_SUCCESS;
ifmgr_obj = qdf_mem_malloc_atomic(sizeof(struct wlan_if_mgr_obj));
if (!ifmgr_obj) {
ifmgr_err("Failed to allocate memory");
return QDF_STATUS_E_NOMEM;
}
/* Attach scan private date to psoc */
status = wlan_objmgr_psoc_component_obj_attach(psoc,
WLAN_UMAC_COMP_IF_MGR,
(void *)ifmgr_obj,
QDF_STATUS_SUCCESS);
if (QDF_IS_STATUS_ERROR(status))
ifmgr_err("Failed to attach psoc scan component");
else
ifmgr_debug("interface mgr object attach to psoc successful");
return status;
}
@@ -99,27 +82,8 @@ QDF_STATUS
wlan_if_mgr_psoc_destroyed_notification(struct wlan_objmgr_psoc *psoc,
void *arg_list)
{
void *ifmgr_obj = NULL;
QDF_STATUS status = QDF_STATUS_SUCCESS;
ifmgr_obj = wlan_objmgr_psoc_get_comp_private_obj(psoc,
WLAN_UMAC_COMP_IF_MGR);
if (!ifmgr_obj) {
ifmgr_err("Failed to detach interface mgr in psoc ctx");
return QDF_STATUS_E_FAILURE;
}
status = wlan_objmgr_psoc_component_obj_detach(psoc,
WLAN_UMAC_COMP_IF_MGR,
ifmgr_obj);
if (QDF_IS_STATUS_ERROR(status))
ifmgr_err("Failed to detach psoc interface mgr component");
else
ifmgr_debug("interface mgr object detach to psoc successful");
qdf_mem_free(ifmgr_obj);
return status;
}