Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2284806pxb; Fri, 25 Mar 2022 14:38:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4cGCBIwHUafYRY0hXioD6WXhxliXHaGMVCIwgH9lgfI6FB1vyJ6FG+VTf9FhXbudvwEOX X-Received: by 2002:a05:6a00:1381:b0:4f6:e4ba:2d64 with SMTP id t1-20020a056a00138100b004f6e4ba2d64mr12135929pfg.24.1648244312956; Fri, 25 Mar 2022 14:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648244312; cv=none; d=google.com; s=arc-20160816; b=0suP6tTajzewxppDgTLr/klA2OxP/xYCL9xpPZ2YAnLYf5hkZ3Wi03GHOL7Da99CTR wQW3dk9Af+xNzhnAaUsvp1wAA3WYhzWwc/4Iy+dJReqT4n+pd2WPMAm07K4d9ZAjmaTt pBZvF13r/XkVhGr0/E7i67+7ghSbT+A0dN3EjnG/9r4JLfhVFnIz01YXvlFqJs5I/J2S kS5uswHIC/EhTo8C/pZ5B07NcAIcKnXLoA9iKpKNyEvPyvEFYtn2K3e0Un70tbfokbp4 +YyxJpnt4uGlKPn62lvYfWFLGHsC8bZL6y9SeLoMcCUBtsNfLrC3Bvc3iYcEW72g6fRD UEuA== 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:to:from:dkim-signature; bh=FajLWPzSSUNNpTcSgxAIwqx9tkcYywLXwpvUA/jD8CA=; b=gVnJ4lG+DNsTmkuwFPQfG1t210SiKgdmNleODIeEIe6xCksdshwikTEjco7KpAMFuD +82jqMFwCtG5d/5jMtFEQtJ89QfkzrzYnUq76XeTxnTskZW3wQU57WiPBTd4IgVnxoDa IXWUwzJXtjsXJ2ThdPoIatSMMU71QNLozw0ei3fgmkJO90Yb7h4GNSY1jvISFNWsazm7 WJ+U8QZMlvQfA+2fV2XGztA9HzPL3LbeVrdxH3ZgIXG6g1x7dmJtDxoqaMLlQj/i8RA3 /lfuDU4syIYh6ZL7A1YvsRx3O2p3T82zNWe7sbG11/nYVci+ixsgukYs9utRghIWrP1p PShg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=lnjut5Xb; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c136-20020a63358e000000b00385fb1c9cc9si3485586pga.760.2022.03.25.14.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 14:38:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=lnjut5Xb; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 348771E530C; Fri, 25 Mar 2022 14:10:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233293AbiCYVMT (ORCPT + 70 others); Fri, 25 Mar 2022 17:12:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233208AbiCYVMQ (ORCPT ); Fri, 25 Mar 2022 17:12:16 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD7861FDFE3 for ; Fri, 25 Mar 2022 14:10:41 -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 :To:From:Sender:Reply-To:Cc: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=FajLWPzSSUNNpTcSgxAIwqx9tkcYywLXwpvUA/jD8CA=; b=lnjut5XbELCeVAoJnlfN+xwP8p 8eDi1zg1gQvuwRkDSMG36QAMBUXdoklM49M1sZmbzVUuifAazdfb2ncM5mE2qSth5ctyVC+v4OXn7 LB0Xlj+CqfObf4eXVKbUJ0QEeJ9NYGORurdtP2Q3sHw4A3hjsOpryVoZPO7ITK2PIR2M=; Received: from p200300daa70ef200dc11dea3d730df97.dip0.t-ipconnect.de ([2003:da:a70e:f200:dc11:dea3:d730:df97] helo=Maecks.lan) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1nXrCh-0001fW-2M for linux-wireless@vger.kernel.org; Fri, 25 Mar 2022 22:10:39 +0100 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 1/8] mt76: mt7915: fix DBDC default band selection on MT7915D Date: Fri, 25 Mar 2022 22:10:24 +0100 Message-Id: <20220325211031.24171-1-nbd@nbd.name> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 This code was accidentally dropped while adding 6 GHz support Fixes: b4d093e321bd ("mt76: mt7915: add 6 GHz support") Signed-off-by: Felix Fietkau --- 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