Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp883764pxb; Thu, 19 Aug 2021 13:50:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGOPCm2cJxbLEfqxKPOUWn1eBWbPkPJilZ84QD2t6bXixwc9KljwRa6b7fNlZsGjuTcp9Z X-Received: by 2002:aa7:d40f:: with SMTP id z15mr18383617edq.113.1629406256445; Thu, 19 Aug 2021 13:50:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629406256; cv=none; d=google.com; s=arc-20160816; b=RtQyzQ5AIuyiX2L/iafU/sZb94Y8a07ZfyY9Lgiv+2MtEqtUpg3MSkfKwRX5dCK7UF 99lVi3EMiElpKHwhmwcL8X0SC9Rq6a/omz+X4paBkSBxaaCxQvQeujXmhjPUH00cylOL ZzKix6JjzmGJpHp6n3oCnnItYNnORH2TpuG40ZzASq1oFcLntOYu6nKex5hxnWjJuRth ZmJt7nJJFoM875BAjVGOEnU72d0eFhViedcXIWIn5SlLWwgdsnGEH2uQyf9k7HAXrlEt zpCW2k5md1xjUs7nC0+9HOOb4orA7VtUmNu8EhcSQTuFarNTIISnMazIBoKEPQ0wBFc1 ukOw== 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=/S1nKNxEg2BOoSIxHHkx9GBFRNQTOMWZ3pl0ewvYaeU=; b=fo+k0lP8f5QJ8vtbIFqR7b7HwqzZz3fgQBca3oRWHde4bknGh27kDhmqiZWu4XFX1K GOxB14oW2VxCGunSpOELffuKLqRdtqOL9SOisJ7WKMwbI7FKSlJa5LcraR63J6SBigqu j9EEFrH8jSgasvelsOAJl2+atHE4MB4UyLPRrgdD0bO1YuJzLIYU0f4Y0icTXVj/rL8r RvyIg7NKqGd+w52KiO/qpQiT05bnaami2zGxFgwMpteXGRHlDEQA+hwnAJ4Z0ormi1Ql /GHck++Wueq0ookQnbLwS3X42UH/QV1i6tYQuDDSbhHk0mYfxFx0eTKbkD4aUnNUtwTt LdNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=cdFw5ViB; 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 p23si4604787edw.186.2021.08.19.13.50.31; Thu, 19 Aug 2021 13:50:56 -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=cdFw5ViB; 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 S235628AbhHSUun (ORCPT + 99 others); Thu, 19 Aug 2021 16:50:43 -0400 Received: from dispatch1-us1.ppe-hosted.com ([67.231.154.184]:37302 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235563AbhHSUun (ORCPT ); Thu, 19 Aug 2021 16:50:43 -0400 X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.110.48.61]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id AE2B520061; Thu, 19 Aug 2021 20:50:05 +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 72A29C0076; Thu, 19 Aug 2021 20:50:05 +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 AF73C13C2BE; Thu, 19 Aug 2021 13:49:56 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com AF73C13C2BE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1629406196; bh=Wuh5dOzI8THzLhn2SA/cFW1xGtRgxaBEPaFiOuobEaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cdFw5ViBeZ3EFHD5ohx5StNNF7Pgiy9UoUwXDa7UFW2lS37FoXB+ytTbBpwvSrJ2t 7o51OeL5iV7paWdn9fZ2VS1ijLr7K9qJ5BFs9vecU6SLMzj7KR2olzK17scnyzS4za twjJ5K+JYgAgp3pA97SGl6SNU+asMtiBjKfutkJU= From: greearb@candelatech.com To: linux-wireless@vger.kernel.org Cc: Ryder Lee Subject: [PATCH v8 9/9] mt76: mt7915: add a missing HT flag for GI parsing Date: Thu, 19 Aug 2021 13:49:50 -0700 Message-Id: <20210819204950.12150-9-greearb@candelatech.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210819204950.12150-1-greearb@candelatech.com> References: <20210819204950.12150-1-greearb@candelatech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MDID: 1629406206-pzfPfx-yFnet Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ryder Lee The previous commit missed a HT flag. Fixes: 14b220c07188 ("mt76: mt7915: report tx rate directly from tx status") Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c index f5332e2c5e4e..10f4001d8d92 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c @@ -206,7 +206,8 @@ static void mt7915_mac_sta_poll(struct mt7915_dev *dev) rate->he_gi = (val & (0x3 << offs)) >> offs; msta->wcid.rate_he_gi = rate->he_gi; /* cache for later */ - } else if (rate->flags & RATE_INFO_FLAGS_VHT_MCS) { + } else if (rate->flags & + (RATE_INFO_FLAGS_VHT_MCS | RATE_INFO_FLAGS_MCS)) { if (val & BIT(12 + bw)) { rate->flags |= RATE_INFO_FLAGS_SHORT_GI; msta->wcid.rate_short_gi = 1; @@ -215,7 +216,6 @@ static void mt7915_mac_sta_poll(struct mt7915_dev *dev) msta->wcid.rate_short_gi = 0; } } - /* TODO: Deal with HT_MCS */ } rcu_read_unlock(); -- 2.20.1