Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1200657pxb; Fri, 21 Jan 2022 12:06:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJznlRzY1Gz9LwbG5ZVlvURn2OVoob6RGgnq7kMeA7FVTOlkLT7DlWwkqY9VKikr2x/wAyAQ X-Received: by 2002:a17:902:9046:b0:149:6fd4:4928 with SMTP id w6-20020a170902904600b001496fd44928mr5156296plz.135.1642795606758; Fri, 21 Jan 2022 12:06:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642795606; cv=none; d=google.com; s=arc-20160816; b=J55bXoUTIWR233H0owb1/EN4NGWroRSd39ZdXLPMF7EJ2JZE5qtZkYUdrZs3Z6NMHA +o6ivN5uusauHeB0H90LrubwZPbpZcpo0NL1Cl3KUykiYQlRN1GH94deiedp+RgGyuWH d37UKUC+1Jny7REOnR022HSwPhy5ESkKkv/wluXW+vLDJVl2V8pEZtKdp0wg0QsVaSGu srFauQVGqNbOO3StcpFupAlBxmW+im0Wr0twWh2F6Pr5O67oiVrNqwEq43BzNpPHsE4b Q+4LIkfHCAvxgHkVT4of2aaAeSfN20+H8J3i2Q/uJH5FXm4hN0Fguzgyj6bOaS/1saGr Okaw== 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=9Ek1/EPulUnOWcdubQBU9NrOQmWZBywY+SjbMMB8UmA=; b=oozvy9/WvPMPG7sqh3QzDKUoqX7s880nWi/9WOn5yYyDwxLZJ85mAiSIeQ1xiRzpqH dRefIxoPxwOfrGYQVhDhffkigahZokfCC6U4mTp86cUXsYebCxzymiQaMC/nMU9emI7f vmVh0AP5hXtr8mm4XpZvDAt5Ng3TcaYZv700YC4adQ29Da/bR6DCiEwWOifsC4HHlaRg 5i2Z/26bsyZq6toAI825G2UnpgYVryi8m8WwhzoMJPPkj9daNJdDMa7ZAxy+QeyroGNa 85YLSBF/syDX0B0mncYuRDlh42I4p8Pll/TgprEs7Y608/w1TQ7rtCDd8pZ/SP5yFj/X L2xA== 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 b9si362385plz.460.2022.01.21.12.06.38; Fri, 21 Jan 2022 12:06:46 -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 S1357489AbiASW0L convert rfc822-to-8bit (ORCPT + 70 others); Wed, 19 Jan 2022 17:26:11 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:56099 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357570AbiASW0G (ORCPT ); Wed, 19 Jan 2022 17:26:06 -0500 Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 5399DFF805; Wed, 19 Jan 2022 22:26:01 +0000 (UTC) Date: Wed, 19 Jan 2022 23:26:00 +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: <20220119232600.6b8755d0@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> <20220118113833.0185f564@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, alex.aring@gmail.com wrote on Tue, 18 Jan 2022 17:43:00 -0500: > Hi, > > On Tue, 18 Jan 2022 at 05:38, Miquel Raynal wrote: > > > > 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. > > ok. > > > - 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. > > > > There was always the idea behind it to make an "coordinator" interface > type and there is a reason for that because things e.g. filtering > becomes different than a non-coordinator interface type (known as node > interface in wpan). > At the end interface types should make a big difference in how the > "role" inside the network should be, which you can also see in > wireless as "station"/"access point" interface devices. > > A non full functional device should then also not be able to act as a > coordinator e.g. it cannot create coordinator types. I've added a few more parameters to be able to reflect the type of device (ffd, rfd, rfd_r/tx) and also eventually its coordinator state. I've hacked into nl802154 to give these information to the user and let it device wether the device (if it's an ffd) should act as a coordinator. This is only a first step before we create a real PAN creation procedure of course. I've then adapted the following patches to follow check against the device/coordinator state to decide if an operation should be aborted or not. > However we can still make some -EOPNOTSUPP if something in a different > way should be done. This clearly breaks userspace and I am not sure if > we should worry or not worry about it in the current state of > 802.15.4... > > - Alex Thanks, Miquèl