Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp774831pxj; Fri, 11 Jun 2021 11:07:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2v1jGjIEoGHb7bdQQtFthiDyKGd8CiQwQcTjwJcfg9/YWvr2xtC/8VK5WV7qyEn7ve8sb X-Received: by 2002:aa7:dac3:: with SMTP id x3mr4979340eds.287.1623434868512; Fri, 11 Jun 2021 11:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623434868; cv=none; d=google.com; s=arc-20160816; b=aWGQLCyrnuu2nXXccHsAEnX0DL0ydiOntdmW0aJfVD6vgLh0AoaRfOzYhqgcfUdlY9 i17+HeVH+UM+Ey1oq8K4Rk/MmHKmidOCaFjVu6be2xWOF9HilsSXntOruN3x1fOdFlIO Q90+T+IXlkds71L0YL2UQgktsO3jIB8wtfh7OC80o/E2Px30qeXZs7CbmvBZPgmmiXky JC7at78LxY6YciMIUPy+veo7bDMzvEMfRWry3ap3HQeD2u0L5osearjf86W2IS06zlYj Rnv36h/trH7Uq/Hi6EcqtDuYHDqFQCSVNZR1CEpLX69YTGkSdvrcPJ+QyNFV+W1DU9hi VCDg== 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=0vgFkjo938ch0UVqCEnQqRzwhBleM5c/bkpKWSQlo7I=; b=KQFBoqb2eF3tkWcbICrUTfy7ZsUIuy2w7sgDt35TYrhKx1JkpZ5MjIyTkGAY4XlLV3 YZDbOx78juRRrhS9EPiNx2XecXRrxzrNLSgCxm6EtNWMKVgKTvvUNatWMmH3eaTBPEA5 6clIKgiM/hvhjQlhIpLVW59ocBRH+uAEfzll/w9Wb2Riloz3NJip9DWOuLsR/z/RlKdN ReexxfNkXDWHjAo5RhvI1bxUc4NR+sqx9jKctlI9J6LV4zbxWplueJAQz9OoWIacHaJq NSg+qD/g9pq+xJ1qAbvKjXWwo3g7qrlOr64GuRo9BrtPzZKVNEOB4tE1is2j9OUA0ycI 1xuA== 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 t7si5330189ejx.540.2021.06.11.11.07.20; Fri, 11 Jun 2021 11:07:48 -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 S231618AbhFKSGh (ORCPT + 99 others); Fri, 11 Jun 2021 14:06:37 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40325 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231680AbhFKSG2 (ORCPT ); Fri, 11 Jun 2021 14:06:28 -0400 X-UUID: 5a8e4727aee34bb89d13b1ce25b79835-20210612 X-UUID: 5a8e4727aee34bb89d13b1ce25b79835-20210612 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1793685457; Sat, 12 Jun 2021 02:04:25 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 12 Jun 2021 02:04:23 +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; Sat, 12 Jun 2021 02:04:23 +0800 From: Ryder Lee To: Felix Fietkau CC: Lorenzo Bianconi , Shayne Chen , Evelyn Tsai , , , Ryder Lee Subject: [PATCH 1/2] mt76: mt7915: fix IEEE80211_HE_PHY_CAP7_MAX_NC for station mode Date: Sat, 12 Jun 2021 02:04:20 +0800 Message-ID: <28077c152c43d40f78252efb39d77ed5fca18028.1623434432.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 value of station mode is always 0. Fixed: 00b2e16e0063 ("mt76: mt7915: add TxBF capabilities") Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7915/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/init.c b/drivers/net/wireless/mediatek/mt76/mt7915/init.c index 72b65799cc1a..4e02b4e45042 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/init.c @@ -574,6 +574,9 @@ mt7915_set_stream_he_txbf_caps(struct ieee80211_sta_he_cap *he_cap, if (nss < 2) return; + /* the maximum cap is 4 x 3, (Nr, Nc) = (3, 2) */ + elem->phy_cap_info[7] |= min_t(int, nss - 1, 2) << 3; + if (vif != NL80211_IFTYPE_AP) return; @@ -587,9 +590,6 @@ mt7915_set_stream_he_txbf_caps(struct ieee80211_sta_he_cap *he_cap, c = IEEE80211_HE_PHY_CAP6_TRIG_SU_BEAMFORMING_FB | IEEE80211_HE_PHY_CAP6_TRIG_MU_BEAMFORMING_PARTIAL_BW_FB; elem->phy_cap_info[6] |= c; - - /* the maximum cap is 4 x 3, (Nr, Nc) = (3, 2) */ - elem->phy_cap_info[7] |= min_t(int, nss - 1, 2) << 3; } static void -- 2.18.0