Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2101443pxb; Mon, 12 Apr 2021 14:33:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOhY8xhs7S/GrT92JGpw/8g7L/jXiImTg5X/692kmNSQEYJk/Q0xh0HHx5eRNlM3BUincH X-Received: by 2002:a17:906:1986:: with SMTP id g6mr28623339ejd.533.1618263203035; Mon, 12 Apr 2021 14:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618263203; cv=none; d=google.com; s=arc-20160816; b=Hxv2YcqAHgP1BXM/SPKnW5YAI0tBtslK/G/ZyMwXwqp//dOI+EgTzbYNJizH8lFCLh YHI45XURbOyoY5TB4YsXCPL5eEAZ8lxf/YJ7gddR9D/6YpZUkabZF5LKHhV6CzCBFaE6 hjvmKrWQ6zNX1mtEaWtC23/x5MSbZPxrQMTay5VPGe88UV0iYhLsgkBYxHw6erRUijsj STAWUvdpmeCLWtWgH5hBHdyft1ccryvEwp1pYUxVgqzU3Z2ryZ/4/VsgASgzhr+mwWod RWTJ03iSoRZGxV64hOr+B+Q/SencfDmSE8nCaOYt2TE8Q4KA6kQOPURycwKt9gWurGyH 0dqA== 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=jwRNOzZF0o0NChuMvNKvf2LnF335hFdpHZ9msog1ioM=; b=mbviLWlNeF/wYIr7PqbL+ljAoSvcfgqkK7GGJ/GRg88pHKVCrMa5Ka6Le/x0+uj0Wh QSsbrY59TqXuiij2qDrt+WGxO69dOVgzhxLPPhmEQVfym5xnBqpoXshQvhkTbN5yY+DB 8eDknMrxfTVtG9H/N/vnKQCUK5n3SDVGkNvpg7Dfw++2DPtsRISy+oJH6lTqWkv7uHkh EKi8bVRdsDTndR7qbsHnAOV42/Ac5VXF2r/MAAUZ2qpN6owEm9NV+V3qn7ZF7uqwM/ql zHC52VuvaxvKw5a90LKh3Zk+TzDn0b0gGwGx62ZBhtv1DPLWpVegO6sMxsWBerm1kGH/ 6cdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LFF6XB+1; 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 bx8si8813451ejb.385.2021.04.12.14.33.00; Mon, 12 Apr 2021 14:33:23 -0700 (PDT) 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=LFF6XB+1; 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 S240363AbhDLJOu (ORCPT + 99 others); Mon, 12 Apr 2021 05:14:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:48564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237488AbhDLI5n (ORCPT ); Mon, 12 Apr 2021 04:57:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E582261019; Mon, 12 Apr 2021 08:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217810; bh=CwiSKpE7g9aUqX2jscXY6ywduu8If1MV7QV0Q/leDYA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LFF6XB+1aW3Qhwz1/Zz1tegz+wweuYSPatN0BfDNNshnJXjhZI1UJor9xY+JGqQjc pcF/rQLnRmwtEbJfp04pOPKxLhdQbhHYn5WiJ0DPLaLNXKbIuVKwol6tkNJPi+zeU+ y5xYB0A0l8Wj5/3kVWbIL7iyT5Mi8K9HMDzrp81o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Luca Coelho , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 154/188] iwlwifi: fix 11ax disabled bit in the regulatory capability flags Date: Mon, 12 Apr 2021 10:41:08 +0200 Message-Id: <20210412084018.741782034@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412084013.643370347@linuxfoundation.org> References: <20210412084013.643370347@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 07cc40fec9a85e669ea12e161a438d2cbd76f1ed ] When version 2 of the regulatory capability flags API was implemented, the flag to disable 11ax was defined as bit 13, but this was later changed and the bit remained as bit 10, like in version 1. This was never changed in the driver, so we were checking for the wrong bit in newer devices. Fix it. Signed-off-by: Luca Coelho Fixes: e27c506a985c ("iwlwifi: regulatory: regulatory capabilities api change") Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlwifi.20210326125611.6d28516b59cd.Id0248d5e4662695254f49ce37b0268834ed52918@changeid Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c index 6d19de3058d2..cbde21e772b1 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c +++ b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c @@ -285,7 +285,7 @@ enum iwl_reg_capa_flags_v2 { REG_CAPA_V2_MCS_9_ALLOWED = BIT(6), REG_CAPA_V2_WEATHER_DISABLED = BIT(7), REG_CAPA_V2_40MHZ_ALLOWED = BIT(8), - REG_CAPA_V2_11AX_DISABLED = BIT(13), + REG_CAPA_V2_11AX_DISABLED = BIT(10), }; /* -- 2.30.2