All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH wpan-tools 0/6] wpan-tools: new netlink interfaces calls
@ 2014-09-04  8:03 Alexander Aring
  2014-09-04  8:03 ` [PATCH wpan-tools 1/6] nl_updates: initial commit of nl_updates Alexander Aring
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Alexander Aring @ 2014-09-04  8:03 UTC (permalink / raw)
  To: linux-wpan; +Cc: Alexander Aring

Hi all,

this patch series adds support for new netlink interfaces. For all
new users on this mailinglist. This is the new userspace tool for the
wpan rework [0] branch.

I removed the mib lock in the rework. Now you can only set the pan_id or
short address (don't implement the setting of short address now) when the
netdevice is _down_.

Then we don't need the the mib lock anymore. It's protected by RTNL if
netdevice is down. When it's up it's a read only variable and we can
use the variable in hot path like tx/rx without locking. (This is like
setting and use of dev_addr of an netdev device).

I disabled the af802154 and security layer for now, but I will add this later
at the end of the rework.

I also detected that our cca_mode handling is a driver specific netlink call.
This is... not good. :-) And this is the current mainline behaviour...

In the rework I added enums for the 802.15.4 CCA_MODE numbers and now the
at86rf231 makes a mapping from 802.15.4 specifc CCA_MODE to driver cca_mode(
which is the register value).

I need to begin to write more text about the new behaviour, is there anybody
outside who already test something?

We don't have the multiple phy layer, I dropped them. This was needed for the
channel hoping. We need some new idea to provide a channel hoping logic, or
simple but the logic for this in userspace. (You can change the channel while
netdev is up).

There are several other netlink interfaces (setting short_address,setting energy
detection value of phy)

The energy detection level is not part of the 802.15.4 pib, so this will be
a direct call to the driver (not saving any value of this in the pib).

- Alex

[0] https://github.com/linux-wpan/linux-wpan-next/tree/wpan_rework_rfc

Alexander Aring (6):
  nl_updates: initial commit of nl_updates
  phy: add support for tx power pib attribute
  phy: add support for setting cca_mode
  mac: add support for setting max_frame_retries
  mac: initial support for setting csma params
  phy: add support for cca mode 3 and/or handling

 src/mac.c        | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/nl802154.h   |  20 ++++++++++
 src/nl_updates.h |  75 ++++++++++++++++++++++++++++++++++++
 src/phy.c        |  67 +++++++++++++++++++++++++++++++++
 4 files changed, 275 insertions(+)
 create mode 100644 src/nl_updates.h

-- 
2.1.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-09-04  9:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-04  8:03 [PATCH wpan-tools 0/6] wpan-tools: new netlink interfaces calls Alexander Aring
2014-09-04  8:03 ` [PATCH wpan-tools 1/6] nl_updates: initial commit of nl_updates Alexander Aring
2014-09-04  8:06   ` Alexander Aring
2014-09-04  9:01     ` Alexander Aring
2014-09-04  8:03 ` [PATCH wpan-tools 2/6] phy: add support for tx power pib attribute Alexander Aring
2014-09-04  8:03 ` [PATCH wpan-tools 3/6] phy: add support for setting cca_mode Alexander Aring
2014-09-04  8:03 ` [PATCH wpan-tools 4/6] mac: add support for setting max_frame_retries Alexander Aring
2014-09-04  8:03 ` [PATCH wpan-tools 5/6] mac: initial support for setting csma params Alexander Aring
2014-09-04  8:03 ` [PATCH wpan-tools 6/6] phy: add support for cca mode 3 and/or handling Alexander Aring

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.