From: Alexander Aring <alex.aring@gmail.com>
To: Martin Townsend <martin.townsend@xsilon.com>
Cc: linux-wpan@vger.kernel.org
Subject: Re: [PATCH wpan-next 00/11] ieee802154: mac802154: wireless transformation
Date: Thu, 14 Aug 2014 09:59:02 +0200 [thread overview]
Message-ID: <20140814075900.GA19177@omega> (raw)
In-Reply-To: <53EC6734.6050503@xsilon.com>
Hi,
On Thu, Aug 14, 2014 at 08:37:24AM +0100, Martin Townsend wrote:
> Hi Alex,
>
> Looks good to me. The monitor devices work fine for us on both our wireless and plc interfaces using tcpdump. Out of interest, in what way are they broken?
>
Okay, in my setup I can't set any channels to the monitor interface. It's
only working if I set some channel hardcoded and the remove of the
monitor interface is also broken.
I gave up to understand how it works. If you see [0] you will see:
dev->ml_priv = &mac802154_mlme_reduced;
The mac802154_mlme_reduced struct is defined at [1]. It has only the
.get_phy = mac802154_get_phy,
assign.
But mac802154_get_phy has a assertion on:
BUG_ON(dev->type != ARPHRD_IEEE802154);
Back to [0] you will see:
dev->type = ARPHRD_IEEE802154_MONITOR;
which doesn't fit together with a
BUG_ON(dev->type != ARPHRD_IEEE802154);
I never hit this BUG_ON and really doesn't know what's going on there,
I want to implement a MONITOR interface like 80211. :-)
Nevertheless I gave up to understand what going on there and I can't
also set channels. Also removing the monitor interface with iz doesn't
work (I think there was some deadlock).
A monitor device should be going into the promiscous mode of a device.
But we also don't support this. Okay if you device doesn't has a
hardware filter, it's like to have a promiscous mode. But sometimes
promiscous mode also doesn't care about CRC or something else. A monitor
device should also be able to show broken packets.
I drop this interface type because it really bypass only the mac802154
stack and nothing else. I don't want to say "we don't need a MONITOR
interface type", but this is for my opinion in an not useful state.
And really I don't want to insert something mainline which breaks any
existing support (monitor, fakelb, crypto, ...). I can't do a deletion of
net/mac802154 (ieee802154) and simple add a new one, but deleting of
subsubsystems like montior, fakelb and add a rework of this should not
make any problems.
- Alex
[0] http://lxr.free-electrons.com/source/net/mac802154/monitor.c
[1] http://lxr.free-electrons.com/source/net/mac802154/mac_cmd.c#L105
[2] http://lxr.free-electrons.com/source/net/mac802154/mac_cmd.c#L80
next prev parent reply other threads:[~2014-08-14 7:59 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-12 13:14 [PATCH wpan-next 00/11] ieee802154: mac802154: wireless transformation Alexander Aring
2014-08-12 13:14 ` [PATCH wpan-next 01/11] ieee802154: rename ieee802154_dev to ieee802154_hw Alexander Aring
2014-08-12 13:14 ` [PATCH wpan-next 02/11] mac802154: rename ieee802154_dev.c to main.c Alexander Aring
2014-08-12 13:14 ` [PATCH wpan-next 03/11] mac802154: remove not functional monitor device Alexander Aring
2014-08-12 13:14 ` [PATCH wpan-next 04/11] ieee802154: add new interface types Alexander Aring
2014-08-12 13:14 ` [PATCH wpan-next 05/11] nl802154: add missing endif comment Alexander Aring
2014-08-12 13:14 ` [PATCH wpan-next 06/11] mac802154: rename mac802154_priv to ieee802154_local Alexander Aring
2014-08-12 13:14 ` [PATCH wpan-next 07/11] mac802154: rename mac802154_sub_if_data to ieee802154_sub_if_data Alexander Aring
2014-08-12 13:14 ` [PATCH wpan-next 08/11] mac802154: rename mac802154.h to ieee802154_i.h Alexander Aring
2014-08-12 13:14 ` [PATCH wpan-next 09/11] mac802154: rename hw subif_data variable to local Alexander Aring
2014-08-12 13:14 ` [PATCH wpan-next 10/11] mac802154: use hw_to_local Alexander Aring
2014-08-12 13:14 ` [PATCH wpan-next 11/11] mac802154: rx: use tasklet instead workqueue Alexander Aring
2014-08-14 7:37 ` [PATCH wpan-next 00/11] ieee802154: mac802154: wireless transformation Martin Townsend
2014-08-14 7:59 ` Alexander Aring [this message]
2014-08-14 8:09 ` Martin Townsend
2014-08-14 8:24 ` Alexander Aring
2014-08-14 8:13 ` Alexander Aring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140814075900.GA19177@omega \
--to=alex.aring@gmail.com \
--cc=linux-wpan@vger.kernel.org \
--cc=martin.townsend@xsilon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.