Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp977679pxb; Tue, 9 Feb 2021 18:40:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyH2PDQKnBKv6H8LpYmIpoj6io8RoJnGCyG+/Fw9QiZLVJwWgeOs+o/zdD64BbvIH7n40vT X-Received: by 2002:a17:906:560b:: with SMTP id f11mr789782ejq.162.1612924812308; Tue, 09 Feb 2021 18:40:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612924812; cv=none; d=google.com; s=arc-20160816; b=HYfYvvuyPRqyoNFFXj2cWEXyGfC08vmcKoPruPHEK4JD9xlGsM38cAiSU3WO2YT8yZ kZZ+x8EqgtsJ4MKVXErFSRTt/r0UShEx+7HPM+75UXq39XcJECumw2fGkWAX93xQMIAY ZAu8mrcZxzK/AoKlG/X/A4pK+ohYpigi3zTdRLCNYlS4bV24tS9bIQ0oGCpzQjyjNI5k 3PgEbpMHCPO3yumsbpRLJ/2DD7UnWfJidT+BHqAaQrgQLVf3Nl5EzTSOZlUFcGj1X1lI vAoS4otqp6HIQ2pVLaVQMioMnPsCDaX96BkVmxGNptwmjztaDkUg/nltPiCkGT6htdNk ysJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=KP3hTxbzRxMtj43K3BWRTDhhCWad/fnTc01joBzCoVI=; b=tfHCp42JJhcxM8q/8+E3jfqVVCs31HOszrHOxOEzAy83PSr21sUJLSFklfNtR+Uwwy IpBLrWB5OwWQohieyCW839YjrBRzstMXVcRLJWw1FBIKxz5LmqovmMehEQJ54u+7kD/j roXK4joZHqoPq14DEQ5uzzo0y1s+4k1xjks3bYnOMbPjF7CNQ75u5ewKEWUuqligWqcI AdYFxZCHnUN6253jf5OoygL/EIA/zPTviQuyyDf68SAFp/bgDGU0KHSuWXQGimxbl3i2 yaFeEihzwvi5o7tJMWT6IYW2ULHhMOacLjOKcplpGPJUZ37e99pOmdjy/fQBTZ8AswKb HqHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=aN48IIPK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c4si450227edr.553.2021.02.09.18.39.47; Tue, 09 Feb 2021 18:40:12 -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=@mg.codeaurora.org header.s=smtp header.b=aN48IIPK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235104AbhBJCiw (ORCPT + 99 others); Tue, 9 Feb 2021 21:38:52 -0500 Received: from mail29.static.mailgun.info ([104.130.122.29]:46691 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235135AbhBJCh1 (ORCPT ); Tue, 9 Feb 2021 21:37:27 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1612924625; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=KP3hTxbzRxMtj43K3BWRTDhhCWad/fnTc01joBzCoVI=; b=aN48IIPKLRt/7F7FjC4SJ462OFTwu3gryWbUPDJBzP9zilb8G8RmPD4Gqtxs63dtlRErZ10F zKqsyT+LAbHiUaDCVXb80uYsNXEGxsV38bIdK87c79Een9q9akDcT4t9fnc2E3PV19jRFfvl tKYuwI7+C55cDFAcpKMDfIWfC9I= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 602346a934db06ef7956bdc2 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 10 Feb 2021 02:36:25 GMT Sender: wgong=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B2EBEC43466; Wed, 10 Feb 2021 02:36:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: wgong) by smtp.codeaurora.org (Postfix) with ESMTPSA id D431DC43461; Wed, 10 Feb 2021 02:36:23 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 10 Feb 2021 10:36:23 +0800 From: Wen Gong To: Shuah Khan Cc: kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] ath10k: reduce invalid ht params rate message noise In-Reply-To: <76a816d983e6c4d636311738396f97971b5523fb.1612915444.git.skhan@linuxfoundation.org> References: <76a816d983e6c4d636311738396f97971b5523fb.1612915444.git.skhan@linuxfoundation.org> Message-ID: <5c31f6dadbcc3dcb19239ad2b6106773@codeaurora.org> X-Sender: wgong@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2021-02-10 08:42, Shuah Khan wrote: > 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); > } > } The {7, {1300, 2700, 1444, 3000} } is a correct value. The 1440 is report from firmware, its a wrong value, it has fixed in firmware. If change it to dev_warn_once, then it will have no chance to find the other wrong values which report by firmware, and it indicate a wrong value to mac80211/cfg80211 and lead "iw wlan0 station dump" get a wrong bitrate.