Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1831042ybl; Thu, 30 Jan 2020 06:48:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyaRDJe1WgtZAz9aBNHt/iplWOmfPcrfdaEYWixcmyOZO8r98f2xJW+3KfTTmi7lER/eBhT X-Received: by 2002:aca:4fc2:: with SMTP id d185mr3127028oib.33.1580395700150; Thu, 30 Jan 2020 06:48:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580395700; cv=none; d=google.com; s=arc-20160816; b=zTeyjHGZZAIs2nI8RsJU1pp8SEH+GI19+MsZRfyCepZgF4H/m5yB1Q6R/8BpVT0NAq 9kNzeOPAKokyTa/5qmKail4aYTHpJ5fdTWOAU8EPtZi+WdZYoswwXjE0t9uX8CUiFxKo R9XE2pJbc9JTe3aKpvHw7cCyHyjgfr1GJUQcShxoNgXe/ZQLb8xWdndtLXLcH1uU4xgn iMgeOqBzmAUjHrw3py5fAO2+sIkHSgKedxlrxmyBYRthTyHumwfCazTdjFc/xDVT53JO 0crz8MhIe+Q8mEf87wbhB+dpLiBxStPNJ1Yon37GTumqs0VBqdakKtSFMmtncE4OBKfF ixrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=rqtNqZZYcXgcYy/9ids+XvioO4bn1OSwu6Q6yjabXwk=; b=tO5jBSf820YBx3ksGif0eQSvdmuExRSF1Hi03hlVt1n6JFSqmcsaJP88982iH7KYX6 11JgM4JxBNBzD1YhXOr3gHV3X0wp7I51q0dSxOriKr8etecSLPZKohWMN5vsN7vt6Qht ZWFlHL7CyqQWh74l7HZnJ3cm3u41coJY1YJFiFEhynFTXduKZVoWTEkx3s3ISVUV6TRM XiXO1yLCjxNGGs1QvuPGr95AS5UUYp1s4JB0ne2aDqfRLcmh+93bJ/85G5jR3e6B0eVW rIMvuSN7jkTACGn6cd8UNMRHVrAtNiEBpU/2kwlBlzmUso78kLTEF/FqWY6NaV8NHxAx WpkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=b+oboRtm; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o18si1563338otk.80.2020.01.30.06.48.07; Thu, 30 Jan 2020 06:48:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=b+oboRtm; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727278AbgA3Or1 (ORCPT + 99 others); Thu, 30 Jan 2020 09:47:27 -0500 Received: from nbd.name ([46.4.11.11]:57474 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727186AbgA3Or1 (ORCPT ); Thu, 30 Jan 2020 09:47:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: 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:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=rqtNqZZYcXgcYy/9ids+XvioO4bn1OSwu6Q6yjabXwk=; b=b+oboRtmiTccc2OFXsvnZ8c159 KrowsDMeFv/yuRCZSLphrVR9rLv2ccH73Ta/U+4FNpIvxtyR63l3nS7hshaLmMiNxKgmUBhF1S35O /CWmkIsAuGqgxZ4XGOX+JqVRsWtqR3T+MCwUoCcFy77LCIAAj6ZRRIquf+bMg5W6Uv7k=; Received: from [178.162.209.135] (helo=maeck.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ixB6L-0001Vm-Jc for linux-wireless@vger.kernel.org; Thu, 30 Jan 2020 15:47:25 +0100 Received: by maeck.local (Postfix, from userid 501) id EEEEA7AE4695; Thu, 30 Jan 2020 15:47:18 +0100 (CET) From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 10/15] mt76: mt7615: disable 5 GHz on MT7622 Date: Thu, 30 Jan 2020 15:47:13 +0100 Message-Id: <20200130144718.14298-10-nbd@nbd.name> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200130144718.14298-1-nbd@nbd.name> References: <20200130144718.14298-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org It is not supported by the chip, so avoid issues with potentially wrong EEPROM configurations. Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c b/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c index 0008e4584537..49d8ae091190 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c @@ -111,6 +111,9 @@ static void mt7615_eeprom_parse_hw_cap(struct mt7615_dev *dev) break; } + if (is_mt7622(&dev->mt76)) + dev->mt76.cap.has_5ghz = false; + /* read tx-rx mask from eeprom */ val = mt76_rr(dev, MT_TOP_STRAP_STA); max_nss = val & MT_TOP_3NSS ? 3 : 4; -- 2.24.0