Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5785247rwd; Mon, 5 Jun 2023 08:31:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Ih0lyBpMYhimm8DXdD2mX0P7gkRQ8q3Pky1ud6rwz92rlH9DGnhOdAZWZhxZwZLg2RUxw X-Received: by 2002:a05:6a20:258b:b0:102:a593:a17c with SMTP id k11-20020a056a20258b00b00102a593a17cmr9029390pzd.0.1685979089569; Mon, 05 Jun 2023 08:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685979089; cv=none; d=google.com; s=arc-20160816; b=nUBal391rCOabReeAzzqsuF4WRsk68MjLIPjMusLk/NWexatvOoGEu/5PfRQMwPvWB aM0N1Vb4S2I5JAcdS2Y9SUcTgOF0MeKgvW/3DuXcN9XBG5UjI+aAb+8DBbk8Byn2uuE9 I9+AOWANK2GM3CeElkl7S3RSDRyU/ibM1i+bz5Pd4ndwRuNXm+XjXwAP6wgA9ohh5UI3 hTgcu3DJaXK3AGEDGd/BOwOXlvLHo3fw7womjjf8Ltv5X4u0kHg4Ue5AKsDGA6d+CLdz KW7lgMgLeOr3SYkTq7A7cl8n8otmleqf+WEIG7vja5pfzrpUmvCNupx7FS+OT98HfWsP x+LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=2/is1QcOB7DUDxr9dMCEWLGgopjOcL59vT6R4xIDfaM=; b=kcnRno2k1u0doJiH8mzX8YbpbjTGV/TyYzG1qQ45VE6s6pcLoRaoXWChTPOAG1uK1I FS/BoIly+tUtGawUj2kEFXIN/gYZFhivb9NlVQ/mb5gWQk5sUM1z4YBET56SplLbRy7W 8Kz4kYuCGPeUQ8i3l3vTK5Bt/REy+ObXjrIUIbwauQPzSq6N3pWZljOj78X5PlINCCRu mX1dFOE/pOaUdkB4JpNue9LjHbugRjoJ40dug1XYvSzhxcqx78Fzd4nyyorOrCVY0acc WmuGzyAVv5sy87XXyF1qDGjUpK8JGfjJrXDGOvlfQE4cF6Nlc87t0ycGeoyWiZ2jyCdI VcCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TsUeXzV1; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x6-20020a63b206000000b00530b70aac4asi5780766pge.91.2023.06.05.08.31.20; Mon, 05 Jun 2023 08:31:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TsUeXzV1; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234701AbjFEPWO (ORCPT + 62 others); Mon, 5 Jun 2023 11:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231854AbjFEPWI (ORCPT ); Mon, 5 Jun 2023 11:22:08 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69C72196 for ; Mon, 5 Jun 2023 08:21:59 -0700 (PDT) X-UUID: b26d9f9803b411ee9cb5633481061a41-20230605 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=2/is1QcOB7DUDxr9dMCEWLGgopjOcL59vT6R4xIDfaM=; b=TsUeXzV1Qw1PP94cWugDT4B8vRnXpG/jRzRaXq7hDELkXqGLiSz0xfrNqQ9Ttn9DuN3+llJWfRIWVwUh3KkAgTdjCIs1CbkUbk5ITuRkQI/b79NpqUkglL4yRdmAZ60E0lLDNYk0fJe3HFh69kJUcLHEjzD4SmXTi6DLitLAbgg=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.25,REQID:1b2717d0-5a5e-46f8-b532-1537562fe57f,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:100,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:100 X-CID-INFO: VERSION:1.1.25,REQID:1b2717d0-5a5e-46f8-b532-1537562fe57f,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:100,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:100 X-CID-META: VersionHash:d5b0ae3,CLOUDID:be5d713d-de1e-4348-bc35-c96f92f1dcbb,B ulkID:230605162100PWN4I49L,BulkQuantity:7,Recheck:0,SF:29|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:41,QS:nil,BEC:nil,COL:0,OSI :0,OSA:0,AV:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-UUID: b26d9f9803b411ee9cb5633481061a41-20230605 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1008782415; Mon, 05 Jun 2023 23:21:51 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 5 Jun 2023 23:21:50 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 5 Jun 2023 23:21:50 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , Bo Jiao , linux-mediatek , Peter Chiu , Shayne Chen Subject: [PATCH v3 05/10] wifi: mt76: mt7996: enable VHT extended NSS BW feature Date: Mon, 5 Jun 2023 23:21:36 +0800 Message-ID: <20230605152141.17434-5-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230605152141.17434-1-shayne.chen@mediatek.com> References: <20230605152141.17434-1-shayne.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Peter Chiu Set SUPPORTS_VHT_EXT_NSS_BW to let the max BW capability correctly be parsed by different devices. Signed-off-by: Peter Chiu Signed-off-by: Shayne Chen --- drivers/net/wireless/mediatek/mt76/mt7996/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/init.c b/drivers/net/wireless/mediatek/mt76/mt7996/init.c index 004575a0479b..8247153d082d 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7996/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7996/init.c @@ -217,6 +217,8 @@ mt7996_init_wiphy(struct ieee80211_hw *hw) IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ; phy->mt76->sband_5g.sband.ht_cap.ampdu_density = IEEE80211_HT_MPDU_DENSITY_1; + + ieee80211_hw_set(hw, SUPPORTS_VHT_EXT_NSS_BW); } mt76_set_stream_caps(phy->mt76, true); -- 2.39.2