Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4306189rwd; Sun, 4 Jun 2023 02:18:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ50LxPpRAPnv5R8NNgAj34CQftFbbmdpSVJ782i2SJ8xpoj+q6FVF2LGbqzi1iQQgfsghoq X-Received: by 2002:a05:6870:a344:b0:1a2:aaf7:4320 with SMTP id y4-20020a056870a34400b001a2aaf74320mr5739339oak.2.1685870289389; Sun, 04 Jun 2023 02:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685870289; cv=none; d=google.com; s=arc-20160816; b=yffBqAU0yq/jW0x3/X500wgQOMgtrr4Hn7uGc4+LH33JscTnPRCAe/ydj1wWXSMyLl ePinVv1+mTANwxX7bfxt/HzpwV4ZtUWAcLaF2z64J+0m04iGifXi/xFWgJnrdV3VQPqs YorUG9w8T135hvU3PGiiQuMmudR/gIAo0eegke01zwME9mPnl4h8cEf+0hp2mtddbGxu NTX+8z/UWR4F09XHxeKXE5SjChwWkZ9ZhEDAChrtldlYCUnEePfExfRzVqU5W/Gf8v9h TtxeIOJRTPbUJ9iWfXlAGaVBQhBRvT+RgMQ9JGZ/B9K583oMfwdRp8EAa80HaICMRZvO rv3g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eYPeSMfLGciRCXGvHi2G3tQqR2tdNBqfw6LoxXZrHts=; b=HPQpynH3NoouuFJ+JHHUq7qBhoMJ6kOPHLST0FrVhTH53mUhzQPxrCvRIco3M9apUH ywYpa4c6+Z0Y9fWGSZiiUAEASBbE3PEz8DDBYXQjRMJRyH9xkbIg/+daHJ3xEwToNK8j 8Eycb0ZudH6Gbile8/3vaHlObaXm9xZwem91VAVznFDmixV10winJKQ+wXQaO9o3jyQP qOqn0FrfboaG+YGb9Zjl9GR+ueiDwo6PydXZbco5IcLb27QUn+KjLwHxTEufjLzf3U4x 7ahVYUw7FEUgLLy7TNTvTbXBczBvHlO2KgYjBV5nV3PbIeYpu8AzvdXYmNLzKXFLDJYd aDyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="HX4/mZQ/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a170902dac800b001a1ee8ceedcsi3950411plx.495.2023.06.04.02.18.01; Sun, 04 Jun 2023 02:18:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="HX4/mZQ/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231148AbjFDJL4 (ORCPT + 63 others); Sun, 4 Jun 2023 05:11:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231140AbjFDJLy (ORCPT ); Sun, 4 Jun 2023 05:11:54 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66F73B1 for ; Sun, 4 Jun 2023 02:11:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685869913; x=1717405913; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hp2tzqMm1p/VMXXzdT6imo/Wil+zcAhDp/JRnbDdss8=; b=HX4/mZQ/3PDlfsXgzAi+nl1S8VCo4NJadYtFpeQNT0sDVmSkk7ofEBXF FLRDnprd0dvoVq0JzU695oGdCjMM6Idpl/O3GRJ80zSQ0Sqg2QKYBQgXj yobb4Ja+6uYx8B4hrBaVmsesstlhhnpvoGwgg6zXXVCA3AnvqKv9F8MGc YaUuiTY43BmEWHWnc+z3IzQEgCGtGBbY8GOAo7VGnmK3raFDHLw46JWYi mSAz+cnDyDkjI/A4dDyYfdEYXNhfAuztJDo2x8eD/CXJdgQ/H1h+5dRH5 7fcZu148CvykThqjZMWLLsTsN3r8KKOjoEgEqLXxSZHftRMWF7jevA1Xx Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10730"; a="336526490" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="336526490" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2023 02:11:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10730"; a="820804378" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="820804378" Received: from yfruchte-mobl3.ger.corp.intel.com (HELO ggreenma-mobl2.intel.com) ([10.214.219.60]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2023 02:11:51 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg , Gregory Greenman Subject: [PATCH 03/16] wifi: mac80211: don't translate beacon/presp addrs Date: Sun, 4 Jun 2023 12:11:15 +0300 Message-Id: <20230604120651.62adead1b43a.Ifc25eed26ebf3b269f60b1ec10060156d0e7ec0d@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230604091128.609335-1-gregory.greenman@intel.com> References: <20230604091128.609335-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Johannes Berg Don't do link address translation for beacons and probe responses, this leads to reporting multiple scan list entries for the same AP (one with the MLD address) which just breaks things. We might need to extend this in the future for some other (action) frames that aren't MLD addressed. Fixes: 42fb9148c078 ("wifi: mac80211: do link->MLD address translation on RX") Signed-off-by: Johannes Berg Signed-off-by: Gregory Greenman --- net/mac80211/rx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 58222c077898..d996aa2579df 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -4965,7 +4965,9 @@ static bool ieee80211_prepare_and_rx_handle(struct ieee80211_rx_data *rx, } if (unlikely(rx->sta && rx->sta->sta.mlo) && - is_unicast_ether_addr(hdr->addr1)) { + is_unicast_ether_addr(hdr->addr1) && + !ieee80211_is_probe_resp(hdr->frame_control) && + !ieee80211_is_beacon(hdr->frame_control)) { /* translate to MLD addresses */ if (ether_addr_equal(link->conf->addr, hdr->addr1)) ether_addr_copy(hdr->addr1, rx->sdata->vif.addr); -- 2.38.1