Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3004615pxu; Mon, 14 Dec 2020 17:35:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcyCxOMnEr03tYhJghiuGIJWAI0dU9uZ2HblSQE8Y4aXZRdLV9jvp3TvsULUiq/8UAj/Kh X-Received: by 2002:a17:906:9382:: with SMTP id l2mr8783879ejx.162.1607996152162; Mon, 14 Dec 2020 17:35:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607996152; cv=none; d=google.com; s=arc-20160816; b=kKNgzxQ0DTP+dFnO3K5HcxlEEJjWpcjRVvLWXy90i3pLMKngXPvrEkGE7KY+LhyGmg UWPDMLOdL60NTs9jOz4Tqx/ARitqrHJa7isNUnpC7kA8OeREmLiURLy2sLxLXED3Wpqb ouwXPmMnJzyuRqmezZhJZKLL8+dWRT+2ttJGK7oLOMjrKVuRJvbNWFQnLt0ArVqdKv+P NMltLEVTa86305oAwC9T5ikCUNafEMDBx2AfFg2aBcZfjfhNZsqzM/YEButR6hJYbh/C FXY55Sd0Ex0fv7fDQR9sw5/OdA9zII/CRs3twZPeyNamT0wzqG97pisrtv8nRRtPp6DM fjjA== 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; bh=k9QpKM2NX7fgGgoaVOQy3vgHD6WqtMvy+X1IMgwCWTw=; b=0ntbW8DfwZ4QKO9oRxIqcU2mjXY+KqfY4a4ulGZTATJ6XO0/8+IsXmsxLvdqXV3PDv JZ2V1IXsLd35nOmKd+N+OM5tV/n3Z9cUgwcms/3YYcEUh5VcAMz32WKe1iRYJUnjjpHX 8fC7INp779UrGIR7qwWw/Y+RdguPW2iwAS9mE76uN2PGDeFzzBtUjTbwXnUIfrJcJ5+K llFRuSsOH8xB6fU+ZGxt/ME8+OoJvWCmndlfFCaf8ye3Fl+U14dKu/bqpoz/m6jE4Z+b P7ZRSBvyB5OUvKHlbJTPG9hQ7Y9L80wYoFnWMEx8eeHtD1mBPSgnmqSkt38RA2nIYE2X 3+KA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nq4si127939ejb.68.2020.12.14.17.35.29; Mon, 14 Dec 2020 17:35:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502706AbgLNTJK (ORCPT + 99 others); Mon, 14 Dec 2020 14:09:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:46970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408591AbgLNRhL (ORCPT ); Mon, 14 Dec 2020 12:37:11 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Luca Coelho , Kalle Valo , Sasha Levin Subject: [PATCH 5.9 033/105] iwlwifi: pcie: invert values of NO_160 device config entries Date: Mon, 14 Dec 2020 18:28:07 +0100 Message-Id: <20201214172556.876619579@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201214172555.280929671@linuxfoundation.org> References: <20201214172555.280929671@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luca Coelho [ Upstream commit 568d3434178b00274615190a19d29c3d235b4e6d ] The NO_160 flag specifies if the device doesn't have 160 MHz support, but we errorneously assumed the opposite. If the flag was set, we were considering that 160 MHz was supported, but it's actually the opposite. Fix it by inverting the bits, i.e. NO_160 is 0x1 and 160 is 0x0. Fixes: d6f2134a3831 ("iwlwifi: add mac/rf types and 160MHz to the device tables") Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlwifi.20201202143859.375bec857ccb.I83884286b688965293e9810381808039bd7eedae@changeid Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/iwl-config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-config.h b/drivers/net/wireless/intel/iwlwifi/iwl-config.h index e27c13263a232..44abe44c04632 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-config.h +++ b/drivers/net/wireless/intel/iwlwifi/iwl-config.h @@ -488,8 +488,8 @@ struct iwl_cfg { #define IWL_CFG_RF_ID_HR 0x7 #define IWL_CFG_RF_ID_HR1 0x4 -#define IWL_CFG_NO_160 0x0 -#define IWL_CFG_160 0x1 +#define IWL_CFG_NO_160 0x1 +#define IWL_CFG_160 0x0 #define IWL_CFG_CORES_BT 0x0 #define IWL_CFG_CORES_BT_GNSS 0x5 -- 2.27.0