Re: [PATCH v5 6/6] net: lorawan: List LORAWAN in menuconfig
From: Alexander Aring
Date: Mon Dec 24 2018 - 10:32:14 EST
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 <afaerber@xxxxxxx> 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