|
@@ -2365,7 +2365,8 @@ void wmi_htc_tx_complete(void *ctx, HTC_PACKET *htc_pkt)
|
|
|
{
|
|
|
struct wmi_unified *wmi_handle = (struct wmi_unified *)ctx;
|
|
|
wmi_buf_t wmi_cmd_buf = GET_HTC_PACKET_NET_BUF_CONTEXT(htc_pkt);
|
|
|
-
|
|
|
+ u_int8_t *buf_ptr;
|
|
|
+ u_int32_t len;
|
|
|
#ifdef WMI_INTERFACE_EVENT_LOGGING
|
|
|
uint32_t cmd_id;
|
|
|
#endif
|
|
@@ -2392,6 +2393,9 @@ void wmi_htc_tx_complete(void *ctx, HTC_PACKET *htc_pkt)
|
|
|
qdf_spin_unlock_bh(&wmi_handle->log_info.wmi_record_lock);
|
|
|
}
|
|
|
#endif
|
|
|
+ buf_ptr = (u_int8_t *) wmi_buf_data(wmi_cmd_buf);
|
|
|
+ len = qdf_nbuf_len(wmi_cmd_buf);
|
|
|
+ qdf_mem_zero(buf_ptr, len);
|
|
|
qdf_nbuf_free(wmi_cmd_buf);
|
|
|
qdf_mem_free(htc_pkt);
|
|
|
qdf_atomic_dec(&wmi_handle->pending_cmds);
|