From patchwork Wed Oct 27 17:03:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Li X-Patchwork-Id: 12587633 X-Patchwork-Delegate: kvalo@adurom.com 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 304D9C433EF for ; Wed, 27 Oct 2021 17:03:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1757C60F38 for ; Wed, 27 Oct 2021 17:03:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243123AbhJ0RFr (ORCPT ); Wed, 27 Oct 2021 13:05:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239435AbhJ0RFq (ORCPT ); Wed, 27 Oct 2021 13:05:46 -0400 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4F53C061745 for ; Wed, 27 Oct 2021 10:03:20 -0700 (PDT) Received: by mail-il1-x12e.google.com with SMTP id w10so3648063ilc.13 for ; Wed, 27 Oct 2021 10:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squareup.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JuGG34v4wgn5uK/AGdP3ngp2XG8YXyzgGRS2/CIbReg=; b=BoQ/Bq8kjvC5v1X/L1jXugkqidhMQBCw3IlN+1Ok0an9vh/ZZKqNSvklIvUrm5uBDS qqzyx0BxOzRjEBuuO+7mvs9j5B9MEHzdlLChsfDXFFfxsdZDQkWDJEnxYIHxfKnfe2/m e4bFn1uxT/m3Q25ul3x9TQpgtT9/6ZAGCHNYU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JuGG34v4wgn5uK/AGdP3ngp2XG8YXyzgGRS2/CIbReg=; b=bsVdsT3JPUcyKQh0pYGtUqDx1IKW/2jTtZCKIC7S122ZU+fsNUAYq64KF9h54pYc/t AWoZq0wLG92Wp9j++VA5f6bUrlFIahZpYRVhqLkrN5CKMB60YaZwFfZ3j1WS7pXf9U7d V9j972Fb/ITh1ToQf21kksZsc9YdanuM8da6Daj2lWt94EI2wKAzXdAX6c/NIynWXxAC mvXKVlIeSTqVMhsfp4wLUhfhrBqcrBFEBytZ+m8NEhooB+63BDOxeUiSegw41JaN/fRm OrAgN+lpwHtGXr5Z095vllJTjHRqkkTqLfIzFZ2kJ6885lwA9B50Yhg42+aXGHrWTE72 NcHw== X-Gm-Message-State: AOAM531NS6dPTcaO7nERONnr6wAlr9u4L7l2WZmXqDn2208ioLCFOf9b MfQmFT4qfUcoD2uRhKqDzoxt6g== X-Google-Smtp-Source: ABdhPJww5sVqks1R0FGEmOv3cOGjGzn9Ge3YvmhO+w9HOYt9Q9UMCAk1vJ1sY5cG4Fxy47GCDjM3zg== X-Received: by 2002:a05:6e02:1b81:: with SMTP id h1mr16184375ili.290.1635354200111; Wed, 27 Oct 2021 10:03:20 -0700 (PDT) Received: from localhost ([2600:6c50:4d00:cd01::382]) by smtp.gmail.com with ESMTPSA id g6sm223225ilq.68.2021.10.27.10.03.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Oct 2021 10:03:19 -0700 (PDT) From: Benjamin Li To: Kalle Valo Cc: Joseph Gates , Bryan O'Donoghue , Loic Poulain , linux-arm-msm@vger.kernel.org, Benjamin Li , "David S. Miller" , Jakub Kicinski , "John W. Linville" , Eugene Krasnikov , wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] wcn36xx: add debug prints for sw_scan start/complete Date: Wed, 27 Oct 2021 10:03:03 -0700 Message-Id: <20211027170306.555535-2-benl@squareup.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211027170306.555535-1-benl@squareup.com> References: <20211027170306.555535-1-benl@squareup.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Add some MAC debug prints for more easily demarcating a software scan when parsing logs. Signed-off-by: Benjamin Li --- drivers/net/wireless/ath/wcn36xx/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 42153305f6d84..0b0f8ce729dd1 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -704,6 +704,8 @@ static void wcn36xx_sw_scan_start(struct ieee80211_hw *hw, struct wcn36xx *wcn = hw->priv; struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif); + wcn36xx_dbg(WCN36XX_DBG_MAC, "sw_scan_start"); + wcn->sw_scan = true; wcn->sw_scan_vif = vif; wcn->sw_scan_channel = 0; @@ -718,6 +720,8 @@ static void wcn36xx_sw_scan_complete(struct ieee80211_hw *hw, { struct wcn36xx *wcn = hw->priv; + wcn36xx_dbg(WCN36XX_DBG_MAC, "sw_scan_complete"); + /* ensure that any scan session is finished */ wcn36xx_smd_finish_scan(wcn, HAL_SYS_MODE_SCAN, wcn->sw_scan_vif); wcn->sw_scan = false;