summaryrefslogtreecommitdiffstats
path: root/net/ieee802154/nl_policy.c
diff options
context:
space:
mode:
authorPhoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>2014-02-17 11:34:10 +0100
committerDavid S. Miller <davem@davemloft.net>2014-02-17 16:42:38 -0500
commit84dda3c648fd55898064d76366b14f964cdc9d16 (patch)
tree5c3f247176a57eedbf854ade71da6f8ff8d7392e /net/ieee802154/nl_policy.c
parent643e53c20a6ae78149f75861f260d0ca6d9a17e3 (diff)
downloadlinux-84dda3c648fd55898064d76366b14f964cdc9d16.tar.bz2
ieee802154: add support for listen-before-talk in wpan_phy
Listen-before-talk is an alternative to CSMA in uncoordinated networks and prescribed by european regulations if one wants to have a device with radio duty cycles above 10% (or less in some bands). Add a phy property to enable/disable LBT in the phy, including support in the at86rf230 driver for RF212 chips. Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154/nl_policy.c')
-rw-r--r--net/ieee802154/nl_policy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ieee802154/nl_policy.c b/net/ieee802154/nl_policy.c
index 90b1d0d2c14e..a09f6423a6e9 100644
--- a/net/ieee802154/nl_policy.c
+++ b/net/ieee802154/nl_policy.c
@@ -54,5 +54,6 @@ const struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = {
[IEEE802154_ATTR_CHANNEL_PAGE_LIST] = { .len = 32 * 4, },
[IEEE802154_ATTR_TXPOWER] = { .type = NLA_S8, },
+ [IEEE802154_ATTR_LBT_ENABLED] = { .type = NLA_U8, },
};