qcacld-3.0: Rate limit mgmt frame error messages

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

Change-Id: I7c42f012c4de3b49120eeedaf83b70c509fa7669
CRs-Fixed: 2326360
This commit is contained in:
Amar Singhal 2018-10-02 14:29:37 -07:00 • committed by nshrivas
commit dc5ae4d501
2 changed files with 2 additions and 1 deletions

View file

@ -90,6 +90,7 @@
#define wma_warn(params...) QDF_TRACE_WARN(QDF_MODULE_ID_WMA, params)
#define wma_info(params...) QDF_TRACE_INFO(QDF_MODULE_ID_WMA, params)
#define wma_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_WMA, params)
#define wma_err_rl(params...) QDF_TRACE_ERROR_RL(QDF_MODULE_ID_WMA, params)
#define wma_nofl_alert(params...) \
QDF_TRACE_FATAL_NO_FL(QDF_MODULE_ID_WMA, params)

View file

@ -4144,7 +4144,7 @@ static int wma_mgmt_rx_process(void *handle, uint8_t *data,
status = mgmt_txrx_rx_handler(psoc, wbuf, mgmt_rx_params);
if (status != QDF_STATUS_SUCCESS) {
WMA_LOGE("%s: Failed to process mgmt rx frame", __func__);
wma_err_rl("Failed to process mgmt rx frame");
qdf_mem_free(mgmt_rx_params);
return -EINVAL;
}