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:11 +0100
committerDavid S. Miller <davem@davemloft.net>2014-02-17 16:42:38 -0500
commitba08fea53a43e02b590d89224afdad976dece841 (patch)
treeb7cfcfcfc9b923360c477e55df12a501eda169b0 /net/ieee802154/nl_policy.c
parent84dda3c648fd55898064d76366b14f964cdc9d16 (diff)
downloadlinux-ba08fea53a43e02b590d89224afdad976dece841.tar.bz2
ieee802154: add support for CCA mode in wpan phys
The standard describes four modes of clear channel assesment: "energy above threshold", "carrier found", and the logical and/or of these two. Support for CCA mode setting is included in the at86rf230 driver, predicated 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 a09f6423a6e9..d87c2c904110 100644
--- a/net/ieee802154/nl_policy.c
+++ b/net/ieee802154/nl_policy.c
@@ -55,5 +55,6 @@ const struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = {
[IEEE802154_ATTR_TXPOWER] = { .type = NLA_S8, },
[IEEE802154_ATTR_LBT_ENABLED] = { .type = NLA_U8, },
+ [IEEE802154_ATTR_CCA_MODE] = { .type = NLA_U8, },
};