qcacmn: Enhance MGMT frame logging in WMI
More detailed logging needed for mgmt frames
Add vdev_id, frame type, subtype, and channel to logs by defining wrapper
function around logging macro and calling it from send_mgmt_cmd_tlv
Change-Id: I0c8c26e3194d97be7d903f64c5c5909c2d4b9799
CRs-Fixed: 1011346
diff --git a/wmi_unified_tlv.c b/wmi_unified_tlv.c
index 52ad166..d5bbfde 100644
--- a/wmi_unified_tlv.c
+++ b/wmi_unified_tlv.c
@@ -1640,6 +1640,11 @@
cmd->frame_len = param->frm_len;
cmd->buf_len = bufp_len;
+ wmi_mgmt_cmd_record(wmi_handle, WMI_MGMT_TX_SEND_CMDID,
+ ((struct wmi_command_header *)bufp)->type,
+ ((struct wmi_command_header *)bufp)->sub_type,
+ cmd->vdev_id, cmd->chanfreq);
+
if (wmi_unified_cmd_send(wmi_handle, buf, cmd_len,
WMI_MGMT_TX_SEND_CMDID)) {
WMI_LOGE("%s: Failed to send mgmt Tx", __func__);