Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4486216ybx; Mon, 4 Nov 2019 14:13:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzENWk4SZwnHaQfqoXyDrkos3kAkd4lL3qIrRpfSMP/8EVHR5cNNo0j2ZwwiLrpui2IrBcv X-Received: by 2002:a17:906:3418:: with SMTP id c24mr6371364ejb.121.1572905607798; Mon, 04 Nov 2019 14:13:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572905607; cv=none; d=google.com; s=arc-20160816; b=Z21dxgU6XVm0w9pasayFkZIJh30FgVxdd74UGhqElJzevESUHnuOFyJEOcEJIlIO/l C1fqL66vGcIPXCd9cyMC56mvZqzAtnUhNefgleyvT+Hxx/NBKJkEKaUNBcoWgg5/R0jp PU4u8QmcbSv3UtyuJvJtSYyVDLZhTRF+nJpsfWhcQjLLEDAutQK2aLOFBUAOanF6wbbW YZIElDJhGCg9ZUCXF5WXC45IJXorFwD2qxMIc995j9PmYJBehcVRFSWn7uKh5Tj4P5uv 1VopL9bydlcxuwq01xV8AFAeuTUUjbkK07m0L16zf5t827Ll3qBzmF5KwlmlBWavtq03 2v3w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7kqS//hsKLm/yVzZgYFHkKnhJ1PuG/wTT/r49Pt9ACA=; b=qG/idSSLaqOLm7YWLXH+OlBqrbqVHNklnCV+jnQiSGYUb0NPy1Ck4zkggkAWjlsuaT hd42y3qndKA2EF3xzZ+/jqp6+3bkQ21yzGQja+aZ6afEM3hWTNxLOF5lX1aTOGmKDATG B9xOfir5bDDdORnsoOp5M8jOSuxwfNM9E7ZLvOWmL3s+kWr27aUuJESzMIWOILy9Denr JqlDyXE/PgLqDGrWgb+OKf7sTsWJ8wW1F44MnEm8yAX+K37X7ZFNRx40pt0EWX0V8JUP NKCOk93BoegfKj+w22qlCi3kpHUvosNzZeOSeLgWjazZs1IHaf6SrYlQk2DI2GxhmDjv iSqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WVbbC5Ew; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 35si9055560edl.409.2019.11.04.14.13.04; Mon, 04 Nov 2019 14:13:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WVbbC5Ew; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390657AbfKDWLS (ORCPT + 99 others); Mon, 4 Nov 2019 17:11:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:44508 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390122AbfKDWLM (ORCPT ); Mon, 4 Nov 2019 17:11:12 -0500 Received: from localhost (6.204-14-84.ripe.coltfrance.com [84.14.204.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 41718214D9; Mon, 4 Nov 2019 22:11:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572905471; bh=Ao8ASdD9CZf78DrIKEabNV1v+VH8aKwvSs13qNzXdkQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WVbbC5Eww0qeGfWhqz9VRn5bi5kmZg9dM9q5u8bvePxy33pYCZP++e/lbWKTgaW0p 1QVcuwcb9VWhi7wea3TRPIgTdOg/jjdx2bBDOkrSZCuxHqkJ2GXIZiouQUY+NpT4OA nWGqgJBQzoxBF3HKzQUlOC6dyFoQJQu2AX/hspEY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Luca Coelho Subject: [PATCH 5.3 157/163] iwlwifi: exclude GEO SAR support for 3168 Date: Mon, 4 Nov 2019 22:45:47 +0100 Message-Id: <20191104212151.635874148@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191104212140.046021995@linuxfoundation.org> References: <20191104212140.046021995@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luca Coelho commit 12e36d98d3e5acf5fc57774e0a15906d55f30cb9 upstream. We currently support two NICs in FW version 29, namely 7265D and 3168. Out of these, only 7265D supports GEO SAR, so adjust the function that checks for it accordingly. Signed-off-by: Luca Coelho Fixes: f5a47fae6aa3 ("iwlwifi: mvm: fix version check for GEO_TX_POWER_LIMIT support") Signed-off-by: Luca Coelho Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c @@ -887,15 +887,17 @@ static bool iwl_mvm_sar_geo_support(stru * firmware versions. Unfortunately, we don't have a TLV API * flag to rely on, so rely on the major version which is in * the first byte of ucode_ver. This was implemented - * initially on version 38 and then backported to29 and 17. - * The intention was to have it in 36 as well, but not all - * 8000 family got this feature enabled. The 8000 family is - * the only one using version 36, so skip this version - * entirely. + * initially on version 38 and then backported to 17. It was + * also backported to 29, but only for 7265D devices. The + * intention was to have it in 36 as well, but not all 8000 + * family got this feature enabled. The 8000 family is the + * only one using version 36, so skip this version entirely. */ return IWL_UCODE_SERIAL(mvm->fw->ucode_ver) >= 38 || - IWL_UCODE_SERIAL(mvm->fw->ucode_ver) == 29 || - IWL_UCODE_SERIAL(mvm->fw->ucode_ver) == 17; + IWL_UCODE_SERIAL(mvm->fw->ucode_ver) == 17 || + (IWL_UCODE_SERIAL(mvm->fw->ucode_ver) == 29 && + ((mvm->trans->hw_rev & CSR_HW_REV_TYPE_MSK) == + CSR_HW_REV_TYPE_7265D)); } int iwl_mvm_get_sar_geo_profile(struct iwl_mvm *mvm)