Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9089654pxu; Mon, 28 Dec 2020 06:22:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKZVFXm6k30fnk29XM6Q/6Gtb6E8FXm4t7mT0ZGL6IsML+n8Jljhehr+UAOehY7CED9DMz X-Received: by 2002:a17:906:31d2:: with SMTP id f18mr41550873ejf.407.1609165379322; Mon, 28 Dec 2020 06:22:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165379; cv=none; d=google.com; s=arc-20160816; b=RRfgLd8r/7xZgLxzeYzGg7NA5ATiA057j8EWe6euJtgC80QFUelSXpFCEaeeAwkgKN n2UP1UXpc/olJ98l0suMQkSQ267Eg/S0CS7f61/oFuo6c/7P3XlkNvpJ5aqiWxZwibjk X0KWBxAAQWMXKHeI9EZPxZfwBg2Kz4T6zGCCcZrSuaC2nzEaiV+fgSZTl0V1tBU4H1lh AxMnHe9T4AA62u9sEJoGzjffaqA8EmA9+jj4LSCh0CHwaGZEUESPt1W9mxtAjM/8KbEC U2zsBIw/LYRGCgmHZbnjPSCYMesdw3Rr5mnePR63O09aYHzwzO+L2zSdejxkJZyTHbRV m9cg== 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=BG07O1W5FPTXI6dtVPgmWHKFncAtHAy7bPhw3vzuvWE=; b=eBsDl5FOHcyUlJmQvgEF5D4f2CmyYQOcR05rKHO7wsi3eSbXCv9YH1cS1h5cUW6s0V ecZLfBH/HUiBpR9eMeALg5iC5A0KZ18xVJnR+KG40uuV9No5AdCkZOGvsqtxd21wBzQf mEQ/AOLlMwW0HVVJL4isw5UbT25OSObQVk+YsouOhvGFhtiGSvRecDwqkfnRWDsK5VmJ fLwN3b/oRkIoJnA84p+dHbPhlY1hASe1AjqSV0v6eNW72KSzGqjCPfrn/E68nlwRboZX H1L51kbpfZT+WPEIA+F7rTj2VlKNQb7dMoAgfhWvkpu9vUtl+aAGwJo9lrD7lgyxW0jC Hy9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jZoTOUKB; 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 s16si16970595ejf.641.2020.12.28.06.22.36; Mon, 28 Dec 2020 06:22:59 -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=jZoTOUKB; 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 S2437831AbgL1OUq (ORCPT + 99 others); Mon, 28 Dec 2020 09:20:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:56064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437823AbgL1OUo (ORCPT ); Mon, 28 Dec 2020 09:20:44 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4A2DB2245C; Mon, 28 Dec 2020 14:19:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165197; bh=cPasQO7LZpTRQC1SlF1z+2fUswQxkMPTqJybbRKynOc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jZoTOUKBvGpaaAfpWr87rhJPp1qya0NSWuMR7KHDVYRnDqXwd2PvkC8i9VOCTlhFy m4rF9u4ZVJWA2/uGASfU7fI8JcLX7c/adxmhWLrV80QVxG9a9Yurx7peU1jn4n+J0H 9wqZV86eUD4jboa/l6D5jcen9a5wtLb6VRQ7uu0g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wen Gong , Johannes Berg , Sasha Levin Subject: [PATCH 5.10 416/717] mac80211: fix a mistake check for rx_stats update Date: Mon, 28 Dec 2020 13:46:54 +0100 Message-Id: <20201228125040.900007631@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: Wen Gong [ Upstream commit f879ac8ed6c83ce05fcb53815a8ea83c5b6099a1 ] It should be !is_multicast_ether_addr() in ieee80211_rx_h_sta_process() for the rx_stats update, below commit remove the !, this patch is to change it back. It lead the rx rate "iw wlan0 station dump" become invalid for some scenario when IEEE80211_HW_USES_RSS is set. Fixes: 09a740ce352e ("mac80211: receive and process S1G beacons") Signed-off-by: Wen Gong Link: https://lore.kernel.org/r/1607483189-3891-1-git-send-email-wgong@codeaurora.org Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 1e2e5a406d587..2a5a11f92b03e 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -1758,7 +1758,7 @@ ieee80211_rx_h_sta_process(struct ieee80211_rx_data *rx) } else if (rx->sdata->vif.type == NL80211_IFTYPE_OCB) { sta->rx_stats.last_rx = jiffies; } else if (!ieee80211_is_s1g_beacon(hdr->frame_control) && - is_multicast_ether_addr(hdr->addr1)) { + !is_multicast_ether_addr(hdr->addr1)) { /* * Mesh beacons will update last_rx when if they are found to * match the current local configuration when processed. -- 2.27.0