qcacmn: Enable monitor dest ring in m_copy mode

In existing code, 132 bytes of OTA mgmt. and control payload is
provided to upper layers by subscribing to packet header TLV.

The requirement in M-copy mode though is to get complete payload for
mgmt. and ctrl. packets. Add change to configure monitor destination
ring and add mgmt. and ctrl. packet filter to receive full mgmt. and
ctrl. packets.

Change-Id: I0014837b51cac6f0143dcc5cb624ea2086cf4486
CRs-Fixed: 2256159
This commit is contained in:
Chaithanya Garrepalli
2018-07-05 14:53:50 +05:30
committed by nshrivas
parent c0d010216a
commit 7ab76aec94
6 changed files with 205 additions and 68 deletions

View File

@@ -466,22 +466,32 @@ cdp_peer_set_nawds(ol_txrx_soc_handle soc,
(peer, value);
}
static inline void cdp_txrx_set_pdev_param(ol_txrx_soc_handle soc,
struct cdp_pdev *pdev, enum cdp_pdev_param_type type,
uint8_t val)
/**
* cdp_txrx_set_pdev_param() - set pdev parameter
* @soc: opaque soc handle
* @pdev: data path pdev handle
* @type: param type
* @val: value of pdev_tx_capture
*
* Return: status: 0 - Success, non-zero: Failure
*/
static inline QDF_STATUS cdp_txrx_set_pdev_param(ol_txrx_soc_handle soc,
struct cdp_pdev *pdev,
enum cdp_pdev_param_type type,
uint8_t val)
{
if (!soc || !soc->ops) {
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
"%s: Invalid Instance:", __func__);
QDF_BUG(0);
return;
return QDF_STATUS_SUCCESS;
}
if (!soc->ops->ctrl_ops ||
!soc->ops->ctrl_ops->txrx_set_pdev_param)
return;
return QDF_STATUS_SUCCESS;
soc->ops->ctrl_ops->txrx_set_pdev_param
return soc->ops->ctrl_ops->txrx_set_pdev_param
(pdev, type, val);
}