Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp771816pxb; Fri, 21 Jan 2022 02:59:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlYmzJI15Lxl6fEZGKgflLQzT2cYixYWnkMdyV1hEm4SStMvTRIL1SgkeJ0Gouz6VPCuy5 X-Received: by 2002:a17:902:e74e:b0:14b:1100:aebc with SMTP id p14-20020a170902e74e00b0014b1100aebcmr3478972plf.133.1642762791919; Fri, 21 Jan 2022 02:59:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642762791; cv=none; d=google.com; s=arc-20160816; b=Np5P1UX1Xkwg+zRv/EWhxcLUDr7vVr/qKMOvHKjOELsjLzgCFmP/Ax5Fy+T1HkKTu8 ZbgstpxgORUGDjeduAq2Ih0mQnXqDvF9jtNdpTqMMKDT4iQ9mYZENi+wR0ae0v+MYUqP sPjAMY4xXdNLwQ25ar2wHtCqDEdvnZsrgXvQmEgskyb1SOSD48kYy+E9egJ3M7v3IPCn OXgy5YdzA5FWZ0HF6Cj4rzGjzTeu2nfZ21OKOMzOWR3nM801FK0bLT/AOYdLkvrTOeCF ofrV4m3l8hCaRPgQN/SW/wIqo7RbR01dfiNC/uHXSJ/9rqUr/MsysntjvP7U8U7Ysxd+ ahCQ== 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=n+u7w/7GVsZ+QwFRY2Vg+1iMWsu/gCEDhvco83Mij8Y=; b=GolbI/ECjS4pBl9IELBhzS16d5t+a/QV4ojzFBimCEzIfcy7qOto2gIogjGtKIXzHA jZla+rnq04UM5teQsDCUtB7d5mN0lEb0hkDZgb7C3VPrZp/SiF8DAMIHrfq7Olly+M3d VYfw+SiERdZQPfynOGPn2UqfGL/PoohF3GQ8Ks1rTcUOI2ceisqC62k3YvXhKDNr1zLM I4/01ypR6GEYLVE+2euPg03FRaOBop1gnG84DJGJgjkrthB46/GV0GgxEnFsMRWI+Lwh 4zTEjJbtVPqLWnqFa+dRBA5cYVjqyMA3X4p6+aVgyVNaW6WlpKOW6DnRF4w/g+XjjVZ/ QYAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AsGi5WPc; 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 w4si6617273pgj.735.2022.01.21.02.59.37; Fri, 21 Jan 2022 02:59:51 -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=AsGi5WPc; 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 S1346378AbiARWnO (ORCPT + 70 others); Tue, 18 Jan 2022 17:43:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237704AbiARWnN (ORCPT ); Tue, 18 Jan 2022 17:43:13 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17FDFC061574; Tue, 18 Jan 2022 14:43:13 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id l12-20020a7bc34c000000b003467c58cbdfso9582422wmj.2; Tue, 18 Jan 2022 14:43:13 -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=n+u7w/7GVsZ+QwFRY2Vg+1iMWsu/gCEDhvco83Mij8Y=; b=AsGi5WPciR9ITbzUs5gPwDnZmLyh9vXu/blPRMwgohYeFGAL/Sr2LyZ+9UGV1eRdDh C+gDOleFGWtOaz5VrwwI/2x4in5xI+vXd6HeMoD5a4j31AxRC1kJ3Ai1JhLUqvS9LRaO jpH3Ha5luK5jWvYMNHVqWxA6l9kiTz8/wS85R/Omps3unvfTzlT8EOXNRuHtl8wfZ/KS E5++Wz5Bdm5KuNQQt1DXXLrUCJlP68jD8blaYQR3jWwJrcpYs4qEJEopFChIjGHf82E9 kLT06pFbUGD9ssGnLlJ6SQVeMRcQd9Ep9f9EXrLS61oa1CYy9MgXcr5ZKpxwf5jwKmYe 7iSQ== 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=n+u7w/7GVsZ+QwFRY2Vg+1iMWsu/gCEDhvco83Mij8Y=; b=GlcD4DnhuDcJV3EQsGGe85lLtMrHQUhcbPFK0tqJsfYteumhuiKWjsK8oqfezTo1YD dHUuG9mWtTQXDr3NnCoyVayQp/HCTm1yN3R7Ja2lYCim6lGmXXw9OiM0IpblMH1PO1K6 K6xIHk60XoCWy/OJ2vxofJDpfdIrBexlM2Wewj9Lzyk0OK6mrTJSYedjqgtE7EXXi5BT RPQjiiLyen7nEMLiZ+3WFNfmyzkq+/7yg/VFzC5sap+WcJXnzDZ2m0c+IJhAU5BRlw65 ++W7azTpk8L3JoLXRbVbpzL4DYclJqHhQD9ZLJctN1nxXoXlqfY2BB4niIM8zgovPGz2 VeuQ== X-Gm-Message-State: AOAM532KKOYzXzArp4xelbHxpj9nFjD1RWF9zIDKils2lIAXsGfwkaa7 Y73JBjKj+9259gS66fdgcFlCRhoRTNpo879pdGw= X-Received: by 2002:a05:6000:1686:: with SMTP id y6mr15695960wrd.205.1642545791614; Tue, 18 Jan 2022 14:43:11 -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> In-Reply-To: <20220118113833.0185f564@xps13> From: Alexander Aring Date: Tue, 18 Jan 2022 17:43:00 -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 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. 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