qcacld-3.0: Rate limit logs in hdd_check_wext_control()

During performance testing system stability issues were observed which
were attributed to excess logging in hdd_check_wext_control(). In
order to avoid such issue, rate limit those messages.

Change-Id: Ia0fa6f8a3fd7150ab3b8f2417bdb5087241c51e3
CRs-Fixed: 2332711
This commit is contained in:
Jeff Johnson
2018-10-12 12:24:07 -07:00
committed by nshrivas
parent 5e70013327
commit b135c66521

View File

@@ -2952,10 +2952,10 @@ static int hdd_check_wext_control(enum hdd_wext_control wext_control,
switch (wext_control) {
default:
case hdd_wext_disabled:
hdd_err("Rejecting disabled ioctl %x", info->cmd);
hdd_err_rl("Rejecting disabled ioctl %x", info->cmd);
return -ENOTSUPP;
case hdd_wext_deprecated:
hdd_warn("Using deprecated ioctl %x", info->cmd);
hdd_warn_rl("Using deprecated ioctl %x", info->cmd);
return 0;
case hdd_wext_enabled:
return 0;