Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp490007pxb; Tue, 3 Nov 2020 05:08:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0s5E6z+RHO2WtkpAR58996SCvnrep2X/tHpisyBu9Q0JG5G9pqRHRKP3afCt6YXFSKHY6 X-Received: by 2002:a17:906:cede:: with SMTP id si30mr9165929ejb.16.1604408924472; Tue, 03 Nov 2020 05:08:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604408924; cv=none; d=google.com; s=arc-20160816; b=Pvwg2DmCwhERJ5bHdDiQ17KPAj+aU7iaFuneLWHDR14+vRQnWWMAGXHc2AeE7Slk0T zjeP71O9hrMrgJViH8+v/ybJK1+Rq29gnXn/+39GszERfCl9Y5pnOGk/lkFPQDsxXXGc nIp/SDbqlzA7KLTc8r0eOBjGa/Rcr42vSN+G8w7HnDFYBeEzWlSSyOwUENhj3Cw6NkBq Ha/KF2WbnPYDV8F4vnup+3hWRsJhNIgEp1vtgTiJDYXA2fL+zpm/RHvu8CFLSI+TFxMQ SOns8iEQwyVa49GXhX1mrMwvMgjVsm5ad+dWmFrY1OEFDjbcugnQoU+rXPG+bsVN0EIs 1e2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=D1Acza7VdNKIrkiHFmvFOZwVY5ACKrGBmEhFcV0MlxQ=; b=dh4EzSpmaovkM81TDCyQ+DvgfFsJ7VNik0qx0OMxXhPKrQdyj5v7cteEjQKm2cnyOp +qkkIfa+4p82xlTeAk+PeLKlQQvWzVvDd+uLctBbhzsuFFu8rtenKOojwQDlok4TlZyz 53isUF5QklFvLM2t6eWR90gVnJQ6QzmRJ8bi4JABq3DwI8ASNPftxA/7w37LSEgBqmwS PzaZMc590VZpbwhkvmLLwLECB5D6QcWbzuiSU5iqzlkj9uiNs0r31AcO4qvjOXX7mhnp nQgoA/tSMmw9i1UlpoQx9xn9iFz7DuRUvYbtJwFiELzNOmEv52EbOijSXd8Fk0hUVqvx fqrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=GJAbjUwK; 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 n15si13750680edw.94.2020.11.03.05.08.15; Tue, 03 Nov 2020 05:08:44 -0800 (PST) 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=pass header.i=@mg.codeaurora.org header.s=smtp header.b=GJAbjUwK; 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 S1728090AbgKCNIE (ORCPT + 99 others); Tue, 3 Nov 2020 08:08:04 -0500 Received: from z5.mailgun.us ([104.130.96.5]:47121 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726388AbgKCNID (ORCPT ); Tue, 3 Nov 2020 08:08:03 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1604408883; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=D1Acza7VdNKIrkiHFmvFOZwVY5ACKrGBmEhFcV0MlxQ=; b=GJAbjUwKgQ9phY7DlE1c4fGWJZbSdxt0LwU11/yr5vPfOErcRFg0UQ38kpemD9MNIFMPLvr+ A0UEg+fbDyP9QlEps03rNfMJrKiDW64s7PLIpNYTvsg7oZgdoXNbKnOquzaijvnCkawCyRb8 L6aCWTb5isxhdfb6aqDZX0yrxV0= X-Mailgun-Sending-Ip: 104.130.96.5 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 smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 5fa156297b1a71d668ef389a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 03 Nov 2020 13:07:53 GMT Sender: mkenna=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 3FD48C433F0; Tue, 3 Nov 2020 13:07:53 +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=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from ssreeela-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: mkenna) by smtp.codeaurora.org (Postfix) with ESMTPSA id 47F28C433C6; Tue, 3 Nov 2020 13:07:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 47F28C433C6 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=fail smtp.mailfrom=mkenna@codeaurora.org From: Maharaja Kennadyrajan To: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org Cc: Maharaja Kennadyrajan Subject: [PATCH] ath11k: Fix the rx_filter flag setting for peer rssi stats Date: Tue, 3 Nov 2020 18:37:37 +0530 Message-Id: <1604408857-5912-1-git-send-email-mkenna@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Set the rx_filter in ath11k_mac_config_mon_status_default(), only when the rx_filter value exists in ath11k_debug_rx_filter(). Without this change, rx_filter gets set to 0 and peer rssi stats aren't updating properly from firmware. Tested-on: IPQ8074 WLAN.HK.2.1.0.1-01230-QCAHKSWPL_SILICONZ-4 Signed-off-by: Maharaja Kennadyrajan --- drivers/net/wireless/ath/ath11k/mac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 7f8dd47..c2d013a 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -4094,7 +4094,8 @@ static int ath11k_mac_config_mon_status_default(struct ath11k *ar, bool enable) if (enable) { tlv_filter = ath11k_mac_mon_status_filter_default; - tlv_filter.rx_filter = ath11k_debugfs_rx_filter(ar); + if (ath11k_debug_rx_filter(ar)) + tlv_filter.rx_filter = ath11k_debug_rx_filter(ar); } for (i = 0; i < ab->hw_params.num_rxmda_per_pdev; i++) { -- 2.7.4