Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp923557pxb; Tue, 9 Feb 2021 16:51:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnupcgZzyVBcb0w7+G30KFxPxwSfeE2MfG2sudo5BwGZknh43ZjNaKTjI29vpB+hROia20 X-Received: by 2002:a05:6402:306f:: with SMTP id bs15mr815915edb.232.1612918261777; Tue, 09 Feb 2021 16:51:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612918261; cv=none; d=google.com; s=arc-20160816; b=SJfR8MEsqT5EdtJN6itPpbyw3E5sipx0jwiOETDOd8OtvcfY+CAaTNGibcI7wn9WSX YwIe9OrHClrffGRnDJNKV2C+NDHecKjfOeroSJ84dhVxXUo6iOuclfHo99A/vga9oZ7M rJTeZGdXterrajO0+N7M6uPKLZU7xafuNd3mCcmr1bYQ9oo00CeE46DyCiAj/80K07uP dduHyTyvLog3Iee+3cwoybJV2/9JdGSC3xdBI4DSOJANJh6XVkhTznLB0OSVGIyoLAXA XQD10uGKwSvtxs1tjpehnrJc8s76XsArMUjhXS544oK+c64h7uMibYLDJlyxn61XOlTW tcZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lSxRQe0NkuXvIC4LukBFAaQnS+eadT8rfkVxfIWM+A0=; b=Xze+D40pJLiWfKtCaH2rcAY6MLuLPUhlkxdHz0TPpZ9a6ngcLXjkGynymHkNuQKHtN 7xlNzzjarmiLAe8VTBRD16tJ8Q7qG39Q22OiiCTcfiQa3hZM5kAl04pnTjFtP4T9n8bN hfM24WTRoxvYytO9sQvIXuJlwEBUqUEyxKglclMG70kn2J6xLfBCYnu7Bo+XwLmZy4wd 14Z6KPvuIylk52cG8d9Te0PLpojBkiNqHIBG3rFyQyiAr3Yw10PCfqayytNCQNZEC6IV ax68Xh0sv/CohgsYoxYqsecz57S0cmYDBOv3mvR66MHFN4jWwJ+HFQqjXudUUk/oZOeM UV2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=CALrMMBC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si281440edq.184.2021.02.09.16.50.39; Tue, 09 Feb 2021 16:51:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=CALrMMBC; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234984AbhBJAsZ (ORCPT + 99 others); Tue, 9 Feb 2021 19:48:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234112AbhBJApw (ORCPT ); Tue, 9 Feb 2021 19:45:52 -0500 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24347C06121E for ; Tue, 9 Feb 2021 16:42:39 -0800 (PST) Received: by mail-ot1-x32e.google.com with SMTP id o12so248431ote.12 for ; Tue, 09 Feb 2021 16:42:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lSxRQe0NkuXvIC4LukBFAaQnS+eadT8rfkVxfIWM+A0=; b=CALrMMBCEUbB8CMtagKUhuHyyPH7YzI4dGisIXZAIC0QFUvYm0rwn/tZPFXXErx5QM GP8j/k1nlTROOjPRVG3EoZbP3sg8sWz61Bu9aFzBxZw7XvaFI1lVTf1FeaXnSZri5hY8 qBhy39vwsrJqLSQLOVw+fq5m2l8KLvuKd+3Wo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lSxRQe0NkuXvIC4LukBFAaQnS+eadT8rfkVxfIWM+A0=; b=f9DqQVf/HIhkbepxEV6WnzRaIy3bEgQoO8Cs4Wo40HV47uIfoGlpnr/3mcZTqXK7fM xdfpd8cYzFkNbCbrP6yVkTci1LQY73y4voFR4p7ryIYplLWoTEjFVp/QOxUQ9CDtw4Ad vSRbM/hpzRZg9284XWY5u66fB1o7st8h3GohcJy8y+MX51b9Wl50YccgP0YlJbk+FC0K asJ4sBBkxrz24gzTkZpQ2jU9M4haVm7U9L7KZngVV/xfrSsiSx7TyNJJj2biO0DM6/7e jk7D1jp5irjQEgw3fGnwSZwDN9UzhVTIrmu2S7yO9ctcLNdMfMu3D437RvCQhjMgoMdi zXxA== X-Gm-Message-State: AOAM530wG/nM23/czMR1z9RQMypOqiw60zwr/o+2eKBZTIhCtxsJ/aWA jQo/dsx2iLlALfBfzwrgJc9cXg== X-Received: by 2002:a9d:6003:: with SMTP id h3mr243308otj.23.1612917758613; Tue, 09 Feb 2021 16:42:38 -0800 (PST) Received: from shuah-t480s.internal (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id s123sm103060oos.3.2021.02.09.16.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 16:42:38 -0800 (PST) From: Shuah Khan To: kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org Cc: Shuah Khan , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] ath10k: reduce invalid ht params rate message noise Date: Tue, 9 Feb 2021 17:42:26 -0700 Message-Id: <76a816d983e6c4d636311738396f97971b5523fb.1612915444.git.skhan@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org ath10k_mac_get_rate_flags_ht() floods dmesg with the following messages, when it fails to find a match for mcs=7 and rate=1440. supported_ht_mcs_rate_nss2: {7, {1300, 2700, 1444, 3000} } ath10k_pci 0000:02:00.0: invalid ht params rate 1440 100kbps nss 2 mcs 7 dev_warn_ratelimited() isn't helping the noise. Use dev_warn_once() instead. Signed-off-by: Shuah Khan --- drivers/net/wireless/ath/ath10k/mac.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 3545ce7dce0a..276321f0cfdd 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -8970,8 +8970,9 @@ static void ath10k_mac_get_rate_flags_ht(struct ath10k *ar, u32 rate, u8 nss, u8 *bw |= RATE_INFO_BW_40; *flags |= RATE_INFO_FLAGS_SHORT_GI; } else { - ath10k_warn(ar, "invalid ht params rate %d 100kbps nss %d mcs %d", - rate, nss, mcs); + dev_warn_once(ar->dev, + "invalid ht params rate %d 100kbps nss %d mcs %d", + rate, nss, mcs); } } -- 2.27.0