Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp893109rwi; Wed, 19 Oct 2022 04:24:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4fS6TBioE5ssmSzDMG/BZGe9I8UVXriVe0R2uEVx8UYqyNMX+xYKvWyS/nF8jOKSvUlsg3 X-Received: by 2002:a17:90b:17c9:b0:20d:b4ee:aec2 with SMTP id me9-20020a17090b17c900b0020db4eeaec2mr34443528pjb.234.1666178695793; Wed, 19 Oct 2022 04:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666178695; cv=none; d=google.com; s=arc-20160816; b=Z5U4nfMzVplJ6jcI8W5RNcqfQ/W4G7tIjPZCQknbAbbUqDt7iZ8ehG9Qs8wqVU02c/ A8hkAJ7DwTqbzYNKdBDvRKvCZ94BZJohI3KDZf6G/1y9yfGXuMpdl/VY4CD7ev4wRQTu cBhEecaXrpi2obIONL/6V+hgtXl017F4jzUsbW+ycy++8l47lfSNAQbE1hQ/Tc/aQ4ki vaRNVpb+d+iPM8m95k2Hs2vqOveO1yufBI+CbCSHJ9DYTd5In6hiAtY+ng2JdEBvY1/C P4fe6rBHgcXksrREeOmiujDhZdSYtw12hIa7sb89hSuBnwace/o/9GvvXtzHuUNVukF/ 9AOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=s36QNv/moHHJ+f1RqNZgsNfQjM0SpYNUcmf7spZNn7Y=; b=Fjee8uce58hNNNMGymc2vnkIyOxKoImaVCOcyVGE0dO+MibG6L4ackZlEbBBroLIWC Ss+aJho7rC+OQfR6e2dHB1oSzShhqSQ95qxR7aXshNCLSrnycsjcI9nSaP5DU/t4m6jR xv4dk7K1tDnty82b2MbjMXG0fbg95L4202v6MWcXpDUGizB4UsgiuEbWL2C6G2aa0AFW Y5X8M/aR1CqI2t4DKCEOoO39bCAdeTJlZ0CLzWpf01qNM/V3lx3M/1QNkjiuldQ4rV16 68AlQUi/6x36TP0NPqY0hFU9vazpgNI5C3eCAAcFg60QBV1SK6dW2uGtVCPHgsVkJbR9 /sIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=gyEbPrU6; 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=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a170903230900b0018532e03614si20246268plh.470.2022.10.19.04.24.43; Wed, 19 Oct 2022 04:24:55 -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=@sipsolutions.net header.s=mail header.b=gyEbPrU6; 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=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230157AbiJSLM6 (ORCPT + 64 others); Wed, 19 Oct 2022 07:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230384AbiJSLMf (ORCPT ); Wed, 19 Oct 2022 07:12:35 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 082A0303F0 for ; Wed, 19 Oct 2022 03:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=s36QNv/moHHJ+f1RqNZgsNfQjM0SpYNUcmf7spZNn7Y=; t=1666175976; x=1667385576; b=gyEbPrU6sBS5kxCmEah0RJ2cfUAvFtUMMl9Z2gsUbZ5eiLG Xq+74oih8jKHvkte6yvui/gt6gGAKsZO9fAnsjr2obvkkv1g8SU+sv4nQzb7ME/eLNNPIj92BT4RC ROS4Ypdj1JbLOkpkBgz4Jhiz4lmBE7+iUFTMfIGExLZHOXaWsdzrE148dSdgZdSAphNyv+H1pmYUZ 4rDh8rGVr0TyKDtYHFH5riZFPt03kBhuVTMab3bCUuQLSxGOWLUV/OObNZEdaw+K5pGMscXJwqwtJ iaNQzNs3rkpexByknuTOBvbVi2Q+zaYuTB7UIZU+OjfxNrCl9Z8i2RiOVcUOSIAw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1ol5Wz-00B30v-0z; Wed, 19 Oct 2022 11:38:33 +0200 Message-ID: <5f652efb43226f67e932f5aaf97cd717992bfd81.camel@sipsolutions.net> Subject: Re: wifi: mac80211: Re: unicast probe response bssid changed by "wifi: mac80211: do link->MLD address translation on RX" From: Johannes Berg To: Wen Gong , linux-wireless Cc: ath11k@lists.infradead.org, ath12k@lists.infradead.org Date: Wed, 19 Oct 2022 11:38:32 +0200 In-Reply-To: <9fe7c0f2-e02f-e87f-dced-90e973c8992f@quicinc.com> References: <9fe7c0f2-e02f-e87f-dced-90e973c8992f@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 On Wed, 2022-10-19 at 17:35 +0800, Wen Gong wrote: > On 9/14/2022 11:13 AM, Wen Gong wrote: > > Hi Johannes, > >=20 > > The mac addr of unicast rx packet all changed to the MLD address by=20 > > below patch. > > Now the probe presponse which is unicast packet is also changed mac=20 > > address here. > > I found bssid which is the MLD address of my test AP in=20 > > cfg80211_get_bss(). > > For example, if the AP has 2 mlo links, link 1 is 5 GHz band, link 2= =20 > > is 2.4 GHz band, > > then the 2 probe reponse will be changed to a same one. > > seems we should skip probe presponse for the mac address change here,= =20 > > right? > >=20 > > https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?i= d=3D42fb9148c078004d07b4c39bd7b1086b6165780c=20 > >=20 > > wifi: mac80211: do link->MLD address translation on RX > >=20 > Hi Johannes, >=20 > May I get your comment about this? Yes I've actually seen this issue as well. > I did below change in my local test to workaround the issue. >=20 > diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c > index a57811372027..eaff5353520a 100644 > --- a/net/mac80211/rx.c > +++ b/net/mac80211/rx.c > @@ -4858,7 +4858,8 @@ static bool ieee80211_prepare_and_rx_handle(struct= =20 > ieee80211_rx_data *rx, > =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 shwt->hwtstamp =3D skb_hwtst= amps(skb)->hwtstamp; > =C2=A0=C2=A0=C2=A0=C2=A0 } >=20 > -=C2=A0=C2=A0=C2=A0 if (unlikely(link_sta)) { > +=C2=A0=C2=A0=C2=A0 if (unlikely(link_sta) && > +=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 !(ieee80211_is_probe_resp(hdr->fra= me_control))) { > =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 /* translate to MLD addresse= s */ >=20 Maybe it should also be for beacons or so? johannes