From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [RFC] net: Add new LoRaWAN subsystem Date: Fri, 11 May 2018 10:16:43 +0200 Message-ID: <20180511081643.GA1869@nanopsycho> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: "David S. Miller" , Alexander Aring , Stefan Schmidt , linux-wpan - ML , netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Jian-Hong Pan Return-path: Received: from mail-wm0-f67.google.com ([74.125.82.67]:33247 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752357AbeEKIQq (ORCPT ); Fri, 11 May 2018 04:16:46 -0400 Received: by mail-wm0-f67.google.com with SMTP id x12-v6so1928663wmc.0 for ; Fri, 11 May 2018 01:16:45 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Tue, May 08, 2018 at 05:33:01PM CEST, starnight@g.ncu.edu.tw wrote: >A Low-Power Wide-Area Network (LPWAN) is a type of wireless >telecommunication wide area network designed to allow long range >communications at a low bit rate among things (connected objects), such >as sensors operated on a battery. It can be used widely in IoT area. >LoRaWAN, which is one kind of implementation of LPWAN, is a medium >access control (MAC) layer protocol for managing communication between >LPWAN gateways and end-node devices, maintained by the LoRa Alliance. >LoRaWAN™ Specification could be downloaded at: >https://lora-alliance.org/lorawan-for-developers > >However, LoRaWAN is not implemented in Linux kernel right now, so I am >trying to develop it. Here is my repository: >https://github.com/starnight/LoRa/tree/lorawan-ndo/LoRaWAN Link to some out-of-tree module is not enough. If you want anyone to look at this and comment, you need to base your work on top of kernel git (net-next for example) and send a patch/patchset. > >Because it is a kind of network, the ideal usage in an user space >program should be like "socket(PF_LORAWAN, SOCK_DGRAM, 0)" and with >other socket APIs. Therefore, the definitions like AF_LORAWAN, >PF_LORAWAN ..., must be listed in the header files of glibc. >For the driver in kernel space, the definitions also must be listed in >the corresponding Linux socket header files. >Especially, both are for the testing programs. > >Back to the mentioned "LoRaWAN is not implemented in Linux kernel now". >Could or should we add the definitions into corresponding kernel header >files now, if LoRaWAN will be accepted as a subsystem in Linux? > >Thanks, >Jian-Hong Pan