qcacmn: Remove hardcoded stats_id in send_get_stats_cmd_tlv

Initialize stats_id based on stats_mask instead of hard coded value in send_get_stats_cmd_tlv

Change-Id: Ibe007311ecdc848dee34502dd3f288c99a6fe7e4
This commit is contained in:
Gurumoorthi Gnanasambandhan
2017-07-10 11:55:23 +05:30
committed by snandini
parent d18a061715
commit 4aec367c8f

View File

@@ -7601,8 +7601,7 @@ static QDF_STATUS send_get_stats_cmd_tlv(wmi_unified_t wmi_handle,
WMITLV_TAG_STRUC_wmi_request_stats_cmd_fixed_param,
WMITLV_GET_STRUCT_TLVLEN
(wmi_request_stats_cmd_fixed_param));
cmd->stats_id =
WMI_REQUEST_PDEV_STAT;
cmd->stats_id = get_stats_param->stats_mask;
cmd->vdev_id = get_stats_param->session_id;
WMI_CHAR_ARRAY_TO_MAC_ADDR(addr, &cmd->peer_macaddr);
WMI_LOGD("STATS REQ VDEV_ID:%d-->", cmd->vdev_id);