qcacmn: Enhance and update target_if/mlme/vdev_mgr

Enhance target_if/mlme/vdev_mgr by addressing
review comments and update response handling
APIs to handler timers and response bit maps
as expected

Change-Id: I8a5bf3f2931f0c36a367dfebfc898ed2621f3516
CRs-Fixed: 2397184
This commit is contained in:
Naga
2019-02-05 22:34:24 +05:30
committad av nshrivas
förälder 1726ae21c5
incheckning 7dd88340fe
20 ändrade filer med 699 tillägg och 563 borttagningar

Visa fil

@@ -21,6 +21,21 @@
#ifndef _WLAN_VDEV_MLME_MAIN_H_
#define _WLAN_VDEV_MLME_MAIN_H_
#include <wlan_objmgr_psoc_obj.h>
#include <wlan_lmac_if_def.h>
/**
* wlan_mlme_get_lmac_tx_ops() - get tx ops
* @psoc: pointer to psoc obj
*
* Return: pointer to tx ops
*/
static inline struct wlan_lmac_if_mlme_tx_ops *
wlan_mlme_get_lmac_tx_ops(struct wlan_objmgr_psoc *psoc)
{
return &psoc->soc_cb.tx_ops.mops;
}
#ifdef CMN_VDEV_MLME_SM_ENABLE
/**
* enum wlan_vdev_state - VDEV state

Visa fil

@@ -159,6 +159,7 @@ static void mlme_scan_serialization_comp_info_cb(
QDF_STATUS wlan_mlme_psoc_enable(struct wlan_objmgr_psoc *psoc)
{
QDF_STATUS status;
struct wlan_lmac_if_mlme_tx_ops *tx_ops;
status = wlan_serialization_register_comp_info_cb
(psoc,
@@ -170,12 +171,18 @@ QDF_STATUS wlan_mlme_psoc_enable(struct wlan_objmgr_psoc *psoc)
return status;
}
/* Register for WMI events into target_if rx */
tx_ops = wlan_mlme_get_lmac_tx_ops(psoc);
if (tx_ops && tx_ops->vdev_mlme_attach)
tx_ops->vdev_mlme_attach(psoc);
return QDF_STATUS_SUCCESS;
}
QDF_STATUS wlan_mlme_psoc_disable(struct wlan_objmgr_psoc *psoc)
{
QDF_STATUS status;
struct wlan_lmac_if_mlme_tx_ops *tx_ops;
status = wlan_serialization_deregister_comp_info_cb
(psoc,
@@ -186,6 +193,11 @@ QDF_STATUS wlan_mlme_psoc_disable(struct wlan_objmgr_psoc *psoc)
return status;
}
/* Unregister WMI events */
tx_ops = wlan_mlme_get_lmac_tx_ops(psoc);
if (tx_ops && tx_ops->vdev_mlme_detach)
tx_ops->vdev_mlme_detach(psoc);
return QDF_STATUS_SUCCESS;
}