qcacmn: Rate limit the mgmt frame error messages

Management frame error messages can occur quite frequently.
Therefore rate limit them.

Change-Id: I9caa71031e41f3aca2d2bed787c4f5b72d516ded
CRs-Fixed: 2326294
This commit is contained in:
Amar Singhal
2018-10-02 13:07:25 -07:00
committed by nshrivas
parent 12550f6315
commit 49ba607741
2 changed files with 4 additions and 2 deletions

View File

@@ -48,6 +48,8 @@
QDF_TRACE_INFO(QDF_MODULE_ID_MGMT_TXRX, params)
#define mgmt_txrx_debug(params...) \
QDF_TRACE_DEBUG(QDF_MODULE_ID_MGMT_TXRX, params)
#define mgmt_txrx_err_rl(params...) \
QDF_TRACE_ERROR_RL(QDF_MODULE_ID_MGMT_TXRX, params)
#define mgmttxrx_nofl_alert(params...) \
QDF_TRACE_FATAL_NO_FL(QDF_MODULE_ID_MGMT_TXRX, params)

View File

@@ -935,8 +935,8 @@ QDF_STATUS tgt_mgmt_txrx_rx_frame_handler(
frm_type = mgmt_txrx_get_frm_type(mgmt_subtype, mpdu_data_ptr);
if (frm_type == MGMT_FRM_UNSPECIFIED) {
mgmt_txrx_err("Unspecified mgmt frame type fc: %x %x",
wh->i_fc[0], wh->i_fc[1]);
mgmt_txrx_err_rl("Unspecified mgmt frame type fc: %x %x",
wh->i_fc[0], wh->i_fc[1]);
qdf_nbuf_free(buf);
status = QDF_STATUS_E_FAILURE;
goto dec_peer_ref_cnt;