Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1570061rdd; Thu, 11 Jan 2024 03:16:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEACxWnHJoVhdwvsdZ8NIO8XoeS/xInaDUvpw3TNpV3/Mymc0Rnaq/mcE2M6x4oRFhl6Ex6 X-Received: by 2002:a05:6a20:dd96:b0:197:6c6b:637e with SMTP id kw22-20020a056a20dd9600b001976c6b637emr786124pzb.120.1704971811483; Thu, 11 Jan 2024 03:16:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704971811; cv=none; d=google.com; s=arc-20160816; b=BpGvvtOEWmqBPmrdt3zfKW7L4lRYNjPCtV8Pya0BouASjFA6u4+g+yRjhXvBogyTpD 1x3/sVzO/YrtL+PzGMG5hNi0Tnb+NIzsq3T248tyAv/ocCMfLptsYO+X7jRSI87RGU3D DDfaifNasaMwJQ7UmqQ1UpWFzx5KqZiKvnuroJCPrJA97iEr77j+vWLcXARME/n0M3Tz BziGsG3vzs6hbFMpiFASw1O3v+U18E++r+WvIiBoHSylYLkSE7cfG20crV9npyXkplYZ 9RgD6511xxZWh5wwOWd14Iqwiw+KEa5oz0R7Nl5fbD/6a/Y/+O9kOAo/RRbgIzq9mG1/ n+BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=0TVjw6cvQ2NvOflfBcZbvE+i7xBhhjd1AASqV8UdrqU=; fh=KJluyo8GkdQ0PKVYci8ap2SDXDaX7tsW4mnPNVybQI0=; b=yMDTqQGCMSS6uS822JyhfUodvaLKrFj6HekFOcA6bu/QUy1d+5CF7p23oNoO+eRnrx AjC9eADdg4hZT7Zfoeep6zsWWTnXJhNRw+l8Cli4J0DzqGc1OxPDpdaW4dv3QwxeCnZq hc5UU6d0zu1r2BJ/JUuNlSrmIHouapVT9A5J6C6ZubbSPIAwdEguRBXd7Q++HH1LALES oOi5uRVw7iXdR84KPunp594myau5Inw6SZdroKXftdNbYnLoOfA0bRfnV/vaeOAyomxu 6/hJkX0hYzrofY3Bxj52rUjKaYS7tEr75uUad6s//ci5gDF1Janq5cVPI+RV+NLStKFx MoAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GQSfgGDw; spf=pass (google.com: domain of linux-wireless+bounces-1709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1709-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id cj15-20020a056a00298f00b006db337fa711si831918pfb.174.2024.01.11.03.16.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 03:16:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GQSfgGDw; spf=pass (google.com: domain of linux-wireless+bounces-1709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1709-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B9DC2B276E0 for ; Thu, 11 Jan 2024 11:13:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4914E156E7; Thu, 11 Jan 2024 11:13:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GQSfgGDw" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FDB8156E6 for ; Thu, 11 Jan 2024 11:13:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF248C433F1; Thu, 11 Jan 2024 11:12:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704971580; bh=sVv7j68dcdbBAftknGw/qL2roISAV1FGQQP7EEfzQHI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=GQSfgGDwku3tLvXFbKAQRUyRlpv1bIgp8C2oXJbtTMlqvVqvsnQrGjEG2A5aVQaxe Mt/8/Vx3EabQa1YZGyUpSRFQ4YB3lTsLfJGeprQTe76kgXFQRGeKgB/U2qyMXd/g1v WD7RkSTESsnY525HC//GVeqiiuq6RCPdE7e5SapJqs+TIV5s+aD+yUH08RvKgISNjd AYfx9zztaiUSeQdymzS8Cz3sVCGq9QnKmB/BMGWODctrFKc5oYW+LXGAJt1/i/wfMu +a4vb7rV8HFVjNP2rCnCvUxaIl337gbtEqn/lrVeloMmaDAkGAtNXWqnEkCsyPc45b thDVjPvPBb0Pw== From: Kalle Valo To: Lingbo Kong Cc: , Subject: Re: [PATCH v3] wifi: ath12k: report tx bitrate for iw dev xxx station dump References: <20231225080723.9518-1-quic_lingbok@quicinc.com> Date: Thu, 11 Jan 2024 13:12:57 +0200 In-Reply-To: <20231225080723.9518-1-quic_lingbok@quicinc.com> (Lingbo Kong's message of "Mon, 25 Dec 2023 03:07:23 -0500") Message-ID: <877ckgazt2.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Lingbo Kong writes: > The tx bitrate of "iw dev xxx station dump" always show an invalid value > "tx bitrate: 6.0MBit/s". > > To address this issue, parse the tx complete report from firmware and > indicate the tx rate to mac80211. > > After that, "iw dev xxx station dump" show the correct tx bitrate such as: > tx bitrate: 104.0 MBit/s MCS 13 > tx bitrate: 144.4 MBit/s MCS 15 short GI > tx bitrate: 626.9 MBit/s 80MHz HE-MCS 6 HE-NSS 2 HE-GI 0 HE-DCM 0 > tx bitrate: 1921.5 MBit/s 160MHz HE-MCS 9 HE-NSS 2 HE-GI 0 HE-DCM 0 > > Tested-on: WCN7850 hw2.0 PCI > WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > > Signed-off-by: Lingbo Kong [...] > +static void ath12k_dp_tx_update(struct ath12k *ar, struct hal_tx_status *ts) > +{ > + if (!ar->ab->hw_params->single_pdev_only) > + return; I'm not really a fan of using single_pdev_only to check for other features. Basically what this check implies is if we are using a mobile chipset or not, right? I can't test QCN9274 right now but why do we need this check? I would hope that the firmware interface is designed so that this check is not needed. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches