Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1705951pxy; Mon, 2 Aug 2021 08:17:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJgeo6v6+S0BkvSYhgHtMexvp20E6LRyCbsZiDciOiVmY91nhgU9VsR79zFaoIAnho7yeF X-Received: by 2002:a92:ac0b:: with SMTP id r11mr8645819ilh.44.1627917457578; Mon, 02 Aug 2021 08:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627917457; cv=none; d=google.com; s=arc-20160816; b=rTFxSqK4drtslTGgx5tdQ83de3Ics664HFBMtpn4z1YdbbXMFLbaM7An+gRZyQGa+C fhT/wPP2098Ye6GSUCZwWsUSuNg7RDyewzWFJg/J+cpZHBKC5MtaURzM169WWrRfsKTe d7p0OE4oEMHC1IbtDLJ0cBySjsh4YH3YaLaDcr5O9Zej+KNxhoYTQvJjN8nsXOkisX2j qr1jFxMvXoe5GgX3O2cMXW93zdXmy7PdJfqYkZiHdGLPp2SpMbkl8225xOH77j4ARMI4 F2kcBDYFi19Gt8/97Tklpljq06/sOr5v2ISnslnVuiQQiDfGw4Yqkr5KwxW04l2WB0xE eDfQ== 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=hSdw9m1pwUS7O5pJt2vx562sqEPhGLI1RxIOFbSfGjHwtGKZhvwu/Y/ylO5oOltrJt 45atgbqUyyz4KJExMxGawbEeR+zZ58T89xfbZMMNoSHH7ur7y3kNaLCh8mhq1jlAotF8 Rtrl9QccpZtlpEIh/5DarEOsBUkfzKH2CgOKxZyI+pU1zWlKMyoVIw3VRLKFRCe8U1lb v8bJbsvqxRguFN0NGbCXxqm0Rwif5iUGtJn1bqdPwsIyVexWiZBkUc7IjWnJBIMU6Mou thutOu1fLxM+9xFgOzGgf+UNYvG0gcVve7NPO28UoNbSim8vx6zRGbavNNsKUw/zHdgi M+Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b="kByS/yrN"; 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 l4si10796040ilf.23.2021.08.02.08.17.25; Mon, 02 Aug 2021 08:17:37 -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="kByS/yrN"; 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 S235066AbhHBPRJ (ORCPT + 99 others); Mon, 2 Aug 2021 11:17:09 -0400 Received: from dispatch1-us1.ppe-hosted.com ([148.163.129.52]:47130 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234835AbhHBPRI (ORCPT ); Mon, 2 Aug 2021 11:17:08 -0400 X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.7.67.124]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 0A97E1C007C for ; Mon, 2 Aug 2021 15:16:58 +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 DCD5B940027 for ; Mon, 2 Aug 2021 15:16:57 +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 16DDE13C2BC; Mon, 2 Aug 2021 08:16:55 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 16DDE13C2BC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1627917415; bh=2Es1FyVE3jgX+6477awy6BaMUBBUCRXlgW8KqeWJyjg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kByS/yrN8Nrsjgl7dd0UPeZK6wLqfSZtS242C5hO+Z1ym71rHyx8CONZsZKcatPz4 QtOwcQFM0GDpipaPoAzQRG63MdB4oGQw8lPVJmpQqaSfWsVGpNDZ5Er3if85U4g5M+ HlFX/mGnNsybH9E5dBHaGAdTclIRPQfFRHY6y65w= From: greearb@candelatech.com To: linux-wireless@vger.kernel.org Cc: Ben Greear Subject: [PATCH v4 08/11] mt76: mt7915: fix SGI reporting when using tx-overrides Date: Mon, 2 Aug 2021 08:16:40 -0700 Message-Id: <20210802151643.32394-8-greearb@candelatech.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210802151643.32394-1-greearb@candelatech.com> References: <20210802151643.32394-1-greearb@candelatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MDID: 1627917418-aycyxJasiWhg 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