qcacmn: FR-50469 Pktlog for particular peer mac address support

This FR is to enhance existing pktlog debug tool
This feature will allow to capture pktlog for particular
peer mac address.

Change-Id: I3676095536185f25b0d498e03f70246260a324fd
This commit is contained in:
Keyur Parekh
2018-11-21 02:50:56 -08:00
committed by nshrivas
parent 11865218ea
commit c28f839a84
9 changed files with 253 additions and 11 deletions

View File

@@ -735,6 +735,30 @@ QDF_STATUS wmi_unified_packet_log_enable_send(void *wmi_hdl,
return QDF_STATUS_E_FAILURE;
}
/**
* wmi_unified_peer_based_pktlog_send() - WMI request enable peer
* based filtering
* @wmi_handle: handle to WMI.
* @macaddr: PEER mac address to be filtered
* @mac_id: Mac id
* @enb_dsb: Enable or Disable peer based pktlog
* filtering
*
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS wmi_unified_peer_based_pktlog_send(void *wmi_hdl,
uint8_t *macaddr,
uint8_t mac_id,
uint8_t enb_dsb)
{
wmi_unified_t wmi_handle = (wmi_unified_t)wmi_hdl;
if (wmi_handle->ops->send_peer_based_pktlog_cmd)
return wmi_handle->ops->send_peer_based_pktlog_cmd
(wmi_handle, macaddr, mac_id, enb_dsb);
return QDF_STATUS_E_FAILURE;
}
#endif
/**
* wmi_unified_packet_log_disable__send() - WMI pktlog disable function