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
这个提交包含在:
Sandeep Puligilla
2016-06-13 15:42:55 -07:00
提交者 Nandini Suresh
父节点 4ab1c4c0a3
当前提交 b74958d1cf
修改 2 个文件,包含 44 行新增27 行删除

查看文件

@@ -1640,6 +1640,11 @@ QDF_STATUS send_mgmt_cmd_tlv(wmi_unified_t wmi_handle,
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__);