From nobody Tue Dec 16 16:37:14 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54898C32772 for ; Fri, 19 Aug 2022 16:06:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351360AbiHSQFd (ORCPT ); Fri, 19 Aug 2022 12:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351520AbiHSQBz (ORCPT ); Fri, 19 Aug 2022 12:01:55 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 234AF7E821; Fri, 19 Aug 2022 08:53:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id DCB6ECE26B5; Fri, 19 Aug 2022 15:53:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D03FDC433D6; Fri, 19 Aug 2022 15:53:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660924417; bh=LRYanTTuM7Fr/DtH9Gv9pC3t6OmIF336n5aBC7aLuoI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PvvdyVT4S/8a+gU8rT7hO8kiu4Z146EvFsy7k4Y2qgLFD5o2tVctCi0zO96rijayc mmnodvP+GgnYXFj80U4ZtNgTgN54oL6g2pEamWuBelkZTNJ9vd30Mdk2YGgYxhGtdl ql8PcQCSKfqtGiVBiAoPnbFT94SJcpYemjyWO91E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Manikanta Pubbisetty , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 164/545] ath11k: Fix incorrect debug_mask mappings Date: Fri, 19 Aug 2022 17:38:54 +0200 Message-Id: <20220819153836.704634117@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Manikanta Pubbisetty [ Upstream commit 9331f7d3c54a263bede5055e106e40b28d0bd937 ] Currently a couple of debug_mask entries are mapped to the same value, this could enable unintended driver logging. If enabling DP_TX logs was the intention, then this could also enable PCI logs flooding the dmesg buffer or vice versa. Fix this by correctly assigning the debug masks. Found during code review. Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1 Fixes: aa2092a9bab3f ("ath11k: add raw mode and software crypto support") Signed-off-by: Manikanta Pubbisetty Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20220602115621.15339-1-quic_mpubbise@quicin= c.com Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath11k/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debug.h b/drivers/net/wireless= /ath/ath11k/debug.h index 659a275e2eb3..694ebba17fad 100644 --- a/drivers/net/wireless/ath/ath11k/debug.h +++ b/drivers/net/wireless/ath/ath11k/debug.h @@ -23,8 +23,8 @@ enum ath11k_debug_mask { ATH11K_DBG_TESTMODE =3D 0x00000400, ATH11k_DBG_HAL =3D 0x00000800, ATH11K_DBG_PCI =3D 0x00001000, - ATH11K_DBG_DP_TX =3D 0x00001000, - ATH11K_DBG_DP_RX =3D 0x00002000, + ATH11K_DBG_DP_TX =3D 0x00002000, + ATH11K_DBG_DP_RX =3D 0x00004000, ATH11K_DBG_ANY =3D 0xffffffff, }; =20 --=20 2.35.1