linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: greearb@candelatech.com
To: linux-wireless@vger.kernel.org
Cc: Ben Greear <greearb@candelatech.com>
Subject: [PATCH v2 08/11] mt76: mt7915:  Fix SGI reporting when using tx-overrides.
Date: Thu, 22 Jul 2021 13:28:31 -0700	[thread overview]
Message-ID: <20210722202834.6826-8-greearb@candelatech.com> (raw)
In-Reply-To: <20210722202834.6826-1-greearb@candelatech.com>

From: Ben Greear <greearb@candelatech.com>

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 <greearb@candelatech.com>
---
 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 1ef67608d122..d5747d61404a 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


  parent reply	other threads:[~2021-07-22 20:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22 20:28 [PATCH v2 01/11] mt76: add hash lookup for skb on TXS status_list greearb
2021-07-22 20:28 ` [PATCH v2 02/11] mt76 - mt7915: Fix potential NPE in TXS processing greearb
2021-07-22 20:28 ` [PATCH v2 03/11] mt76 - mt7915: Move TXS parsing to its own method greearb
2021-07-22 20:28 ` [PATCH v2 04/11] mt76 - mt7915: Allow processing TXS for 'NO_SKB' pkt-ids greearb
2021-07-22 20:28 ` [PATCH v2 05/11] mt76: mt7915: debugfs hook to enable TXS for NO_SKB pkt-ids greearb
2021-07-22 20:28 ` [PATCH v2 06/11] mt76: mt7915: Support parsing TXSFM 0x2 greearb
2021-07-22 20:28 ` [PATCH v2 07/11] mt76: mt7915: Add support for tx-overrides greearb
2021-07-22 20:28 ` greearb [this message]
2021-07-22 20:28 ` [PATCH v2 09/11] mt76: mt7915: txfree status to show txcount instead of latency greearb
2021-07-22 20:28 ` [PATCH v2 10/11] mt76: mt7915: Report tx-retries greearb
2021-07-22 20:28 ` [PATCH v2 11/11] mt76: mt7915: add a missing HT flag for GI parsing greearb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210722202834.6826-8-greearb@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).