Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1204586pxb; Fri, 21 Jan 2022 12:11:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8BNRbiJD/R6L0S1Xzscap4svIwa9mZOYFQFP6dXmpir/Hmx7JHzhuysxm/nZoZw8RZD0l X-Received: by 2002:a17:90b:1a8a:: with SMTP id ng10mr2286369pjb.175.1642795895328; Fri, 21 Jan 2022 12:11:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642795895; cv=none; d=google.com; s=arc-20160816; b=JP27EKZJ6NH2STOjwGE9MZLXZH/lf2AgV1tHDdcX/vBKw6j8MCkd0v7Rk8HYDw2PWX Sd6JeuNM59CypsRHhlZKRe7n5p/lJotECffbafp9+mrO/7+TnBm7cwY7t7s/wf5Z3H3L L6AO3Q5l6127Z3t/wfJbtnXcTeIiSiOix4IrfMzKRYelqf2jRI0ZDw8SrZN7sE2ycLKk MxB93FB0/hgdaNuX/+4xNwgyhvDRF59S+Hb/obu34oXKPi+a7BH69JbrZoH/zxbXuZgF 51VTjz8sD6CmXxDUohzOg5EjmRIgdr0PYPCKWpAxn/xTrVbRFfcPIcQdTdag9kTEvxXb hrRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8moMvKWzWLAdYvtiyhfQY79vC7UANYWI8Ev2bLeTtR8=; b=qCUxI+HzWejdzaMXR29t8sVw0Wuj2kmzTZRo6Tm5busAKW4pqcFS6YO0BXiKXJ0LXJ 3KIGo3qT4PN3XFthY4Ipn6UD0rXeImorN0wF1cq3YMqO93PV3G48vw0pnneOhR3AZJUA NV9ukSppFTkHvzGAvMsPHrC7Auc+8rRauGaUeA5w5tYW+Lcb1HTPJkYxSNWyC8wrPbLm /soqLjeTo3mkkEM0rqLmzPx31wXlHgFm8gBpAJB9rPArRAPcuwxGAKxuyfmkntGDOTKR nJZwbeIoCqj6VqF8fSZT2asLi75rMysPoh3lL8IJF3cO9mW/sfd1ouUPJg1Y+n90vvrz 898w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=STE7gIRw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mw5si15254116pjb.87.2022.01.21.12.11.26; Fri, 21 Jan 2022 12:11:35 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=STE7gIRw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344335AbiASX03 (ORCPT + 70 others); Wed, 19 Jan 2022 18:26:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343864AbiASX02 (ORCPT ); Wed, 19 Jan 2022 18:26:28 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34276C061574; Wed, 19 Jan 2022 15:26:28 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id ay14-20020a05600c1e0e00b0034d7bef1b5dso11203702wmb.3; Wed, 19 Jan 2022 15:26:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8moMvKWzWLAdYvtiyhfQY79vC7UANYWI8Ev2bLeTtR8=; b=STE7gIRwjFIGcuaMKJMMP0DgwXZyo8pPa6l7fToPxEMEUoT2Tb9TA7UcAWHVrM82LG T7LOoPdzHd9NiGQJSItflnZkS8eBICC5DDcP+C1Zn4p6t25/hhjR4mVVuqlN8HVkgmrM 8tAEItN7aFyQW1bSPYC8rJ5SINTQ+J4Fk3K+dMSe/x/5Z8aR3I/fUC7p6cxqEEKKgGgm SZHOzwSPZow/qNHWFEQJ8Ykpe3g6/7+jdhfupxgd2NdU9SMKsuQc4QWlULOCc459xwIO XxaVyRhQOxVDjEtOUtQ8KT5i6CsT9eIRuj1n51A7MBiDMHW+Z2F4h+EGcnIiH+dD32DZ bHiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8moMvKWzWLAdYvtiyhfQY79vC7UANYWI8Ev2bLeTtR8=; b=C7PUmZcni2TMdhtJnysgyyl2b2hovELzABl/TCFc6xUEScwsUYqROESr7feebO16vo zu30Eo9W5GpUDTS2nOIlk9c3Gg3ULa+jGqwVbmQ4H/OSBP/rkOXDKLFD382LweFG9RkN 5RyfPM3TPR9Qvl0GR0b4JGp1gXqdF8NWXh8YiY9p7FdAcN7vQHF8SHqEVrCwo4vUzI8F GOnEPE+RpsIdISpDKiAj52XAVOgC8vAPz3HCv2yCGRiWkGZA1BToXExi7DNTbGQf3rjP SCPh2QYsNVAu6PuuwwQBY81n2b1wa/pw4e39GZ8d2UnINzVfP/4JyoEQucflY0ChCXAM ZE8Q== X-Gm-Message-State: AOAM533AcYuKyZpyrhR2rvMdKzv35eEtUIIwla3i/2XXdva8v59OMh3u Gt+IQT5m56X6aOrrNcrvNKvysciUwbU5/+euCV8= X-Received: by 2002:a05:6000:105:: with SMTP id o5mr25995466wrx.56.1642634786708; Wed, 19 Jan 2022 15:26:26 -0800 (PST) MIME-Version: 1.0 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> <20220119232600.6b8755d0@xps13> In-Reply-To: <20220119232600.6b8755d0@xps13> From: Alexander Aring Date: Wed, 19 Jan 2022 18:26:15 -0500 Message-ID: Subject: Re: [wpan-next v2 08/27] net: ieee802154: Drop symbol duration settings when the core does it already To: Miquel Raynal 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" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, On Wed, 19 Jan 2022 at 17:26, Miquel Raynal wrote: > > 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. Okay, I need to see the patches to say anything about that and how it fits. The problem still exists that we don't currently have any distinction to know if a device can do it or not. After this patch series every "node interface" is allowed to scan/send beacons, where a node interface should not be allowed to do it. If we change it later we break things. However there is still the question if we care about it because 802.15.4 is in such an early/experimental state. It was "experimental" as the Kconfig EXPERIMENTAL entry still existed. It was dropped because most people ignored this setting, that doesn't mean that 802.15.4 ever left the experimental state. - Alex