From 9fcc449dbbdc3e3962ea3c05563ffb895cde7789 Mon Sep 17 00:00:00 2001 From: Srinivas Dasari Date: Wed, 20 Jul 2022 12:37:20 +0530 Subject: [PATCH] qcacld-3.0: Rate limit DELBA process logs AP/peer may send DELBA continuously in some error scenarios. Host driver generates a dump of the frame in INFO level and a log in ERROR level for each DELBA received. This results in excessive logs to the kernel logging. Rate limit the logs to avoid spamming kernel logs. Change-Id: I94b11b76b862924672e06520b5bf2e731ec462df CRs-Fixed: 3248606 --- core/mac/src/pe/lim/lim_process_action_frame.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/mac/src/pe/lim/lim_process_action_frame.c b/core/mac/src/pe/lim/lim_process_action_frame.c index 5fc20c00966a..1a683db31d7d 100644 --- a/core/mac/src/pe/lim/lim_process_action_frame.c +++ b/core/mac/src/pe/lim/lim_process_action_frame.c @@ -1552,7 +1552,7 @@ static void lim_process_delba_req(struct mac_context *mac_ctx, uint8_t *rx_pkt_i body_ptr = WMA_GET_RX_MPDU_DATA(rx_pkt_info); frame_len = WMA_GET_RX_PAYLOAD_LEN(rx_pkt_info); - QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_INFO, + QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG, body_ptr, frame_len); delba_req = qdf_mem_malloc(sizeof(*delba_req)); @@ -1576,7 +1576,7 @@ static void lim_process_delba_req(struct mac_context *mac_ctx, uint8_t *rx_pkt_i delba_req->delba_param_set.tid, delba_req->Reason.code); if (QDF_STATUS_SUCCESS != qdf_status) - pe_err("Failed to process delba request"); + pe_err_rl("Failed to process delba request"); error: qdf_mem_free(delba_req);