qcacld-3.0: Rate limit error logs in data path

Rate limit error logs in data path to avoid watch dog bark.

Change-Id: Id20f6224928c6b5e27a04daa6b9a10084ad122b9
CRs-Fixed: 2162954
This commit is contained in:
Rajeev Kumar 2017-12-26 17:55:33 -08:00 • committed by Gerrit - the friendly Code Review server
commit 6d0b2eaaf0

View file

@ -183,6 +183,7 @@ static struct attribute *attrs[] = {
#define HDD_OPS_INACTIVITY_TIMEOUT (120000)
#define MAX_OPS_NAME_STRING_SIZE 20
#define RATE_LIMIT_ERROR_LOG (256)
static qdf_timer_t hdd_drv_ops_inactivity_timer;
static struct task_struct *hdd_drv_ops_task;
@ -5682,7 +5683,8 @@ struct hdd_adapter *hdd_get_adapter_by_vdev(struct hdd_context *hdd_ctx,
return adapter;
}
hdd_err("vdev_id %d does not exist with host", vdev_id);
hdd_err_ratelimited(RATE_LIMIT_ERROR_LOG,
"vdev_id %d does not exist with host", vdev_id);
return NULL;
}