Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5310278rwd; Mon, 5 Jun 2023 01:26:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5kCqtQ827SJ3raAT6aPkXuTHvU/x3Njn9UqwDsqItszi0Ohtwx2RxwAruGev2EtPRxBumC X-Received: by 2002:a05:622a:1809:b0:3f2:384:9292 with SMTP id t9-20020a05622a180900b003f203849292mr8694236qtc.34.1685953592413; Mon, 05 Jun 2023 01:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685953592; cv=none; d=google.com; s=arc-20160816; b=aXkDrd2M3GO0qFTRB22EISoRsr4n5BMNj2zmD4P2GgRjkH77SXn6eEiiAe1iLtTPce 1BXki6JbxKD/+3fTTQhnlpxOAW5Of6NHnk07icuiqbZM1fi17baVinosv9SeyjsB9MHg n1ggnFB8Ocfz7hWd/kv/ubmjhcIOZb2vt+y4cnxfZSWBizIW7kGs/Wym31Po21Pysn78 2uk28gJOhEysPNh0tfOuvkep2HStveBXPl7XlH6LwhY9v5DJDeioMK8mALMAiBh2hrte qkURiLA+oHsZGSl9tVGku8KNd+DjeFBMTb5ex3Z7Sfeg0a38EPp7kRgW1MhrimOgqf3g EGdA== 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=a4Gt+4rL+gfVo9HPk8xjzJesblfnd8eW2cVA0TLwEbl+t8O9Z2W0LBIwAQIk8oAUV3 udJuirzriHW0In01CNTyOAImLvUH6e3fUZyAI4wMIih+pNhuD9Cm2077VsXDDPVxtQN4 gztm1Y8RzXe37oV8F+AD1kNGl/RIZ78JEN65QTMqS9QqW+EJLQTf5toEU4EVFvIdO2uz 5aDYROybDE6K7z/d/Sea9tTR95N7bqgrNaBSRnvEEphuPbrzjWbhg+3heW6b8RIhr6k/ bViJdEspJXflkYa8PAf+lFoPHFtknkHVIQwNNEP7bZTZ5eWpnjvj4biOMT1eIC25+RB3 8PSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=HkRK2uJa; 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 j14-20020a636e0e000000b00541bf36f2d2si5233091pgc.208.2023.06.05.01.26.24; Mon, 05 Jun 2023 01:26:32 -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=HkRK2uJa; 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 S229994AbjFEIU4 (ORCPT + 62 others); Mon, 5 Jun 2023 04:20:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbjFEIUw (ORCPT ); Mon, 5 Jun 2023 04:20:52 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A452C7 for ; Mon, 5 Jun 2023 01:20:49 -0700 (PDT) X-UUID: dcc39cb0037911eeb20a276fd37b9834-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=HkRK2uJa4zG388x534i04QhOb5TtlOuloqBUnxbSquK+XkQjEY6OOF5hPJDV2YpAIyX7bap+IlXxCQ8is23DleTt9gkrxIlHqzni6COzCi96+aWZk7WIztYoSJgvJLvj14br9sV296/sFcUX8i/RzZPTOehW0LPBfQh0iSUOe64=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.25,REQID:3aabe814-de34-40fd-9ee7-e4a92a194c70,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:d5b0ae3,CLOUDID:6f0f0c6e-2f20-4998-991c-3b78627e4938,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-UUID: dcc39cb0037911eeb20a276fd37b9834-20230605 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2020549867; Mon, 05 Jun 2023 16:20:42 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.194) 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 16:20:41 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 5 Jun 2023 16:20:41 +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 v2 05/10] wifi: mt76: mt7996: enable VHT extended NSS BW feature Date: Mon, 5 Jun 2023 16:19:42 +0800 Message-ID: <20230605081947.12804-5-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230605081947.12804-1-shayne.chen@mediatek.com> References: <20230605081947.12804-1-shayne.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RDNS_NONE,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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