Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp630944pxb; Tue, 2 Feb 2021 13:46:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzeZiS53hegvfcXre5d7veZwyRcQ6zpYK20mT/7anmcT9sJ7uaCmlqPW+UYL4DufVEU01sC X-Received: by 2002:a17:906:c1c1:: with SMTP id bw1mr60704ejb.86.1612302370216; Tue, 02 Feb 2021 13:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612302370; cv=none; d=google.com; s=arc-20160816; b=v0UElkA/8GRhjY1B/o+V8dehdCTXcg0dsG1iWorgSpMfH0vEzXBCjfxSKxxMdTYylD DJBuis1p8be7PpoZE7KywnnjOS+zKeiST4na6/QeURkvAF5rfglI7g7wgkFhw9vg4v9B DLnNgKy/FzhcsmrMbjL4yZVFn9TQoR8sSA6+3revTw4Czh81r1Wvu78HtwioR6wGIsyC E8CHKPcz0j5z5FWgaxKDlbO7Ny0M3Uza5uB63rk45qbnr2M5+b++7TPYdAhmQ4pgIppE 3iKBQs79GgwR9ptxD3VOfMbT1fMWmNxy9yLEoAzv/HOOZeIoIL0vDhRgNyfnDHohW56M nOWA== 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=F4KR+Ncrslv+61yVxFiOUCIjnW2bzXtcR8DJaOccD8E=; b=t0vp9pzKX9R0HK3+M5LlpH10HMn6isK6TZcROH7JKE5NXc4eBy3Mx1dUoWURRz9r1X eqNOl4ZFlCno+L2DqYPEmYIJvx3PQvPfvJdGcofwHY59Zx8xVfzlivq35QVH/+jOdsqp zdQVoBvRbb1uclMDVuoR+iqPRU/pROapXTQGpS/Ff3FzbsvWd5qJsltT5EMrSbFLr/Zt 7b8wFaUX+QQHM0Kpnov6DsKr8RlF30bf/3n8jRAVxCRF+us0OMhpmzbTTDy3A/kqwWCh Tr79rUbFSNsO/UBHn0JMk2bQywGFzeJVLDotZi6isyBswiLU4Vvaq3oTjJ+OaVmR5DRY 6sCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XNU8YPL7; 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=pass (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 e6si16528831edz.362.2021.02.02.13.45.45; Tue, 02 Feb 2021 13:46:10 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XNU8YPL7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233241AbhBBNwk (ORCPT + 99 others); Tue, 2 Feb 2021 08:52:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:36410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232916AbhBBNrB (ORCPT ); Tue, 2 Feb 2021 08:47:01 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A2CF664F89; Tue, 2 Feb 2021 13:41:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612273296; bh=iZpyMwa3C4bNTPhLDUU5Cs6F4VC/MxuvXIOE00AKwNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XNU8YPL71Qo/61W62UZEZhtoyb3y1+6v13ktr2EdUIeWc36J46D+pbZskf6DsB/at tyEL+q1Ryfa3OsdpYev/SJjxjICRTun1MJpYG5bpxLsmqFrjYXSXduXKwWF9wP25Jl o2aNjJCJIB+781wdLbbBSVwoI8qcS3OrIm+Q0Pk4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matti Gottlieb , Luca Coelho , Kalle Valo Subject: [PATCH 5.10 054/142] iwlwifi: Fix IWL_SUBDEVICE_NO_160 macro to use the correct bit. Date: Tue, 2 Feb 2021 14:36:57 +0100 Message-Id: <20210202132959.946912163@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210202132957.692094111@linuxfoundation.org> References: <20210202132957.692094111@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: Matti Gottlieb commit 4886460c4d1576e85b12601b8b328278a483df86 upstream. The bit that indicates if the device supports 160MHZ is bit #9. The macro checks bit #8. Fix IWL_SUBDEVICE_NO_160 macro to use the correct bit. Signed-off-by: Matti Gottlieb 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.20210122144849.bddbf9b57a75.I16e09e2b1404b16bfff70852a5a654aa468579e2@changeid Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/iwlwifi/iwl-config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/intel/iwlwifi/iwl-config.h +++ b/drivers/net/wireless/intel/iwlwifi/iwl-config.h @@ -498,7 +498,7 @@ struct iwl_cfg { #define IWL_CFG_CORES_BT_GNSS 0x5 #define IWL_SUBDEVICE_RF_ID(subdevice) ((u16)((subdevice) & 0x00F0) >> 4) -#define IWL_SUBDEVICE_NO_160(subdevice) ((u16)((subdevice) & 0x0100) >> 9) +#define IWL_SUBDEVICE_NO_160(subdevice) ((u16)((subdevice) & 0x0200) >> 9) #define IWL_SUBDEVICE_CORES(subdevice) ((u16)((subdevice) & 0x1C00) >> 10) struct iwl_dev_info {