qcacld-3.0: Rate limit excessive logging
Excessive logging in sending link measurement report action frame failure case, which leads to wlan panic. Rate limit excessive logging in error and warn logging. Change-Id: Ia50801745f7994207cdcb6bbbe10ef7bb70f8e8f CRs-Fixed: 3653294
This commit is contained in:

committed by
Ravindra Konda

parent
76514c5c70
commit
0d0398b44a
@@ -5569,8 +5569,8 @@ lim_send_link_report_action_frame(struct mac_context *mac,
|
||||
nStatus);
|
||||
}
|
||||
|
||||
pe_warn("RRM: Sending Link Report to "QDF_MAC_ADDR_FMT" on vdev[%d]",
|
||||
QDF_MAC_ADDR_REF(peer), vdev_id);
|
||||
pe_warn_rl("RRM: Sending Link Report to "QDF_MAC_ADDR_FMT" on vdev[%d]",
|
||||
QDF_MAC_ADDR_REF(peer), vdev_id);
|
||||
|
||||
if (!wlan_reg_is_24ghz_ch_freq(pe_session->curr_op_freq) ||
|
||||
pe_session->opmode == QDF_P2P_CLIENT_MODE ||
|
||||
@@ -5589,7 +5589,7 @@ lim_send_link_report_action_frame(struct mac_context *mac,
|
||||
MTRACE(qdf_trace(QDF_MODULE_ID_PE, TRACE_CODE_TX_COMPLETE,
|
||||
pe_session->peSessionId, qdf_status));
|
||||
if (QDF_STATUS_SUCCESS != qdf_status) {
|
||||
pe_err("wma_tx_frame FAILED! Status [%d]", qdf_status);
|
||||
pe_err_rl("wma_tx_frame FAILED! Status [%d]", qdf_status);
|
||||
status_code = QDF_STATUS_E_FAILURE;
|
||||
/* Pkt will be freed up by the callback */
|
||||
return status_code;
|
||||
|
@@ -347,15 +347,15 @@ rrm_process_link_measurement_request(struct mac_context *mac,
|
||||
pe_session->maxTxPower = LinkReport.txPower;
|
||||
}
|
||||
}
|
||||
pe_warn("Link Request Tx Pwr: %d Link Report Tx Pwr: %d",
|
||||
pLinkReq->MaxTxPower.maxTxPower, LinkReport.txPower);
|
||||
pe_warn_rl("Link Request Tx Pwr: %d Link Report Tx Pwr: %d",
|
||||
pLinkReq->MaxTxPower.maxTxPower, LinkReport.txPower);
|
||||
|
||||
LinkReport.dialogToken = pLinkReq->DialogToken.token;
|
||||
LinkReport.rxAntenna = 0;
|
||||
LinkReport.txAntenna = 0;
|
||||
currentRSSI = WMA_GET_RX_RSSI_RAW(pRxPacketInfo);
|
||||
|
||||
pe_info("Received Link report frame with %d", currentRSSI);
|
||||
pe_info_rl("Received Link report frame with %d", currentRSSI);
|
||||
|
||||
rrm_calculate_and_fill_rcpi(&LinkReport.rcpi, currentRSSI);
|
||||
LinkReport.rsni = WMA_GET_RX_SNR(pRxPacketInfo);
|
||||
|
@@ -2782,7 +2782,7 @@ QDF_STATUS wma_tx_packet(void *wma_context, void *tx_frame, uint16_t frmLen,
|
||||
|
||||
wlan_objmgr_peer_release_ref(peer, WLAN_MGMT_NB_ID);
|
||||
if (status != QDF_STATUS_SUCCESS) {
|
||||
wma_err("mgmt tx failed");
|
||||
wma_err_rl("mgmt tx failed");
|
||||
qdf_nbuf_free((qdf_nbuf_t)tx_frame);
|
||||
goto error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user