Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2251845iof; Wed, 8 Jun 2022 00:31:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUQQrPcNUVG0uGT0B1QWPeRoqrnsKQMDoCzoAXFV+BEqT+3ZyF3i2/fgkyhaYNAfyYZdGK X-Received: by 2002:a05:6a00:240c:b0:51b:9bfc:90db with SMTP id z12-20020a056a00240c00b0051b9bfc90dbmr33602769pfh.24.1654673517808; Wed, 08 Jun 2022 00:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654673517; cv=none; d=google.com; s=arc-20160816; b=mDuYUGYxwpylxT9FXsuURNG6QhKN3U34OWFNEkW1ZPBz8pgWee79lN47p7HEBkk7Hq 8tMl3K37liWPnzex++56MgP+12BeVL0vLLfpyAHAxzvYvJE27dzAOHEPCF2QT6tD+tbT ZWyE6ze8TVTQ28DBO9nxYjM0GuZZYzm+RThguW7U8WTLJ3IpeWIkK5HKoj+Y/Rbpsoox hwJfoBI25B0gVy9MXAi36uH8+En+L9CR6RdrCUVv+h9fn/oEqMgbEPedN2ZIE/Dwjx1S FjjiDbsJcRseLDbdrceQnJ4kVzcdeRLsWR69hfVripJp0L6DlqOp9CT3l7e2+BIWNtQj pMYQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ek+kEccLPV3EYayxL5CO2TBAoknwwX5+4mcn+XqDL1U=; b=nsdpj2KZfK2ry9MiX4KUd8tiXa0mhmPAOVJh1VKdWN8fngtkcI2q8W53Q6/8l2ffPT hX2ynUUKYZxbrdsmVi226U8GL40jfGq13g7c4be/HKdVboASc6wCc2vxKROAI5dURmFg 9rkSTlOSBK4QP1M8jXkOUoYofXHzfZZswjtFHApCQrE7idzl57UMEZWg6uqa6QwjQmKU O1Fua5fPqOjpd39Dd6/3ZrXfRCytY075/2DzhvdGFbzh/VD1UycBpKmiFJyzAd1UPBg9 hSmMkXYOFpzhVV3WKy8KWzsglwBNuS9gA7eRe4hu3n4N8/u+Z2KlnZ6A+3y9zw8KwNjf iNFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=d0r0vgYi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a635549000000b003fc06718029si26565766pgm.324.2022.06.08.00.31.44; Wed, 08 Jun 2022 00:31:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=d0r0vgYi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385851AbiFGWrL (ORCPT + 99 others); Tue, 7 Jun 2022 18:47:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380124AbiFGViN (ORCPT ); Tue, 7 Jun 2022 17:38:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91E6223144F; Tue, 7 Jun 2022 12:05:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 26118B8220B; Tue, 7 Jun 2022 19:05:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F138C385A2; Tue, 7 Jun 2022 19:05:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628711; bh=enkXLlOMaVEcu6u+aCpOHVMFbZ5zMyBAllMcpO7dxzg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d0r0vgYiYlZhsvc9jJ6R+Iyn+X1YR9fRk49A4u4/ZxKbRge/MK2ikCyHoXnnH4tZq y7lcs15PG/yITIm1tBjEcQMKS1Q/eypvcm9wWvx5ST2cWFpFG2cgaJYTfVwsttOB30 EApQXeArKW47d7A5sj0gcyeNlRLdpkkn5ucqzJ84= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felix Fietkau , Sasha Levin Subject: [PATCH 5.18 429/879] mt76: mt7915: fix DBDC default band selection on MT7915D Date: Tue, 7 Jun 2022 18:59:07 +0200 Message-Id: <20220607165015.320549965@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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-kernel@vger.kernel.org From: Felix Fietkau [ Upstream commit 96c777708bcac53f73a1c079e416495647f69553 ] This code was accidentally dropped while adding 6 GHz support Fixes: b4d093e321bd ("mt76: mt7915: add 6 GHz support") Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c b/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c index 5b133bcdab17..4b1a9811646f 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c @@ -152,6 +152,8 @@ static void mt7915_eeprom_parse_band_config(struct mt7915_phy *phy) phy->mt76->cap.has_2ghz = true; return; } + } else if (val == MT_EE_BAND_SEL_DEFAULT && dev->dbdc_support) { + val = phy->band_idx ? MT_EE_BAND_SEL_5GHZ : MT_EE_BAND_SEL_2GHZ; } switch (val) { -- 2.35.1