Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp235236lqp; Tue, 11 Jun 2024 22:56:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJKt1LYFAP/BtHpJBlrbcXeQOnE2XUxubE05Y5L4RzpA/eonClX0A0mnf8aj1TDg9mMK+PlUtTB/7Dvxm69dFXlZ8v41G16Hvgcsx1kw== X-Google-Smtp-Source: AGHT+IH+YgBg0qDGpRF2S466Mmc2r3vZTvBExy4jIqLNKLR/vdr+RqOZnjHsE2s6Ftct3U/tj5/X X-Received: by 2002:a05:6870:eca8:b0:254:cf3b:b6bd with SMTP id 586e51a60fabf-25514d95a4cmr1092799fac.35.1718171771267; Tue, 11 Jun 2024 22:56:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718171771; cv=pass; d=google.com; s=arc-20160816; b=U8MgxqefyIxEjnFnJto/R5l1R0kMxVF9q06vrjliRYD0Kwz/pQLyBebJhjbEONdYHH LxFuKGX8snNdeDeRx7FzeVOIvVNdQ/pdRLEQOJDGLZc1adXC4xls60aCZ9H//UlN+Tpt fJEZCvpGy8yjN63GvT+R0DXL/n8CDQ6Jw2OTgCAQA+EMDzvGUWJyAO59YDLC6OwBEkxY wudAN0KsKn3XJ/3ogwExwoTVjfH6yXdwantXA7JzjQaJpBO1t6ZPF1KKrGHGwBr203M8 5j3WgRtue+rcKZCTBVEvrGcKoRZFewO92flC3FZ9qzXXzH5wLv996OAJB/tUBf8mFo+9 l8gQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=b9yhks8V9I8fvGe0gXrRea1m0rrtje6Vd08UZ/b9zhg=; fh=QjFhCEVKlnTtrv0rjrCgJr3+rCQgFnP3/3+ptliheww=; b=grzsjyjz1zlsY9U/hb6blJ/gyl14sBIX8q4MUFHOsw5hlR6tQiELu1aXCh41Bf/It/ 5ZDZf6Y7c0dMEJ48F5d7W09Ugx6CIpRHJI23UWnDijU8gWR9bA1IFWlINtEd7JIJZK7B fonbCo/lMrIA5l3b3telVEg2N//A1DCfxbq73y8BT4s38bJf6RnauV/eKjKm+1j/eQzd FLp+n/MJ18kmPLDn1uIEpB2HcLi64aFZ8QzmWyaOGaab5g1kJ3EzNsB8E17klYTR/bJe +d5dc+Qz9twPXvJwvcIRNvc1yLQuTOqdDOa7KJJ4gghGs6mRzprwVF5aIZxIlNIKtoey EFjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NLQV5Eih; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-8828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8828-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de798fb945si10495317a12.270.2024.06.11.22.56.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 22:56:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NLQV5Eih; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-8828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8828-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A7F7D2826B4 for ; Wed, 12 Jun 2024 05:56:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C57C36AF8; Wed, 12 Jun 2024 05:56:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NLQV5Eih" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D1063838F for ; Wed, 12 Jun 2024 05:56:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718171766; cv=none; b=MJyvfC/BWJ0U2G+7icdJvqWSvYrnybdy1zf8JlZqwGq7wzoUqJFlbyrN3MdpXkpPNW/y9Xxkob/fkzbs9+y7hFxxLEVocUpxaT1qmT2FkZXrOktn4y7kyspcA48JCY9zPtTfM/2G9MBpJgyNBssjz4uakCMTJ7pObdCb4O2jUE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718171766; c=relaxed/simple; bh=b9yhks8V9I8fvGe0gXrRea1m0rrtje6Vd08UZ/b9zhg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=RxXwaz2jQwvTTvCc6hM4VIfBgrsz6eFCQCsWpy8pmhcVL5S/ubpz2C7q/sAGTe4oHiZ0S/XWbWV0ElwTnGWK3AaCCfden3qnQnlBpab2F0qHNbyNanAKGZvZiWBceoJvXA0WI4MhPJ3FYo7L8pbl5stSE2EJyZTscHw41DEdqMQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NLQV5Eih; arc=none smtp.client-ip=209.85.215.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-6ce533b6409so1462743a12.1 for ; Tue, 11 Jun 2024 22:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718171765; x=1718776565; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=b9yhks8V9I8fvGe0gXrRea1m0rrtje6Vd08UZ/b9zhg=; b=NLQV5EihW+iVCjqFebTEGZ9eYStylSwOQ1Qs9eejoHXx1kz1ZY5k+ZW5owMjdH1IZU h+cOafSZyznhnHi7hXcrvelBvCv247P23W9r+oCnu6gBtY2de+rJyuW5DHDYuWVFfAJA gDqtUrY7cIcW4D4VZHuYBIiWKMCIkjMs2CYl+iLYdGboA0ogsIi76+Nfn61K3aAY1t5Q lXhfoR/zvO9Z312r/7PlHTEC+5BW5LIsqWHooK67Ky+GHyTmVtkA8O6wpdvOfDSLq7Gl suEIalGcrZESk3/cvIK6eLNFAWsj6qqIdIwK48xcjoN1Wua8vsEuykjp6DM3hRHDaCRF JoLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718171765; x=1718776565; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b9yhks8V9I8fvGe0gXrRea1m0rrtje6Vd08UZ/b9zhg=; b=MSpzzO/fDa+cYeN56B/7W5nxpgRyDwwufT9RWqX72pnSZrqas5OQJIqxOJ64sq4RM5 eSmv6ZYJwgS+CgmobhX1LRL7W82vrpobOC9QEN41v+5dbuXBvYf/g223hHyJEvDLIO0p 3pQlSqJhxz4mcdb8o6AXMAKZ8uy+pubkMXIDqY5COYIpzcspn7DsNHn2aOWnG3A9bnnS CS4TYahJGwMv7lxpjU+KqjxgTvf8QrF5E5Z5s5AvKaSRouqtKIsesS1UQf52CxcdfHKs 0IjbxCDuKIXEOBlsApS1lrnNpnVCfrNApcUcKQE9rz2PJ4aRgGVEs277Kl5SX4Ektf2y 1FPQ== X-Gm-Message-State: AOJu0YyNFSaLb8Vx4DOLIJhqu2D56R4s2foNhMhsQVdlZWo/Zo1Br9VX itZTSEdnprP1EhwUV+92yuMH+yv8AEeFxmksVHZ0uT39D+CS9Vz3Xg/v5ZP2zSGHWqykWs59Uk7 IaO4Pe0QVinpfVaKHvKxjoI3yAg4= X-Received: by 2002:a05:6a20:918a:b0:1b6:d9fa:8bd with SMTP id adf61e73a8af0-1b8a9bc011cmr1354161637.25.1718171764665; Tue, 11 Jun 2024 22:56:04 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <868343c920c24204972ddaa108e5d00e@realtek.com> In-Reply-To: From: =?UTF-8?Q?Marcin_=C5=9Alusarz?= Date: Wed, 12 Jun 2024 07:55:52 +0200 Message-ID: Subject: Re: rtw88 multicast failure in AP mode To: Ping-Ke Shih Cc: "linux-wireless@vger.kernel.org" , Kalle Valo , =?UTF-8?Q?Marcin_=C5=9Alusarz?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =C5=9Br., 12 cze 2024 o 03:30 Ping-Ke Shih napisa=C5= =82(a): > > Marcin =C5=9Alusarz wrote: > > wt., 11 cze 2024 o 04:32 Ping-Ke Shih napisa=C5=82= (a): > > > > > > Marcin =C5=9Alusarz wrote: > > > > Let's assume we have 3 systems: A and B use 8821CU chip, and C uses > > > > another chip from a different vendor. > > > > > > > > If A is in AP mode and A and B use the rtw88 driver, pinging A from= B > > > > and C by local name doesn't work because name resolution fails: ava= hi > > > > on B and C sends a multicast request to resolve A.local, A sees it = and > > > > responds, but neither B nor C sees the response. > > > > > > > > In the same situation, but with A and B using the rtl8821cu driver > > > > (from https://github.com/morrownr/8821cu-20210916.git), everything > > > > works - B and C see A's response and can resolve A.local. > > > > > > > > If C is in AP mode, resolving C from A and B also works. > > > > > > > > This leads me to believe there's something wrong with rtw88 when > > > > sending multicast packets in AP mode. > > > > > > Have you captured air packets sent by C (AP mode)? (To check if TX pr= operly.) > > > > Yes, I see packets in both directions on both C and A if C is in AP mod= e. > > > > > Have you tried non-secure connection? (To check if encryption properl= y.) > > > > Nothing changes - rtw88 in AP mode sends multicast packets, but other > > devices don't see them. > > How can you assert other devices don't see them? Receivers don't ACK > multicast/broadcast packets, so have you added debug log in A or B? Because I don't see them in tcpdump output. > Compare air packets in non-secure connection between what A and C plays A= P mode. I'm not sure what "air packets" mean. I don't have a radio sniffing tool to see what's going on, and by the time packets are available in the driver, they were al= ready processed and filtered by hardware, so they can't be considered "air". If you have a specific place in the driver where you want me to put debugs, let me know.