Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5461987rwb; Wed, 7 Sep 2022 03:17:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR51zUKVDfb3t/8WP/yNc15Hi7UQ6SRZwAKLzpEzf42rzcqXZFbeqpuA4I2wHAv+XpiiG05E X-Received: by 2002:a17:907:e9e:b0:73e:933d:1c3d with SMTP id ho30-20020a1709070e9e00b0073e933d1c3dmr1816998ejc.622.1662545866513; Wed, 07 Sep 2022 03:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662545866; cv=none; d=google.com; s=arc-20160816; b=fkL5Vn+ZyAQ47x8C91TaND3kvB6hCueqxsWpWyDk5tpojRY8J6C6DOpOTgnj4hL2wE 3taL0/43cyWfHhb44RSsZ6ifJt3KdQKTi1+Q/FNSFLRZn7Y0dCwxKgKp29UA0qKSFCj/ s8z7lO0vE6L4A5f+8myDTJ03I42G6xJdjPiqH6A6rdrt/v9n76HgDRRUPOZ/DZ0/4zDX GqCP/WB7nMZrTuE9W4/e14b+2jrALRQ4F65AyeJYijOwU3Nc5wjmVWWhGxEgklSd44AI eRAsMuDnPqtZHFJ2+gjd28K1aAHW7FjQdKEPlAdywXQoND3wB1chmjIbVl3MWxSVI4uL v+og== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=z96JYwHkG5ZMX+ITR927kcomX9VLur5EBNe6U2ylMag=; b=JPDSSH/fzPHG8LeS7dAG43151ActS2R6QHXeLhy8JKtUKLRnuB9q/zlyObe3Q40bEx OHwJIzXoOINDg7hHp2hgOk0XC4eHF709OKQntLQpZ1L9Ct4bJJvKdBvyP/Ud+pxfER7I NiZHcAkLcx6LL1RJG2poXDARtG2dxI33DzS3QlHPZWC48w1HeYkiO6lARuCcRBvObtMV cgRJnQ6ctZrxnkHOpOWs+JnOTzvf6u2UlYQutzmeutv/1F21N3CO5RIE8M8X/tpzpIFw tw7Zo0XoXacLVOaSdSfhMltAy/ytUpbFQomlAhbu3E2TZ6KxRBUPrcRV21J2Dcdv0vCk myzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Tn0uzJ6S; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp20-20020a170906c15400b0073d6e50e564si10968007ejc.348.2022.09.07.03.17.25; Wed, 07 Sep 2022 03:17:46 -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=fail header.i=@nbd.name header.s=20160729 header.b=Tn0uzJ6S; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229787AbiIGKKs (ORCPT + 64 others); Wed, 7 Sep 2022 06:10:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbiIGKKp (ORCPT ); Wed, 7 Sep 2022 06:10:45 -0400 X-Greylist: delayed 1090 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 07 Sep 2022 03:10:43 PDT Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1643A8C47F; Wed, 7 Sep 2022 03:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=z96JYwHkG5ZMX+ITR927kcomX9VLur5EBNe6U2ylMag=; b=Tn0uzJ6SU3liCRCp8WCA7tQ48x Ix2jUf333YaxgYTNueoYbnM0B1C71oMw4ASzWoOdWjZkQDrpCe+kzWAAjpLwfVhdY+6VrIEuVgn3n 0nv4VwaPl9qZcjS6e4DJx2v6STz72REBCQz+yTmd8e7NWp7O1N0xVOCU8waH8ulTgFgk=; Received: from p200300daa712e200cd0c7d6e3308f16b.dip0.t-ipconnect.de ([2003:da:a712:e200:cd0c:7d6e:3308:f16b] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1oVrjR-002a8O-Uz; Wed, 07 Sep 2022 11:52:30 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: kvalo@kernel.org, stable@vger.kernel.org Subject: [PATCH 6.0] mt76: fix 5 GHz connection regression on mt76x0/mt76x2 Date: Wed, 7 Sep 2022 11:52:28 +0200 Message-Id: <20220907095228.82072-1-nbd@nbd.name> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Some users have reported being unable to connect to MT76x0 APs running mt76 after a commit enabling the VHT extneded NSS BW feature. Fix this regression by ensuring that this feature only gets enabled on drivers that support it Cc: stable@vger.kernel.org Fixes: d9fcfc1424aa ("mt76: enable the VHT extended NSS BW feature") Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mac80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mac80211.c b/drivers/net/wireless/mediatek/mt76/mac80211.c index 253cbc1956d1..6de13d641438 100644 --- a/drivers/net/wireless/mediatek/mt76/mac80211.c +++ b/drivers/net/wireless/mediatek/mt76/mac80211.c @@ -267,7 +267,8 @@ static void mt76_init_stream_cap(struct mt76_phy *phy, } vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); - vht_cap->vht_mcs.tx_highest |= + if (ieee80211_hw_check(phy->hw, SUPPORTS_VHT_EXT_NSS_BW)) + vht_cap->vht_mcs.tx_highest |= cpu_to_le16(IEEE80211_VHT_EXT_NSS_BW_CAPABLE); } -- 2.36.1