qcacmn: Remove duplicate set packet len for QMI event buffer
For QMI events qdf_nbuf_set_pktlen is invoked twice. Once in wmi_buf_alloc and again in __wmi_process_qmi_fw_event. Remove this duplicate set packet length. Change-Id: I06c7e077fb1d554215a5ebc52f9d69a333a25a84 CRs-Fixed: 2859036
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2020 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2015-2021 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -2586,11 +2586,6 @@ static int __wmi_process_qmi_fw_event(void *wmi_cb_ctx, void *buf, int len)
|
|||||||
if (!evt_buf)
|
if (!evt_buf)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
/*
|
|
||||||
* Set the length of the buffer to match the allocation size.
|
|
||||||
*/
|
|
||||||
qdf_nbuf_set_pktlen(evt_buf, len);
|
|
||||||
|
|
||||||
qdf_mem_copy(qdf_nbuf_data(evt_buf), buf, len);
|
qdf_mem_copy(qdf_nbuf_data(evt_buf), buf, len);
|
||||||
evt_id = WMI_GET_FIELD(qdf_nbuf_data(evt_buf), WMI_CMD_HDR, COMMANDID);
|
evt_id = WMI_GET_FIELD(qdf_nbuf_data(evt_buf), WMI_CMD_HDR, COMMANDID);
|
||||||
wmi_debug("Received WMI_EVT_ID: %d over qmi", evt_id);
|
wmi_debug("Received WMI_EVT_ID: %d over qmi", evt_id);
|
||||||
|
Reference in New Issue
Block a user