Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1540084pxb; Thu, 16 Sep 2021 09:31:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxExci9G0CyxkUu0/EoN3wjNZX62+Tf2lfJ8UJuiE8zSfy5gmfK8neNDIeeokqdvy6LQcQx X-Received: by 2002:a92:d352:: with SMTP id a18mr4479859ilh.160.1631809886071; Thu, 16 Sep 2021 09:31:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631809886; cv=none; d=google.com; s=arc-20160816; b=KYw7b77aQ0q/+Fs2ZeyMNTSrtWrXLYnnhDslKD+hITNLrgmeB/FTqtwINP0ilPDpJe bUlIe9eGIqCBsOuWQxigJG0p+VqWuJKxqykttGWS7Og6qQzUQcCwL6kDz5UQQ9M6Z0Fk cwhOZ7hBqv/P/0jNqjrC/WQIAtSN0nbNuD4sPYMKBWSVQt53CDgJG/SExvj0Zfqdg4X9 0gWv4/P702gkRfndzIPRlFY70fDxMGIqc02E7qqIZDeP914ONPkTdq0/LnqvQhn/NNYM /PTyUSr7NETAY7FQTo2mu/ydTsHFadWoUVUJltY0SKT3zltZZ7hzMBk0OzKQaTe/UzFd ucNg== 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=yZMP5XUXaIO+CTkBiJBjfLH2dd4iNVU95c1tP6JD5FY=; b=mw4SVAgVd7OvLgUlvFfxYWbL9v3a4rGcWvNaKGs0+7L50z4EVfDQobNnfBCaMnjt6s 3t8kDqx3z7NxgGZn9IqS313duqg0P1zTXZHoEmxkhrsLy581QLxJ1i1gzZDhROz1lbVq 26fgIbHo9rDP2H51mCX1YqLvBlnQgxhQprGEeTBx6Amk6iCNTCGUiRa8sXxiKc8Vr7CL u0PQ9EXxXNwPFYTC1hlyvWf6ZN/T2HDopxCLdH7GYmbD3L4BJHkof/VurSB2yAukSZSK CD+lgHO3ZyMkQvhmN2++zRUYlCx4TwFmio4EGdw7Cd7bzzY1bVNg9HzaklFFC1SXKLIo tQdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=e5TFPHIc; 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 w8si3005925ilv.158.2021.09.16.09.31.10; Thu, 16 Sep 2021 09:31:26 -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=e5TFPHIc; 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 S243242AbhIPQaM (ORCPT + 99 others); Thu, 16 Sep 2021 12:30:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:59300 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237271AbhIPQVh (ORCPT ); Thu, 16 Sep 2021 12:21:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 348D861439; Thu, 16 Sep 2021 16:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808904; bh=BXcgJ5FGrSa1vP6CBtltDNlV8URBJBSRWoUnZO/prXY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e5TFPHIcR3KlsgmMyxissHIzg1Rp9bHW2iAPrPHG7TcvSxUTp8PM0MyGyDpYpVg9K k4BJQtrDunrETx7Nnb/mtOcXyuLmIXm4CVqbwbbN1jWchbnm5HPuTQ3+rZn7Dkz/vT x95ONeqPHwoo4xWISgwqa8AauXPTSUdam4855MV4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johannes Berg , Luca Coelho , Sasha Levin Subject: [PATCH 5.10 265/306] iwlwifi: fw: correctly limit to monitor dump Date: Thu, 16 Sep 2021 18:00:10 +0200 Message-Id: <20210916155803.104107853@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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: Johannes Berg [ Upstream commit e6344c060209ef4e970cac18adeac1676a2a73cd ] In commit 79f033f6f229 ("iwlwifi: dbg: don't limit dump decisions to all or monitor") we changed the code to pass around a bitmap, but in the monitor_only case, one place accidentally used the bit number, not the bit mask, resulting in CSR and FW_INFO getting dumped instead of monitor data. Fix that. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20210805141826.774fd8729a33.Ic985a787071d1c0b127ef0ba8367da896ee11f57@changeid Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c index ab4a8b942c81..419eaa5cf0b5 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c @@ -2303,7 +2303,7 @@ static void iwl_fw_error_dump(struct iwl_fw_runtime *fwrt, return; if (dump_data->monitor_only) - dump_mask &= IWL_FW_ERROR_DUMP_FW_MONITOR; + dump_mask &= BIT(IWL_FW_ERROR_DUMP_FW_MONITOR); fw_error_dump.trans_ptr = iwl_trans_dump_data(fwrt->trans, dump_mask); file_len = le32_to_cpu(dump_file->file_len); -- 2.30.2