Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9122088pxu; Mon, 28 Dec 2020 07:10:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+Oj/6RkZbV5PQbec0o2dCJvOGbKTF2+YvXm6FRx1BPdSZKqXQXs3ssuD6eCKVnxQCTw21 X-Received: by 2002:a17:907:c15:: with SMTP id ga21mr42512824ejc.472.1609168219205; Mon, 28 Dec 2020 07:10:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609168219; cv=none; d=google.com; s=arc-20160816; b=B6Gt+iYYybWHy5wpU3mlP3wSFJ8GVnVVrtPmUkEROUkZFUshfss9MWv6qTzQCgNkX2 K1pvX7kjqYxCsPCMrRoSHZ1UrMt+G7Cogy8ZbhowtjenOWIphIckp3rwpXuqLtGbiv4y 9ubdQAHkjFup2G8N0qvW9COPz2MthPCPjGHmry8GUWL4DO1n4RYBKiuzSulPboyrI6pN 7sRGXLrA2+L1MvTJX8rcLoNpP9ExmdUVjbVS+8ZkuopXDHqlpCsXeH3SZQJ7iGJpQUSi oWEPC4WaH4VGj/tp6KgVPYD4Yo+mX6WnXUWlTUw52UNoo5VjTjeXOUgOORoeOHLh+Hyl B0UA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2Zr9dQb0fYdCX+jZFCN7Bc2/hck1drFRzNAQsh22jYs=; b=M22UAL7+MlUCPDfOoTpwFku7qHuEhfZ8SwAp8yu0edJZKjx63eQZAOur7AhXHSrN7Y WWb7kdSpHUrBfHoJHRld/XVERn075D0gZfH8oH+WuEhmNurEY9egb4VxTCymobA1n4ET vchgPYwjsUV6YtXUpTsTAetL6sycrWbWO6pXozRHr50rwhvuXrrA9y0R+oUkqTwdSbWq 7z8IzFKfRZmYdWwWzqk5Ycgozas50iHWIzc0wXv3O4MjS2SsyOHsNo5mjxuTSDaytUfo eRUbpNmaDJJfR2wQwGf0kusqyj2YWM135GHDZB6Wv5MTG1ty5yeALwNc3aKCqqmlWB7D 4cOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=X4AdPzOe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si20187099edq.546.2020.12.28.07.09.55; Mon, 28 Dec 2020 07:10:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=X4AdPzOe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391753AbgL1OIj (ORCPT + 99 others); Mon, 28 Dec 2020 09:08:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:42858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438631AbgL1OIQ (ORCPT ); Mon, 28 Dec 2020 09:08:16 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8D08020715; Mon, 28 Dec 2020 14:07:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164456; bh=DG8z1ZiAGb8buuS+lTbifoT3aSILK7prZfeU9Rw4JiI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X4AdPzOeljGjupo6/JUSQ/a2Y+P736ALwmbj9dLsjCwGgrPWNVpcROcyaryuRXgwK 8ABjtoEsxVPVohynotc9sBLcsZnmCwepuF7J6Lysg9UlzJ24zcIIrGbKCjVXX3HKYG A59uNP3TVFck7D5dgy0QvwhZD91KA/4ejG6h2FvI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maharaja Kennadyrajan , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 187/717] ath11k: Fix the rx_filter flag setting for peer rssi stats Date: Mon, 28 Dec 2020 13:43:05 +0100 Message-Id: <20201228125029.929660428@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maharaja Kennadyrajan [ Upstream commit 11af6de4799ee6eeae3730f18fd417414d212e2d ] 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 Fixes: ec48d28ba291 ("ath11k: Fix rx_filter flags setting for per peer rx_stats") Signed-off-by: Maharaja Kennadyrajan Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/1605091117-11005-1-git-send-email-mkenna@codeaurora.org Signed-off-by: Sasha Levin --- 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 7a2c9708693ec..f5e49e1c11ed7 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_debugfs_rx_filter(ar)) + tlv_filter.rx_filter = ath11k_debugfs_rx_filter(ar); } for (i = 0; i < ab->hw_params.num_rxmda_per_pdev; i++) { -- 2.27.0