Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1046579pxv; Thu, 15 Jul 2021 23:51:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjp3MlIsDrm+7xXeS9JFxMGie+vwykHpBVf2Nv7KikBvmUtGiNGfa2elN0etyE3Nz40te6 X-Received: by 2002:a5d:9ccb:: with SMTP id w11mr1118702iow.174.1626418305630; Thu, 15 Jul 2021 23:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626418305; cv=none; d=google.com; s=arc-20160816; b=AE5yRpvcBGetGStDVhgaxckebxCLSsyeSKpDAyAx16qkT4GFahpuJx888AunftfRRP Rl3d0SSjNADXd8+RllJiIxsnNeMMr1hbSzNFoqDliochO77aMPI9cOP//0Btm2HdW+bf 3Q6l9R5swmwflJoxWzTSJQA8udPfe85qtAYHaURMEB2QMHzqa1B+Um3vqQArXU5VT4hn jL+L5VhS7eY8hudX7X1oa8lEh25YIy3kAKJzxEE/sOaH83KQuB+ER6UUx61lJfT2OMk5 SA+HdRLdrcl3lfREg9hKVJ76dOuOJ7D5alQl4i+qYwu9McrAujqcEtgEt2bzTLi1g5uH 2Jlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=tAHkNlwEvN31PFoYBo8uJ8B2bo4VoDPJoW8nhzmxJmQ=; b=lbRZDqzQLDBHyVnldVGka0ou2MYfIp6VMFD+DKr2OZxQF4U2uKVwe6ebkxgUG98K/9 19PB4v9gJWmbLefQkoTRUzDv6UiIwpe5SdVjgAvBvTL6EEpAGNvuRajS9Zf2QHPeL2Yk wUrDimKvjoux9wjbViZnir+z3PLVGQpHMY2FFFq7ON7+fF81wI5VhcRAqQx5V+7bjkDJ 5JRxCVP94O2GOh3pTZ+H78mTd/1yOfoDU/0VfOPb2uZ5uDQGGW7vgWbeisKgdOexgVbv azctkO/CDUNkC1Rqo4UiHAl0TYNjYlnW2osGZ8FU9EEEUidW67dc5KjM1akC0dNYkl9S 7p9Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si9354922ile.21.2021.07.15.23.51.29; Thu, 15 Jul 2021 23:51:45 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234986AbhGPGyF (ORCPT + 99 others); Fri, 16 Jul 2021 02:54:05 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:59670 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234855AbhGPGyE (ORCPT ); Fri, 16 Jul 2021 02:54:04 -0400 X-UUID: 8449c35c3a0243deba0c0e4d390be4ee-20210716 X-UUID: 8449c35c3a0243deba0c0e4d390be4ee-20210716 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 656483265; Fri, 16 Jul 2021 14:51:07 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 16 Jul 2021 14:51:05 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 16 Jul 2021 14:51:05 +0800 From: Ryder Lee To: Felix Fietkau CC: Lorenzo Bianconi , Shayne Chen , Evelyn Tsai , , , Ryder Lee Subject: [PATCH] mt76: mt7915: add a missing HT flag for GI parsing Date: Fri, 16 Jul 2021 14:51:04 +0800 Message-ID: <33b73201d9444cbea54ca527e2c7910e8d32a177.1626417924.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The previous commit missed a HT flag. Fixes: 14b220c07188 ("mt76: mt7915: report tx rate directly from tx status") Signed-off-by: Ryder Lee --- @Felix, please help to fold this into the previous commit. Sorry for the inconvenience. --- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c index b74db3e61098..4c17d1169108 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c @@ -205,7 +205,8 @@ static void mt7915_mac_sta_poll(struct mt7915_dev *dev) u8 offs = 24 + 2 * bw; rate->he_gi = (val & (0x3 << offs)) >> offs; - } 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; else -- 2.29.2