Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3701654ybz; Mon, 27 Apr 2020 21:48:09 -0700 (PDT) X-Google-Smtp-Source: APiQypLSBkou9DzPKDBMkqohNGxHuBef+tdZu61J5E2bgy/BW+rzCpF1vasrzVvWCQP+IP6iyIqm X-Received: by 2002:a05:6402:b4e:: with SMTP id bx14mr11812495edb.1.1588049288884; Mon, 27 Apr 2020 21:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588049288; cv=none; d=google.com; s=arc-20160816; b=GaZD5CM5T04oM5tpSsputeTh/egAp7nxQy34151zGdd47x+BKfM/djPy4ewUcc3YpF btfh/8T02lzcEpAZ/lgEVjhI6iz+By+AweMvRROb2bkeqOidmSODapLm+NQLgrhbt1QV 8pZ2Uv37RYc4BJtQzpusIKy3V7GBFcjBMRH/LcmI7ZW7LfIhfxlhjmCO3imDes5wDi6k nBqUbrOskqzE2Nu9q/UGLa8zV/k1dveSBp+aEa70o6r971yVL5O7Z1cpNR4MD7d2Kcxf z1VEvo3Ewpu+clIzAVwZoAj3Q9t3VeXOibEgfxtZofxSNykcQHSIqOE6rGJbrN/b1t3x UVyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature; bh=K4ffuR3n9o/BBtA/18Q3pDqmISYuCMs+XDuuxY6KKrY=; b=U7nMedK4KZtJs3Wd/ZRkMZX8WO1cIOfH9PwIBazuV0VwfOdM6n+aolH5Vf+ROiosBU G06KlRz3Le2MGASnb/Ye33N8QILBROrCEWf+7oZwzLbtL+S6ZOSnLxVWkgvGJBC3x6/E 29yfIXgXHjFp1qVQL1Wcd10hCu5qFoFirZUF0eFiFvnlZ3hlh8zIvlgS8FQqB7M+jOnB gSy6StA7sbSQ/TG5uTQ5smaAPeSA9YstGw81LxDaq1jnC1qnkk3s0JVFrMGkB2Wye3eo 8L771Ywal8abOMniLWnj8usJ2BauDU/QR0l5M9dsHGh7oCE9Z4P9uLVKBmN37Tw1a9IR I8fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=GNTuhiLZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si1175174eju.232.2020.04.27.21.47.46; Mon, 27 Apr 2020 21:48:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=GNTuhiLZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726346AbgD1Epr (ORCPT + 99 others); Tue, 28 Apr 2020 00:45:47 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:23503 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726271AbgD1Epr (ORCPT ); Tue, 28 Apr 2020 00:45:47 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1588049146; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=K4ffuR3n9o/BBtA/18Q3pDqmISYuCMs+XDuuxY6KKrY=; b=GNTuhiLZxPzuqQE0MaLvw3MWaouYTSiQXbirKu+MzUk7uCv1/8hNx4dpmAg9rYIPlRaHBDW9 EWZQsLkwk6qjbZMs4zuvVaeOBhuTz58whQVt4g5S6tvP5rnWShMFU1x02w9/rEt1rleL33v6 mG1iFdJhOPJ7eTisRd1/LcWHV/M= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5ea7b4fa.7fbb829c6650-smtp-out-n04; Tue, 28 Apr 2020 04:45:46 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id EAB5EC433D2; Tue, 28 Apr 2020 04:45:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from murugana-linux.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: murugana) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3BEA9C433CB; Tue, 28 Apr 2020 04:45:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3BEA9C433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=murugana@codeaurora.org From: Sathishkumar Muruganandam To: ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Sathishkumar Muruganandam Subject: [PATCH v4 2/2] ath11k: add DBG_MAC prints to track vdev events Date: Tue, 28 Apr 2020 10:15:26 +0530 Message-Id: <1588049126-1490-3-git-send-email-murugana@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588049126-1490-1-git-send-email-murugana@codeaurora.org> References: <1588049126-1490-1-git-send-email-murugana@codeaurora.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Added DBG_MAC prints to track vdev create, delete, start and stop events. Signed-off-by: Sathishkumar Muruganandam --- drivers/net/wireless/ath/ath11k/mac.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 2b3a63ac216c..f33c6d714da8 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -4229,6 +4229,8 @@ static int ath11k_mac_op_add_interface(struct ieee80211_hw *hw, } ar->num_created_vdevs++; + ath11k_dbg(ab, ATH11K_DBG_MAC, "vdev %pM created, vdev_id %d\n", + vif->addr, arvif->vdev_id); ar->allocated_vdev_map |= 1LL << arvif->vdev_id; ab->free_vdev_map &= ~(1LL << arvif->vdev_id); @@ -4399,6 +4401,8 @@ static void ath11k_mac_op_remove_interface(struct ieee80211_hw *hw, arvif->vdev_id, ret); ar->num_created_vdevs--; + ath11k_dbg(ab, ATH11K_DBG_MAC, "vdev %pM deleted, vdev_id %d\n", + vif->addr, arvif->vdev_id); ar->allocated_vdev_map &= ~(1LL << arvif->vdev_id); ab->free_vdev_map |= 1LL << (arvif->vdev_id); @@ -4664,6 +4668,8 @@ ath11k_mac_vdev_start_restart(struct ath11k_vif *arvif, } ar->num_started_vdevs++; + ath11k_dbg(ab, ATH11K_DBG_MAC, "vdev %pM started, vdev_id %d\n", + arvif->vif->addr, arvif->vdev_id); /* Enable CAC Flag in the driver by checking the channel DFS cac time, * i.e dfs_cac_ms value which will be valid only for radar channels @@ -4722,6 +4728,8 @@ static int ath11k_mac_vdev_stop(struct ath11k_vif *arvif) WARN_ON(ar->num_started_vdevs == 0); ar->num_started_vdevs--; + ath11k_dbg(ar->ab, ATH11K_DBG_MAC, "vdev %pM stopped, vdev_id %d\n", + arvif->vif->addr, arvif->vdev_id); if (test_bit(ATH11K_CAC_RUNNING, &ar->dev_flags)) { clear_bit(ATH11K_CAC_RUNNING, &ar->dev_flags); -- 2.7.4