From patchwork Fri Jun 3 18:21:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 12869310 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 28E8AC433EF for ; Fri, 3 Jun 2022 18:34:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347100AbiFCSeV (ORCPT ); Fri, 3 Jun 2022 14:34:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347572AbiFCSeC (ORCPT ); Fri, 3 Jun 2022 14:34:02 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A4B4C6; Fri, 3 Jun 2022 11:21:48 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 80E4920004; Fri, 3 Jun 2022 18:21:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1654280506; 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: in-reply-to:in-reply-to:references:references; bh=PIXgRGmTMnLX6VGt/6mVavZJMsh6eGPhFIUxtOIIG/4=; b=DMXDcKnOJxtPr6NWanlJwMLac5pBDUzwgz5OX5fjkiWS+nA8I95VQEQv6L3gCGHb2H/Qzd oRyuj16Dq8Ke+OZagrsmXbzgRwrxNfaleg+QcST/ETfD1U0qQ1M0bAJzv2RoDzTPK13lBX C4GhQbKE3BiW/T7JkX6gGoqjoLYjUy+AHUE3OWzj7WFXMv5XDWC0HopkGH8IeZuRW3D48O bHwksxBdK50z6crAHfR+CgJ5SShq2Lu2WirMrFY339fuzD8iVeBM/UMUW8167z7SGBGHlm OORXTZR4gijj6DVkQFaPeYtY2tfcOs95l6/wqQ9V48k9hwICF3p/Nff1laDmAA== From: Miquel Raynal To: Alexander Aring , Stefan Schmidt , linux-wpan@vger.kernel.org Cc: "David S. Miller" , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, David Girault , Romuald Despres , Frederic Blain , Nicolas Schodet , Thomas Petazzoni , Miquel Raynal Subject: [PATCH wpan-next 1/6] net: ieee802154: Drop coordinator interface type Date: Fri, 3 Jun 2022 20:21:38 +0200 Message-Id: <20220603182143.692576-2-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220603182143.692576-1-miquel.raynal@bootlin.com> References: <20220603182143.692576-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org The current enum is wrong. A device can either be an RFD, an RFD-RX, an RFD-TX or an FFD. If it is an FFD, it can also be a coordinator. While defining a node type might make sense from a strict software point of view, opposing node and coordinator seems meaningless in the ieee 802.15.4 world. As this enumeration is not used anywhere, let's just drop it. We will in a second time add a new "node type" enumeration which apply only to nodes, and does differentiates the type of devices mentioned above. Signed-off-by: Miquel Raynal --- include/net/nl802154.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/net/nl802154.h b/include/net/nl802154.h index 145acb8f2509..0f508aaae126 100644 --- a/include/net/nl802154.h +++ b/include/net/nl802154.h @@ -156,7 +156,6 @@ enum nl802154_iftype { NL802154_IFTYPE_NODE = 0, NL802154_IFTYPE_MONITOR, - NL802154_IFTYPE_COORD, /* keep last */ NUM_NL802154_IFTYPES,