Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bf2a2ce authored by Jia Ding's avatar Jia Ding Committed by Gerrit - the friendly Code Review server
Browse files

qcacld-3.0: Rate limit error logs for lim_defer_msg

Rate limit error logs for lim_defer_msg to avoid potential
excessive logging.

Change-Id: Icfe55b113b62d95b8259899b03602386e2127e5e
CRs-Fixed: 2867156
parent 3bae0eca
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -524,8 +524,7 @@ static bool def_msg_decision(struct mac_context *mac_ctx,
	if (mac_ctx->lim.gLimSmeState == eLIM_SME_OFFLINE_STATE) {
		/* Defer processing this message */
		if (lim_defer_msg(mac_ctx, lim_msg) != TX_SUCCESS) {
			QDF_TRACE(QDF_MODULE_ID_PE, LOGE,
					FL("Unable to Defer Msg"));
			pe_err_rl("Unable to Defer Msg");
			lim_log_session_states(mac_ctx);
			lim_handle_defer_msg_error(mac_ctx, lim_msg);
		}
@@ -1012,7 +1011,8 @@ uint32_t lim_defer_msg(struct mac_context *mac, struct scheduler_msg *pMsg)
			(mac, NO_SESSION,
			LIM_TRACE_MAKE_RXMSG(pMsg->type, LIM_MSG_DEFERRED)));
	} else {
		pe_err("Dropped lim message (0x%X) Message %s", pMsg->type, lim_msg_str(pMsg->type));
		pe_err_rl("Dropped lim message (0x%X) Message %s", pMsg->type,
			  lim_msg_str(pMsg->type));
		MTRACE(mac_trace_msg_rx
			(mac, NO_SESSION,
			LIM_TRACE_MAKE_RXMSG(pMsg->type, LIM_MSG_DROPPED)));
+2 −2
Original line number Diff line number Diff line
@@ -769,7 +769,7 @@ uint8_t lim_write_deferred_msg_q(struct mac_context *mac_ctx,
			 * We reach the quota for management frames,
			 * drop this one
			 */
			pe_warn("Too many queue->MsgQ Msg: %d count: %d",
			pe_warn_rl("Too many queue->MsgQ Msg: %d count: %d",
				   lim_msg->type, count);
			/* Return error, caller knows what to do */
			return TX_QUEUE_FULL;