From patchwork Fri Jun 17 19:32:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 12885929 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB65CC43334 for ; Fri, 17 Jun 2022 19:33:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236553AbiFQTdC (ORCPT ); Fri, 17 Jun 2022 15:33:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231304AbiFQTdB (ORCPT ); Fri, 17 Jun 2022 15:33:01 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F009DE84; Fri, 17 Jun 2022 12:32:59 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 06FA7C0005; Fri, 17 Jun 2022 19:32:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1655494377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a018nv1+KW3o5XQ475gvD/KO2CtmK+QeMl91GzLBs28=; b=bUBRG7PWpyUbbhAGA/s9wDKyH4x6/s1uUdkgOEGeCe0KVIk0Ct1qPN1rPm/AC3xOYYhzao KbT9EFlNLHzD2T2SYp5SauCxzhb0r/RkQpk7VIfu1yv8AXKwXSKBGGmjOv3HH6zIbjCwP+ JFw+qousT8Tx9QtwZ0PMwJ+Ipz4jroij1nfiGqyMJRKUDaOw0eZ8XFhWAaNAVqR13ZmMjx EgIs48qPicC8p5cXfEsvQBPmXpEyMF6r6+IuGX0iE9BkqQDvil0DQw9gJHENVpwFUTyR8n NR6TMHixSyGfiBLNy8AqRDDAEaMSaMksFkuJloUTGnOn4djJZ2F4q1YYYEXCUw== From: Miquel Raynal To: Alexander Aring , Stefan Schmidt , linux-wpan@vger.kernel.org Cc: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet , netdev@vger.kernel.org, David Girault , Romuald Despres , Frederic Blain , Nicolas Schodet , Thomas Petazzoni , Miquel Raynal Subject: [PATCH wpan-next v2 0/6] net: ieee802154: PAN management Date: Fri, 17 Jun 2022 21:32:48 +0200 Message-Id: <20220617193254.1275912-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello, Last step before adding scan support, we need to introduce a proper PAN description (with its main properties) and PAN management helpers. This series provides generic code to do simple operations on PANs and PAN coordinators. Thanks, Miquèl Changes in v2: * The main change is related to the use of the COORD interface (instead of dropping it). Most of the actual diff is in the following series. David Girault (1): net: ieee802154: Trace the registration of new PANs Miquel Raynal (5): net: ieee802154: Create a device type net: ieee802154: Ensure only FFDs can become PAN coordinators net: mac802154: Allow the creation of PAN coordinator interfaces net: ieee802154: Add support for inter PAN management net: ieee802154: Give the user to the PAN information include/net/cfg802154.h | 31 +++++ include/net/nl802154.h | 57 ++++++++++ net/ieee802154/Makefile | 2 +- net/ieee802154/core.c | 2 + net/ieee802154/core.h | 33 ++++++ net/ieee802154/nl802154.c | 206 ++++++++++++++++++++++++++++++++- net/ieee802154/pan.c | 234 ++++++++++++++++++++++++++++++++++++++ net/ieee802154/trace.h | 25 ++++ net/mac802154/iface.c | 14 ++- net/mac802154/rx.c | 2 +- 10 files changed, 595 insertions(+), 11 deletions(-) create mode 100644 net/ieee802154/pan.c