From b135c665211f42772a1584dc63f6950ae27e802c Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 12 Oct 2018 12:24:07 -0700 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_wext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index a57ce1e1de58..e15d074e9075 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -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;