Browse Source

qcacld-3.0: Rate limit excessive logging

Rate limit excessive logging to prevent kernel panic.

Change-Id: I916fd576c4fd20ebe4f49e546cc5180bd0a79b1a
CRs-Fixed: 3348753
sandhu 2 years ago
parent
commit
f2973a0175
2 changed files with 2 additions and 2 deletions
  1. 1 1
      core/mac/src/pe/lim/lim_process_action_frame.c
  2. 1 1
      core/wma/src/wma_mgmt.c

+ 1 - 1
core/mac/src/pe/lim/lim_process_action_frame.c

@@ -2137,7 +2137,7 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
 		}
 		break;
 	default:
-		pe_warn("Action category: %d not handled",
+		pe_warn_rl("Action category: %d not handled",
 			action_hdr->category);
 		break;
 	}

+ 1 - 1
core/wma/src/wma_mgmt.c

@@ -3475,7 +3475,7 @@ int wma_process_rmf_frame(tp_wma_handle wma_handle,
 				return -EINVAL;
 			}
 		} else {
-			wma_err("Rx unprotected unicast mgmt frame");
+			wma_err_rl("Rx unprotected unicast mgmt frame");
 			rx_pkt->pkt_meta.dpuFeedback =
 				DPU_FEEDBACK_UNPROTECTED_ERROR;
 		}