diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-09-28 03:00:25 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-09-30 07:16:44 -0400 |
commit | a26c5fd7622d4951425131d54a8c99f076fe2068 (patch) | |
tree | 1a2a5c0db1ee837902382a48f655a61840a8cc73 /net/ieee802154/core.c | |
parent | 1ee06ef1596dcc5858ea29ef9faf0f29e139dfcc (diff) |
nl802154: add support for security layer
This patch adds support for accessing mac802154 llsec implementation
over nl802154. I added for a new Kconfig entry to provide this
functionality CONFIG_IEEE802154_NL802154_EXPERIMENTAL. This interface is
still in development. It provides to change security parameters and
add/del/dump entries of security tables. Later we can add also a get to
get an entry by unique identifier.
Cc: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154/core.c')
-rw-r--r-- | net/ieee802154/core.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/ieee802154/core.c b/net/ieee802154/core.c index b0248e934230..c35fdfa6d04e 100644 --- a/net/ieee802154/core.c +++ b/net/ieee802154/core.c | |||
@@ -95,6 +95,18 @@ cfg802154_rdev_by_wpan_phy_idx(int wpan_phy_idx) | |||
95 | return result; | 95 | return result; |
96 | } | 96 | } |
97 | 97 | ||
98 | struct wpan_phy *wpan_phy_idx_to_wpan_phy(int wpan_phy_idx) | ||
99 | { | ||
100 | struct cfg802154_registered_device *rdev; | ||
101 | |||
102 | ASSERT_RTNL(); | ||
103 | |||
104 | rdev = cfg802154_rdev_by_wpan_phy_idx(wpan_phy_idx); | ||
105 | if (!rdev) | ||
106 | return NULL; | ||
107 | return &rdev->wpan_phy; | ||
108 | } | ||
109 | |||
98 | struct wpan_phy * | 110 | struct wpan_phy * |
99 | wpan_phy_new(const struct cfg802154_ops *ops, size_t priv_size) | 111 | wpan_phy_new(const struct cfg802154_ops *ops, size_t priv_size) |
100 | { | 112 | { |