Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp6415309ioo; Thu, 2 Jun 2022 06:07:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytQ87S6v9bACC6fxfElE3SfiAbagFlbpPncEW+C0z8e8fe1PdAlk95lbMg2ubpmy9Eo4Tk X-Received: by 2002:a17:903:1252:b0:154:ca85:59a0 with SMTP id u18-20020a170903125200b00154ca8559a0mr4808002plh.169.1654175276540; Thu, 02 Jun 2022 06:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654175276; cv=none; d=google.com; s=arc-20160816; b=khUt0GWyWjUzggKAW/pQ/eoNLNEvXKN77F6QBIpx2yqQC5suzxQUaa88iH+jxlzFwP 4vphHEx6bazfbU2LSMX/F/17XcHy81cJIkmkq47i6XMBE+82JtVdcNMyJqX1t4nIKxMQ H8Qvzf+1xSl+XUDivYYuJe8W+j1acRaA4FRsK8KTQUH8OnXdR/XGVUNL0r0CRuTBPYf0 p8B/s29axHkCgqrPuy/vaWPc2/r824s7qvzQtCzAs0pSY/Qy97ssTQLCCaglh5M6lwKW YMqK00Kp8OegBaI8bLCEFxHisNN7HDdIyJiWoqg9k4636AgjQydAmWUM4gma45aefHR1 dNnA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=JNT6fGFfjvEGnyGfBhVmqpEQJlxF7qvszVyjGUy0bOc=; b=qnwoeLRzrBX8LyVGgwpo4C92CYVtR7WR0G96aW2C3xZ+ciNH2V1cfSIZoyJML5r2Wl DArHwg6nou9iI1fyrLNkh6pl0FNfoAE08ifkyeAGeq2CmdTHJtxsAFSV+uzLhkjLg0gk w/dKYjehOdpPVT1LHL0244libCWJYLTimSmb8EnkAXsEX/Z/mduKaFHcQzSFL8Bug9eS sLyeXuXqCoftmjQqwr4GMksWPXvSQwmVOFCS6w8XasrZOmwv0haPjuRWvlbzsY0qwQjE d7Jn6ROdZ+vyxq1AVYOadmM8yhDBrRL7fl/yP/2rDEAQmtaAFXBQoYR083AoZ26X9xbT PD8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=HozUMrpi; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a170902d70100b0015872dc578csi5683423ply.311.2022.06.02.06.07.37; Thu, 02 Jun 2022 06:07:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=HozUMrpi; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234614AbiFBL4t (ORCPT + 67 others); Thu, 2 Jun 2022 07:56:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234643AbiFBL4r (ORCPT ); Thu, 2 Jun 2022 07:56:47 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E9003A0 for ; Thu, 2 Jun 2022 04:56:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654171005; x=1685707005; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=JNT6fGFfjvEGnyGfBhVmqpEQJlxF7qvszVyjGUy0bOc=; b=HozUMrpi1JWXUk077XHZsSTnR12FHTwpYa9fFPOSmwP0O9k0HbxzFyyR NSjT+RyDjwXp2c1W6cuXWzn2lk9F42phmMtcUChr/cAdA4LNeKwNYnmEy iQVMqy4TAQNnKYlOI3noIuOxmbjvRC5zoPRCIqQiMoZGdJbpaCmIfOgLP o=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 02 Jun 2022 04:56:44 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2022 04:56:44 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 2 Jun 2022 04:56:44 -0700 Received: from mpubbise-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 2 Jun 2022 04:56:42 -0700 From: Manikanta Pubbisetty To: CC: , Manikanta Pubbisetty Subject: [PATCH] ath11k: Fix incorrect debug_mask mappings Date: Thu, 2 Jun 2022 17:26:21 +0530 Message-ID: <20220602115621.15339-1-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 --- 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 fbbd5fe02aa8..91545640c47b 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 = 0x00000400, ATH11k_DBG_HAL = 0x00000800, ATH11K_DBG_PCI = 0x00001000, - ATH11K_DBG_DP_TX = 0x00001000, - ATH11K_DBG_DP_RX = 0x00002000, + ATH11K_DBG_DP_TX = 0x00002000, + ATH11K_DBG_DP_RX = 0x00004000, ATH11K_DBG_ANY = 0xffffffff, }; -- 2.35.1