Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2134810rdb; Tue, 20 Feb 2024 19:50:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXf0UGxBxjwZO4F3SpOexhC+SK2nMivuihQORWrsVrDMa9f/BOocnNR6pCCZHFzYHKnvDwGeM1i7nOULkCRaMFEMefkX2jiCcxtakvTGg== X-Google-Smtp-Source: AGHT+IFhtMJc3KYSHGI+HZNrHL5sTwB61QJJjgWGKmywVmXHteAtfK29+0GM/RJ++lNZYKov1vBT X-Received: by 2002:a05:6512:e9e:b0:512:bdca:bb5d with SMTP id bi30-20020a0565120e9e00b00512bdcabb5dmr4771265lfb.4.1708487422897; Tue, 20 Feb 2024 19:50:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708487422; cv=pass; d=google.com; s=arc-20160816; b=pF7AWUZGyyKMLuU/f1vpqAm0M5Iv1HeUD4Oc+dR6g8Ym3YVsKYgU5RtFOSK+wHciZN NDKWywqsRnCwx3QWZVvmrF3oUOVf2Tp+UyY6lN3YoLuOlc6dABMXqm8TYN9fCKn9QlxT GOsRKeBFBNUeDaYI19jsZeJZBHhSSfrLgggacjZxzjd5MhM+ZoRoAhy9uEnF8blSvUiJ ffNaAcc1cIlhslJiwrNGcIjUlrKF4AvjasU+B7rkB4e/eQxZf/KcZ2QFPBT9DX2drNk3 +jTNHDTCNy0nVlISYe8S1hlRfNFLWkQ2D0RSzWXHxowpqXnn2ZQADIc3pqibT0b27b+s 3JJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=e8qw/W7WciIoIxmEDrFyAyTEWAtj07O6Yyg0bIXdv3Y=; fh=Q3/dnGF6bH75fNHQxJp1RhGQHlIJ/gU9fLHTEaeNFwE=; b=IuJjqF1q6FWuT1oaFLYRfXO1H1Qv2fzQLOsOJjXqoDAB6+C47fslQzV2JQQ65qjHIV I72RRCniq7MUus+fpiXcAbBRZ3mDuHw42xArCpNrFMoCVNp+otTs4q+LqQWuTTEWTd/B TjbnOKhSrd56i+kWuYNTAP68NfnBindaNvCxAxc8aiZir8uHsEMzOkqaP9QL3vxISL/9 RjzZX44ouF6F9CgdRWXfHHMTmiIIzBIHE4UnaXfyfyBsrmlxFFQUctDMM9ep89OypXvT U5MRVkqeTbZv5sOqKevJ5UMxfU16JwvNtxVGVqOb+Xl8zB0XhXs+x2thzUgah/fyiixh lwag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=akCkwgPC; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-3837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j27-20020a170906255b00b00a3f1cfc0817si701690ejb.955.2024.02.20.19.50.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 19:50:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=akCkwgPC; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-3837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 16A391F232A9 for ; Wed, 21 Feb 2024 03:50:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D85DE25613; Wed, 21 Feb 2024 03:45:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="akCkwgPC" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A41039851 for ; Wed, 21 Feb 2024 03:45:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708487135; cv=none; b=sb8F9+n0B9jndo7Hw3VW0bhafZwFwVZ1kqgdzYdFt8CyApKAc//ZO0oB+wevjYGbJLYdqwaS4wmPl8GrlSd13j60hoFzu26fcI1xcVjDVoicdHdonLSiE4WmSHUjuMGAh22R7C4f+m43xUhYcYf419SPDzNT8lCydRktZCLaxSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708487135; c=relaxed/simple; bh=+fjVFtdLm6Ytbx9gLheoPCRF4BdbD3bveqhy/93u3HY=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=cN5FFQBWgLX3ebhiu3HXmW0XagKr76a0h2OqmdZVFPfFKUQuJWnA8xmIWVsIgBKcrDpQ7YCZ592dnlLoxDLd9AWvanAQuIPM2QGi5nfYANxFZ3Bdr8oRb/0EhbgdvS9Cj3FXWs2S4vtkEuH7s1AR5t8+cfQWSR2iun3m7jcgJkY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=akCkwgPC; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41L2CaUa023429; Wed, 21 Feb 2024 03:45:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=e8qw/W7WciIoIxmEDrFyAyTEWAtj07O6Yyg0bIXdv3Y=; b=ak CkwgPCubLrbab9B+4JVexFPSeMR4psr8E6E1Q+kxuf5eL1SG4YJEn+7BQ9DQthVv uv3UpPkalO++zKXlhrjPs4zQXiCj1L4w0cVGg7N+le8UhceVMlapjhtozqF1BtIL hkDTcOOihPug/TeRWnFTNH3rjcfpi7MLgT0+8pMRRSlqz0Wkoa5cmrvmm3Jqk+EK llf/0YOXC9wUlq5w8S2rpdF8iAcKTbevyyaeGL34TVzkMrV+yAIhv+25LOcZ2gEg M2DjM7LQFxpTc1BUXQnKnW0MxF84o6Qv7iTXkrFUuMJhpqtx/ixl+F+TWcZnJNmG HIe9A1AOEXObN9PAh3TA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wd21s8vex-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Feb 2024 03:45:30 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41L3jTap014152 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Feb 2024 03:45:29 GMT Received: from [10.231.195.68] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 20 Feb 2024 19:45:28 -0800 Message-ID: Date: Wed, 21 Feb 2024 11:45:25 +0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ath11k multicast action frame RX Content-Language: en-US To: James Prestwood , "open list:MEDIATEK MT76 WIRELESS LAN DRIVER" , References: <642b61a6-e3c0-4831-887f-f25314bf166d@locusrobotics.com> <90ac3bdc-8797-4d57-8bc9-48e0ad406674@quicinc.com> <1dafe0e5-292b-4764-86c7-cc1757aeb3b6@gmail.com> <7a62031b-ad1f-4da2-8217-19a5d7fdc0f4@gmail.com> From: Baochen Qiang In-Reply-To: <7a62031b-ad1f-4da2-8217-19a5d7fdc0f4@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: uzanLWPHl4qgtbRgredxBwpb8Yms52Rk X-Proofpoint-GUID: uzanLWPHl4qgtbRgredxBwpb8Yms52Rk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-20_06,2024-02-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 priorityscore=1501 adultscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 clxscore=1011 mlxscore=0 suspectscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402210025 On 1/31/2024 8:28 PM, James Prestwood wrote: > Hi Baochen, > >>> As you may have guessed I don't _really_ know what I'm doing. When I >>> got this working with ath10k I saw monitor device was being used in >>> order to receive probes, and did the same for multicast action frames >>> and it "just worked". The frames themselves were still being received >>> on the station device. I attempted to mimic the changes with ath11k. >>> >>> The end goal here is just that, be able to receive multicast action >>> frames on the station device which currently does not work. I'm only >>> seeing unicast frames when i enable RX debugging. The driver support >>> for multicast action RX in the kernel for this is basically zero. An >>> extended feature flag was added by Jouni when he added support to >>> ath9k, I added limited ath10k support for a variant I tested, and I'd >>> like to do the same for ath11k as we are transitioning to the WCN6855. >> OK, so you are testing this with latest ath.git, without any private >> changes, and it doesn't work, right? Could you share your test steps? >> Basically how are you sending multicast action frames from AP/peer, >> and how to check if that frame received or not (I am assuming by >> checking RX logs)? > > Yep I'm on the latest ath.git, and with no changes apart from that MSI > vector hack to get it working with vfio-pci. > > The way I'm testing this is using IWD with DPP PKEX. Building IWD should > be relatively straight forward, very few dependencies. This will also > include iwctl which is IWD's command line utility: > > https://git.kernel.org/pub/scm/network/wireless/iwd.git/ > > I have two devices, the configurator device (device A, ath11k) is what > should be able to receive the multicast action frames. The enrollee > device (device B) can use probably any hardware as sending multicast > action frames should be supported. IWD will not start a DPP PKEX > configurator without EXT_FEATURE_MULTICAST_REGISTRATIONS set but if you > enable RX logging that should be good enough to see if the frame is > making it to the ath11k driver itself. Once multicast RX is supported we > would need to add that extended feature to ath11k, or at least the > tested variant. If you want, you can hack in that feature bit and start > a configurator but if your able to get the muticast RX working I can > probably take it from there: > > 1. Enable RX logging on device A > > 2. Start IWD on device A > >     iwd -d > > 3. Connect to a network on device A > >     iwctl station connect > >     > > # Optional: start a configurator. This won't work without the ext > feature set > >    iwctl pkex configure secret123 > > 4. Start IWD on device B, do not connect. > >     iwd -d > > 5. Start DPP PKEX as an enrollee on device B: > >     iwctl pkex enroll secret123 > > On device B you should see IWD first scan to establish nearby > APs/frequencies, then begin iterating those frequencies and sending a > multicast action frame. Hi James, I reproduced this issue following your guide. From the advise of firmware team, a new flag is needed. With that flag, I did see the multicast action frame in device A logging. Before I proceed, want to clarify something: that frame is only seen after device A triggers a scan (I triggered it manually using iw, not IWD itself because IWD not working on device A due to unknown errors), if no scan no frame seen. I am not sure if this behavior is expected so now checking with internal team on it. So there comes a question: will IWD triggers scan on device A in order to receive that frame? > > Thanks, > > James > >> >>> >>> And help is much appreciated, and I'm happy to put in the work its >>> just a steep learning curve coupled with the fact that any FW level >>> communication is proprietary. I really just need a nudge in the right >>> direction. >>> >>> Thanks, >>> >>> James >>> >>>> >>>>> Thanks, >>>>> >>>>> James >>>>> >>>>>> >>>>>> Thanks, >>>>>> >>>>>> James >>>>>> >>>>>> >>>>