From 29657b28c0be88d124916155a23d303681c7c24c Mon Sep 17 00:00:00 2001 From: Sathish Kumar Date: Wed, 27 Jul 2016 12:13:02 +0530 Subject: [PATCH] qcacmn: Fixing incorrect qdf_mem_set API usage in wmi_unified_non_tlv.c The qdf_mem_set API is used incorrectly in a few instances inside wmi_unified_non_tlv.c The argument list is - However, some places, it is sent as - This change fixes such incorrect function calls to qdf_mem_set(). Change-Id: Id50136f630022b1fdeaddbdefcad9f637f917e9e CRs-Fixed: 1048504 --- wmi_unified_non_tlv.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wmi_unified_non_tlv.c b/wmi_unified_non_tlv.c index 499c39f32b..aac8757571 100644 --- a/wmi_unified_non_tlv.c +++ b/wmi_unified_non_tlv.c @@ -4471,7 +4471,7 @@ send_rtt_meas_req_test_cmd_non_tlv(wmi_unified_t wmi_handle, } p = (u_int8_t *) wmi_buf_data(buf); - qdf_mem_set(p, 0, len); + qdf_mem_set(p, len, 0); head = (wmi_rtt_measreq_head *) p; WMI_RTT_REQ_ID_SET(head->req_id, param->req_id); @@ -4609,7 +4609,7 @@ send_rtt_meas_req_cmd_non_tlv(wmi_unified_t wmi_handle, } p = (uint8_t *) wmi_buf_data(buf); - qdf_mem_set(p, 0, len); + qdf_mem_set(p, len, 0); /* encode header */ head = (wmi_rtt_measreq_head *) p; @@ -4679,7 +4679,7 @@ send_rtt_meas_req_cmd_non_tlv(wmi_unified_t wmi_handle, WMI_SET_CHANNEL_FLAG(w_chan, WMI_CHAN_FLAG_DFS); WMI_CHAR_ARRAY_TO_MAC_ADDR(((uint8_t *)peer), &body->dest_mac); - qdf_mem_set(spoof, 0 , 6); + qdf_mem_set(spoof, IEEE80211_ADDR_LEN, 0); WMI_CHAR_ARRAY_TO_MAC_ADDR(((uint8_t *)param->spoof_mac_addr), &body->spoof_bssid); @@ -4777,7 +4777,7 @@ send_lci_set_cmd_non_tlv(wmi_unified_t wmi_handle, } p = (uint8_t *) wmi_buf_data(buf); - qdf_mem_set(p, 0, len); + qdf_mem_set(p, len, 0); head = (wmi_oem_measreq_head *)p; head->sub_type = TARGET_OEM_CONFIGURE_LCI; @@ -4847,7 +4847,7 @@ send_lcr_set_cmd_non_tlv(wmi_unified_t wmi_handle, } p = (uint8_t *) wmi_buf_data(buf); - qdf_mem_set(p, 0, len); + qdf_mem_set(p, len, 0); head = (wmi_oem_measreq_head *)p; head->sub_type = TARGET_OEM_CONFIGURE_LCR;