Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8297310imu; Tue, 4 Dec 2018 06:16:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/WeTOLUkBGnVWSdKZiaKdWUvQMU60Q2Gfm9OIhllgb4pwTD767Z0h4uD4P4sJrblSy6TVpz X-Received: by 2002:a63:6483:: with SMTP id y125mr4560548pgb.91.1543933000848; Tue, 04 Dec 2018 06:16:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543933000; cv=none; d=google.com; s=arc-20160816; b=kjVLWTjkhPR+nriy4jrKZ96yycN6XvL8jZzEgobAweb4Q3fiwDp1yD66TIPiof6nOo U+xhMKRuS414yOinUOWwOjqI5zvPggm0hQlmywVEQp+xOkGR/ownR+hH5YbQMZa9etns Y2mf6fK/KCudwiCaz0RNNY0Z5dHFu1LcJQnm3b0gx0bYha0eYWK13vby6gCnmNn99jZc viJxrvkb/lBL5cdEUusieS3YCAjpLip0bv5hC9kkIhvMzBzwavRgJQvb//nkl34u8YU1 u7FsZQgNODigsNtnPLoOpLpMPb06VaS72AE0+IWQqXbKm8t4leBMSO11IO5Ph1s84uSF 2b2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8JPiqVruzrD5OGaZzdip19sastO5p9E3ha1IKkMYs/A=; b=fMokUSZEDuXLWmLPV/Z4DyzaQqPzKHWu/xwmi4DQbu02+thwjObOxuwUt4upI+2Gms Ls5O0yqZ9vUpEx4Sqwhk6RGDHwqZYr5FPWCZ1LHApxflsK5GuY/f7MD7rKnL88MLOQxg xdSNAePXxXcrMAJ2+LKdu6m1pFQLChiGaSB1HrU5BTDqZyePQ/RhnA/Vny3np3ve2atr vxAZwHSQ1SnAQJFzvEMSEkv3zu/KMwUCKwBdpNcrTUDXs6LrDsFUx0dZ7B04CJn6cXPu gTx9EbLuZHSZZvHHmH6sxjrGG5bp05TKwB4cGZrNhccoNVrGzms22wNaiVSL52M5EtJZ 0fFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@g.ncu.edu.tw header.s=google header.b=EIz4ikbf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h33si626264plh.119.2018.12.04.06.16.25; Tue, 04 Dec 2018 06:16:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@g.ncu.edu.tw header.s=google header.b=EIz4ikbf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726488AbeLDOPH (ORCPT + 99 others); Tue, 4 Dec 2018 09:15:07 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39156 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbeLDOPH (ORCPT ); Tue, 4 Dec 2018 09:15:07 -0500 Received: by mail-pf1-f195.google.com with SMTP id c72so8274199pfc.6 for ; Tue, 04 Dec 2018 06:15:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=g.ncu.edu.tw; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8JPiqVruzrD5OGaZzdip19sastO5p9E3ha1IKkMYs/A=; b=EIz4ikbfLjJhka7KtNZTWOVLwnJG2BE1jDRQZU8gGzbfCrKPE4Xft9SVix9Xsz4/dr DQ7vJ0nBSEfKsvqY1AaA+IV07GVS7OaSFkvm7tytU2D+BX+reKdcVSokKkpu9O5j3Y9/ tDfJvJY6alklmXm5iA/gSGfjY5oeD5J8kTLJU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8JPiqVruzrD5OGaZzdip19sastO5p9E3ha1IKkMYs/A=; b=QnGwln/C9ZUe/hWAVDsQjzgGqmCLnYvIqIJy4mu0a9VDI0n5mm/MibyLOzs9FxQfkb AdAZEEdb8xom0WkHWkV7gzPnzfBHEG+bceyqnHI6A0zj8G8NvsbanegVT2qJAqYxhVgs 8gnntHZsgAfqF+V1EdqSgFhV9EQAvNQBt67iv2nGLVWi6VYEK/sz3Xwb0y0+ZUfyXPK+ HnW/zIdWoOxYsZMZ87i2/6cW2wWM7GaAZfXlPkW1G6Arb4F1npQe33Ek93wnS6QKE56v 9RbW8EoTnyQ+fuuSB4BkQwHF7gxpHF+5Ufs+Y0rFhXkW6e7XvyfH99lvAori0zo+6K1X LQFA== X-Gm-Message-State: AA+aEWa8Q87M3b710asIo3Qs7mYgTiIcKZHklXvcMu/j+m8QhdEljdw2 tU08b5Mi2KN+7FO80GOB2Ss4iA== X-Received: by 2002:a62:5950:: with SMTP id n77mr19999151pfb.128.1543932904969; Tue, 04 Dec 2018 06:15:04 -0800 (PST) Received: from starnight.local ([150.116.248.145]) by smtp.gmail.com with ESMTPSA id n66sm36975863pfk.19.2018.12.04.06.15.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Dec 2018 06:15:04 -0800 (PST) From: Jian-Hong Pan To: =?UTF-8?q?Andreas=20F=C3=A4rber?= , "David S . Miller" Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Marcel Holtmann , Dollar Chen , Ken Yu , linux-wpan@vger.kernel.org, Stefan Schmidt , Jian-Hong Pan Subject: [PATCH V4 0/6] net: lorawan: Add LoRaWAN soft MAC module Date: Tue, 4 Dec 2018 22:13:36 +0800 Message-Id: <20181204141341.4353-1-starnight@g.ncu.edu.tw> X-Mailer: git-send-email 2.19.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org LoRaWAN(TM) is the MAC layer defined by LoRa Alliance(TM) over LoRa devices. LoRa is one of Low-Power Wide-Area Network (LPWAN) technology. LoRaWAN networks typically are laid out in a star-of-stars topology in which gateways relay messages between end-devices and a central network server at the backend. Gateways are connected to the network server via standard IP connections while end-devices use single hop LoRa(TM) or FSK communication to one or many gateways. A LoRa network distinguishes between a basic LoRaWAN (named Class A) and optional features (Class B, Class C ...): * Bi-directional end-devices (Class A) * Bi-directional end-devices with scheduled receive slots (Class B) * Bi-directional end-devices with maximal receive slots (Class C) This patch set add LoRaWAN class module implementing the stack, especially the soft MAC, between socket APIs and LoRa device drivers. socket APIs: send and receive the data ------------------------------------------------------------------------ LoRaWAN class module implements soft MAC: append the header/footer, encryption/decryption, timing slot and MAC commands ------------------------------------------------------------------------ LoRa device drivers: send and receive the messages for MAC layer ------------------------------------------------------------------------ LoRa devices This module starts from simple and implements partial Class A end-devices features defined in LoRaWAN(TM) Specification Ver. 1.0.2. More features and complexity, for example regional parameters, confirmed data messages, join request/accept messages for Over-The-Air Activation, MAC commands ... will be added in the future. Jian-Hong Pan (6): net: lorawan: Add LoRaWAN socket module net: lorawan: Add LoRaWAN API declaration for LoRa devices net: maclorawan: Add maclorawan module declaration net: maclorawan: Implement the crypto of maclorawan module net: maclorawan: Implement maclorawan class module net: lorawan: List LORAWAN in menuconfig include/linux/lora/lorawan.h | 131 ++++++ include/linux/lora/lorawan_netdev.h | 52 +++ net/Kconfig | 2 + net/Makefile | 2 + net/lorawan/Kconfig | 10 + net/lorawan/Makefile | 2 + net/lorawan/socket.c | 686 ++++++++++++++++++++++++++++ net/maclorawan/Kconfig | 14 + net/maclorawan/Makefile | 2 + net/maclorawan/crypto.c | 212 +++++++++ net/maclorawan/crypto.h | 27 ++ net/maclorawan/mac.c | 518 +++++++++++++++++++++ net/maclorawan/maclorawan.h | 200 ++++++++ net/maclorawan/main.c | 605 ++++++++++++++++++++++++ 14 files changed, 2463 insertions(+) create mode 100644 include/linux/lora/lorawan.h create mode 100644 include/linux/lora/lorawan_netdev.h create mode 100644 net/lorawan/Kconfig create mode 100644 net/lorawan/Makefile create mode 100644 net/lorawan/socket.c create mode 100644 net/maclorawan/Kconfig create mode 100644 net/maclorawan/Makefile create mode 100644 net/maclorawan/crypto.c create mode 100644 net/maclorawan/crypto.h create mode 100644 net/maclorawan/mac.c create mode 100644 net/maclorawan/maclorawan.h create mode 100644 net/maclorawan/main.c -- 2.19.2