Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5549558pxb; Wed, 19 Jan 2022 22:43:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/DDFj0F44TKNpYgtmqcifMbRek5aeeb2y07m/S3lXSHMmqQZa401nGwowd9DhEhiMQJbV X-Received: by 2002:a17:902:7786:b0:14a:e8f4:a9d4 with SMTP id o6-20020a170902778600b0014ae8f4a9d4mr9578042pll.86.1642661038445; Wed, 19 Jan 2022 22:43:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642661038; cv=none; d=google.com; s=arc-20160816; b=C6ZX1PX8nlhtw20JJYJA+AdP2g8yK5PGFjGax6sva/Hk01YsRSrKQo1H27sBCVRVmC 2q/oof0BvcBYYHGsbT+G9gBAWGksAqHAdkwa7BDK/n8N3evATPuxWNoPoemWK97yEwsU g9L3ib3uWS8YF5WY4v4gb2KYd1DmjF9U6p5cxgMUvME8ceFIKpgnh8Eghzvu+jnnDMRy s5UQMzY9xf3cPeNiDVdRyGPupYqFXwQzMDNQMxQYNAPgtgWOK/Z+zOMc7lT3pylKzD9y EyPxfHEtuonJKYp8zyf+JYJhN0KtD+fEdmAaTsmPSwzKvOt3Zh4z8rUVmZEYY9dTwOwi hhnw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=cZObEgVZLxqBXkd4JrfZEzTPcVcFoY8vBoQKpEHsKk4=; b=ey/fHl8h8RkYmgPOQS8eJkThMqAlrw3w+5CDZGWGD4X2y0te1KY9RtF57kolcmNXeH fPWLTr3B3v4QceMjcDVMXsURNbj9V6tqemjOW9Tp1IuysFTO8zpTzR650E47RNOtOXtV 6TZxsAfjgbzRT1bK2lxoFcilqFW3nHTW0Q7kSbSQCP+x44yW5a+D/Bjpr4Jdcz1nnuCi PYT/zCk08kl7Wypchb6R/U/B+e3K/UdM5apr+368ozuQtkeNuzUnKOsyPGotl898rWEj s38qn3dfnmg2HqZSh5m08aq2q/Fyetc4cEPiJ1EfjiETDKkOXHAIWhQibYP/f8yVIWxP NUcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si2220879pgw.815.2022.01.19.22.43.41; Wed, 19 Jan 2022 22:43:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237579AbiARKim convert rfc822-to-8bit (ORCPT + 70 others); Tue, 18 Jan 2022 05:38:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237302AbiARKil (ORCPT ); Tue, 18 Jan 2022 05:38:41 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C77FC061574; Tue, 18 Jan 2022 02:38:40 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 2D5A0FF80C; Tue, 18 Jan 2022 10:38:34 +0000 (UTC) Date: Tue, 18 Jan 2022 11:38:33 +0100 From: Miquel Raynal To: Alexander Aring Cc: Stefan Schmidt , linux-wpan - ML , "David S. Miller" , Jakub Kicinski , "open list:NETWORKING [GENERAL]" , Michael Hennerich , Harry Morris , Varka Bhadram , Xue Liu , Alan Ott , David Girault , Romuald Despres , Frederic Blain , Nicolas Schodet , Thomas Petazzoni , "linux-wireless@vger.kernel.org Wireless" Subject: Re: [wpan-next v2 08/27] net: ieee802154: Drop symbol duration settings when the core does it already Message-ID: <20220118113833.0185f564@xps13> In-Reply-To: References: <20220112173312.764660-1-miquel.raynal@bootlin.com> <20220112173312.764660-9-miquel.raynal@bootlin.com> <20220113121645.434a6ef6@xps13> <20220114112113.63661251@xps13> <20220117101245.1946e474@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Alexander, > > > btw: > > > Also for testing with hwsim and the missing features which currently > > > exist. Can we implement some user space test program which replies > > > (active scan) or sends periodically something out via AF_PACKET raw > > > and a monitor interface that should work to test if it is working? > > > > We already have all this handled, no need for extra software. You can > > test active and passive scans between two hwsim devices already: > > > > # iwpan dev wpan0 beacons send interval 15 > > # iwpan dev wpan1 scan type active duration 1 > > # iwpan dev wpan0 beacons stop > > > > or > > > > # iwpan dev wpan0 beacons send interval 1 > > # iwpan dev wpan1 scan type passive duration 2 > > # iwpan dev wpan0 beacons stop > > > > > Ideally we could do that very easily with scapy (not sure about their > > > _upstream_ 802.15.4 support). I hope I got that right that there is > > > still something missing but we could fake it in such a way (just for > > > hwsim testing). > > > > I hope the above will match your expectations. > > > > I need to think and read more about... in my mind is currently the > following question: are not coordinators broadcasting that information > only? Means, isn't that a job for a coordinator? My understanding right now: - The spec states that coordinators only can send beacons and perform scans. - I don't yet have the necessary infrastructure to give coordinators more rights than regular devices or RFDs (but 40+ patches already, don't worry this is something we have in mind) - Right now this is the user to decide whether a device might answer beacon requests or not. This will soon become more limited but it greatly simplifies the logic for now. Thanks, Miquèl