Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp99141pxt; Wed, 4 Aug 2021 06:51:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCMrRtT1d71XbVUX/PdqRASYPVVHOPyZGLpsowX3hCNaSRL8dtJ1nvBKVm6tyX4OWfL5os X-Received: by 2002:a05:6402:26c6:: with SMTP id x6mr22118892edd.175.1628085074070; Wed, 04 Aug 2021 06:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628085074; cv=none; d=google.com; s=arc-20160816; b=GePEiP33gLPEu9nm/fpN/ihmEffNn5JLvKLJa6rwUhzOX59d27GVKhURck45dwal9n FrIfugscb9z2RiHsd4EvAK/KXMKqNaT98pYz2Ztu28yjo1bewQnd44e7HDpi4ewwh0m/ bu8HtwePduAlRatwO5TelcrP2wpW7vtmLRzomlJWhwQ9gR/h2EJRwCBw7vhNfYYwSvJB tFSLvC9+kQurXIZCMzB2S6vBuPBtHpZBHSBcJVBxEsiNIl+MjRAeN2wbwN3OmySKCdmC rqYf/g3toC7Cn0U981iFtrAbyJC5hQZW8tHZFye3kc/qO9V52xMm9KOqKJ5DELEVJYCK Z/eA== 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:dkim-filter; bh=Io0IqM9w84L7TNZeD/k4xGJEYWsiyQk/XgNo487hUQY=; b=DdoC2w6M4rJTyo59qHs9CiGkNUf9zENEXDQdbUOUL3l/k9jYvbkgDmNpmcyyYAdQEU BpIfvrES/aWL9jDadAXy5e3Z+Vz/GerdKUwn7o5Z6j7P4+EhBBl5359yJLCTtLeHRweM fe4bFuuCrE8q+CyX+fkKflJCCP2habKnu/1eZkGuO3jaMZf1O96l4TPEROxjyE2BWbAy rIVc3CGsgOHKggqZAM/gj18y6w6auLtScUvF96+wAPjNUASsvVKXH138hZU0f5xXYZhY 349pvYSW+vrVUkIiENANQX9T0Dvf2BEIbeLr6nq6Wjy0h0lQs3213m/3HK3Tw308l/D4 r49g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=qdf2O53x; 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=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si1812908ejl.332.2021.08.04.06.50.50; Wed, 04 Aug 2021 06:51:14 -0700 (PDT) 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=@candelatech.com header.s=default header.b=qdf2O53x; 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=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238509AbhHDNpa (ORCPT + 99 others); Wed, 4 Aug 2021 09:45:30 -0400 Received: from dispatch1-us1.ppe-hosted.com ([67.231.154.183]:34026 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237987AbhHDNp2 (ORCPT ); Wed, 4 Aug 2021 09:45:28 -0400 X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.110.51.175]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id A4D2A2A006D for ; Wed, 4 Aug 2021 13:45:14 +0000 (UTC) Received: from mail3.candelatech.com (mail2.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 7A6E98C0080 for ; Wed, 4 Aug 2021 13:45:14 +0000 (UTC) Received: from ben-dt4.candelatech.com (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) by mail3.candelatech.com (Postfix) with ESMTP id 2760013C2BC; Wed, 4 Aug 2021 06:45:14 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 2760013C2BC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1628084714; bh=2Es1FyVE3jgX+6477awy6BaMUBBUCRXlgW8KqeWJyjg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qdf2O53xkPooug5QchWveYiQF0G2peswYtXtUMpOIRgJaX4fNLSm9mjtlHO+SvZpp d1uP8Y5Tm0J4tyEno5UZHjOaMO8YDZSutW30/QMa3QHAeTweLAhoxV2VQUrwKmx7xA jEgGohJRQP1eBbIQA+v+ziF6WNp/BnvEl8rm2jc0= From: greearb@candelatech.com To: linux-wireless@vger.kernel.org Cc: Ben Greear Subject: [PATCH v5 08/11] mt76: mt7915: fix SGI reporting when using tx-overrides Date: Wed, 4 Aug 2021 06:45:02 -0700 Message-Id: <20210804134505.3208-8-greearb@candelatech.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210804134505.3208-1-greearb@candelatech.com> References: <20210804134505.3208-1-greearb@candelatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MDID: 1628084715-U7xkcAXBFf_O Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ben Greear The station wtbl logic to read rate-ctrl settings does not work when fixed rates are used. So, read sgi settings from the txo configuration in this case. Signed-off-by: Ben Greear --- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c index 01f4aa7a6e88..6dd86dbe3e08 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c @@ -176,6 +176,15 @@ static void mt7915_mac_sta_poll(struct mt7915_dev *dev) rx_cur); } + /* If we are in tx-override mode, then wtbl doesn't provide useful report + * for the SGI/LGI stuff, so just get it from the override struct. + */ + if (msta->test.txo_active) { + msta->wcid.rate_he_gi = msta->test.tx_rate_sgi; + msta->wcid.rate_short_gi = msta->test.tx_rate_sgi; + continue; + } + /* * We don't support reading GI info from txs packets. * For accurate tx status reporting and AQL improvement, -- 2.20.1