Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3729182imu; Mon, 24 Dec 2018 07:34:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN5gQqUikR18duCOL4rMgt6F+LfI8jy2QRhSNM1jAhjtfRqRiMdiMx1SjlCU45ePJFy+aQf3 X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr1641647plb.70.1545665669962; Mon, 24 Dec 2018 07:34:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545665669; cv=none; d=google.com; s=arc-20160816; b=BN07Z0xvFHS3pTkO8bbX93aR7S/CPzeIm9l1VPXJ1HjS3LQWcBFePPKIqupkl3pwP1 kKs8i9mh6jqaE0+pscGxqHOeZ7U3KqUHp+/5FWkjmAvhnUOPqWTFhsnG4WpPuz61Er+v 9h3Br6RcXJe67IvdFgsrq3uKXU+07wusI/axkWdl9kaNUj34FiWR12fK/gtFK89RFU9j Eo/nQte+eSVNONgBxwBUw1Da4Rlcec8hRhAOZLATvO3cxSnytWGsjM0muCO1K0glSYOy sotqWmEzui6sV/8y09koXfr9/5ZXn+K1MYVN4S4F6fC4biV5G3zo96NDwtL3Gid6vKBA nTew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hcQc4njU3S+o4H6gOXq6XyYcomBr/RPp5eE5oN5qNlg=; b=jx2bjsWKdaCVwS+u5gHBBplHpHw3MPHmDxArS/lj0y1qEAoNpeDxD+RO+9MdElaNdD J9iRmOU6OtXLcoHk9DRXNAzb5bvRvsGhuJ+EnA6nu/Ss7OD+L9Po5RJBQw7FO6b2Zvgm 2b3mj4KB8zyuaKaRFbCcttDRKlFvJ4C9Yyedm5XILmOrPXN7GbfzWxDMXz9Zr5tXuha+ 2RO1aGxuNpjtM2MGqBerS9+wzvJnVDDIWOhLMO/CWrqpIgdzBk9Lx7+DucRNWRkZgk0q j+wcf22TrveG9AH41/Rdkg4JfQ92CA5muX1LQFngSJzto69QAuV7Ya7iEfmVDH7KLNAd i0iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mojatatu-com.20150623.gappssmtp.com header.s=20150623 header.b=Pz+zrBkN; 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 x24si6903934plr.379.2018.12.24.07.34.14; Mon, 24 Dec 2018 07:34:29 -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=@mojatatu-com.20150623.gappssmtp.com header.s=20150623 header.b=Pz+zrBkN; 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 S1725789AbeLXPcL (ORCPT + 99 others); Mon, 24 Dec 2018 10:32:11 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:55005 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725648AbeLXPcK (ORCPT ); Mon, 24 Dec 2018 10:32:10 -0500 Received: by mail-it1-f195.google.com with SMTP id i145so16170699ita.4 for ; Mon, 24 Dec 2018 07:32:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=hcQc4njU3S+o4H6gOXq6XyYcomBr/RPp5eE5oN5qNlg=; b=Pz+zrBkNiRIxetJud78i8fm8KjnPxodmWyIygYk2UWDjTLqOZ7Xa2cFJjbUp6H9hhC YZld0bcfhsx7Yl/bDNGwbLSLdIojbLSjEif0bk2WylQ1fk2pRRgiOsLLcQMQEBTae2HZ iVatpgpP6LXPcNr0fzfkc5uO9DWeWnPhv0TMuPnE6a/yoAuBu1rL6PkBsBWWajLoPwqT TLBL8BGQKYnp7CSWumfmwLhj4ng9CrKhvItIDBTLVgnNvqJ1D07XTFsF1HEoY0lhr1K3 OmvZLM5+JuAGtpwiw2sDk6KnlAT0gsf199sHcS5kSsRqFSH+sXT5MdZ4VYXnQvU6bSpn /X7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=hcQc4njU3S+o4H6gOXq6XyYcomBr/RPp5eE5oN5qNlg=; b=UPKrPNrPE4hTESKuKvc5vhYYMg4HpB/3mBR7ltLS07ibjkaVumGlbEUA2zUn0vsD+X DeHlXeMBZ09PWO64GnBi6tY1sJ6bpZhgO9BgW0xNkyYRw1TOD8ClQ6YrWnWNAg+R5102 FM1xdUlwG28h3UE2rRM9iSK7076z7wFvD5JpdEIdHXLVkDVOSgoquiih3WE6B3+72Rkx ywHqnsCstflqXvio83O/m7NGYztoc3EGbS3G+gIrY+lctpQVa7VCRApjLKkzGqc/PZjB YEqGm2qZV+Z0JvTk8M4seoGUMS6GAtIhQgO8T3enoLoqFZ09wcm84Z1Z+8XmR9f3XaCM cNWA== X-Gm-Message-State: AA+aEWZqqA+X7wUT3QhjZZXbHsrW4JET0oeQrcTufKieectgee6+vtSF s9qyy+bVFtq+1+cVl2KB2dAswA== X-Received: by 2002:a24:6fc4:: with SMTP id x187mr9931961itb.93.1545665528818; Mon, 24 Dec 2018 07:32:08 -0800 (PST) Received: from x220t ([64.26.149.125]) by smtp.gmail.com with ESMTPSA id w129sm11502194ita.0.2018.12.24.07.32.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Dec 2018 07:32:08 -0800 (PST) Date: Mon, 24 Dec 2018 10:32:05 -0500 From: Alexander Aring To: Xue Liu Cc: Andreas =?utf-8?Q?F=C3=A4rber?= , Jian-Hong Pan , "David S . Miller" , Alan Cox , linux-lpwan@lists.infradead.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Marcel Holtmann , Dollar Chen , Ken Yu , linux-wpan - ML Subject: Re: [PATCH v5 6/6] net: lorawan: List LORAWAN in menuconfig Message-ID: <20181224153205.ycr2zdrjbyklulfh@x220t> References: <20181216101858.9585-7-starnight@g.ncu.edu.tw> <8bfdccbf-fb47-daa5-fbd0-ed16a3d6d334@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Dec 18, 2018 at 02:50:58PM +0100, Xue Liu wrote: > Hello Andreas, > > On Mon, 17 Dec 2018 at 15:19, Andreas Färber wrote: > > > > Hello Xue Liu, > > > > Am 17.12.18 um 09:50 schrieb Xue Liu: > > > I have a question about the architecture of your module. AFAIK LoRaWAN > > > is already the MAC Layer above the LoRa technology. Why do you want to > > > make a new layer called "maclorawan" ? > > > > I had asked Jian-Hong to separate between his soft-MAC implementation > > and the common bits needed to drive hard-MAC implementations found on > > several of the hardware modules made available to me. > > > As a reference Linux 802.11 uses cfg80211 to talk with hard-MAC devices. > We may also use the name “cfglora” for hard-MAC implementation. > There exists also a cfg802154. :-) Note that cfg80211 is also for providing a backwardscompatibility to the wireless ioctl() interface. In theory it's simple: netlink API -> SoftMAC (macFOOBAR layer) -> cfgFOOBAR implementation -> driver layer \-> HardMAC (driver layer) -> cfgFOOBAR implementation The "difficult" part is providing one userspace interface for both either SoftMAC layer and all HardMAC drivers. There both maintainers need to be synchronized. As a side note I want to mention that the 802.15.4 subsystem supports currently a HardMAC transceiver in the SoftMAC layer. We don't have quite HardMAC support yet but are somehow prepared according the wireless architecture above. The people who did that didn't wanted to investigate time to implement a whole HardMAC layer, as I told them when we support more in the SoftMAC layer it will break their transceiver... so they was fine with that as warning it seems. :-) - Alex