diff options
author | Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> | 2014-05-16 11:46:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-16 17:23:41 -0400 |
commit | 29e023746a672e4ff702ca9dc63a06145fd8f4b0 (patch) | |
tree | 1716d0a86dcf6acb665178a44c9c5ef211e3813b /net/mac802154/mac_cmd.c | |
parent | af9eed5bbf0fb4e398081e79a707545dcca5ebda (diff) |
mac802154: add llsec configuration functions
Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac802154/mac_cmd.c')
-rw-r--r-- | net/mac802154/mac_cmd.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/mac802154/mac_cmd.c b/net/mac802154/mac_cmd.c index d40c0928bc62..afb4e2cbc00a 100644 --- a/net/mac802154/mac_cmd.c +++ b/net/mac802154/mac_cmd.c | |||
@@ -64,6 +64,22 @@ static struct wpan_phy *mac802154_get_phy(const struct net_device *dev) | |||
64 | return to_phy(get_device(&priv->hw->phy->dev)); | 64 | return to_phy(get_device(&priv->hw->phy->dev)); |
65 | } | 65 | } |
66 | 66 | ||
67 | static struct ieee802154_llsec_ops mac802154_llsec_ops = { | ||
68 | .get_params = mac802154_get_params, | ||
69 | .set_params = mac802154_set_params, | ||
70 | .add_key = mac802154_add_key, | ||
71 | .del_key = mac802154_del_key, | ||
72 | .add_dev = mac802154_add_dev, | ||
73 | .del_dev = mac802154_del_dev, | ||
74 | .add_devkey = mac802154_add_devkey, | ||
75 | .del_devkey = mac802154_del_devkey, | ||
76 | .add_seclevel = mac802154_add_seclevel, | ||
77 | .del_seclevel = mac802154_del_seclevel, | ||
78 | .lock_table = mac802154_lock_table, | ||
79 | .get_table = mac802154_get_table, | ||
80 | .unlock_table = mac802154_unlock_table, | ||
81 | }; | ||
82 | |||
67 | struct ieee802154_reduced_mlme_ops mac802154_mlme_reduced = { | 83 | struct ieee802154_reduced_mlme_ops mac802154_mlme_reduced = { |
68 | .get_phy = mac802154_get_phy, | 84 | .get_phy = mac802154_get_phy, |
69 | }; | 85 | }; |
@@ -75,6 +91,8 @@ struct ieee802154_mlme_ops mac802154_mlme_wpan = { | |||
75 | .get_short_addr = mac802154_dev_get_short_addr, | 91 | .get_short_addr = mac802154_dev_get_short_addr, |
76 | .get_dsn = mac802154_dev_get_dsn, | 92 | .get_dsn = mac802154_dev_get_dsn, |
77 | 93 | ||
94 | .llsec = &mac802154_llsec_ops, | ||
95 | |||
78 | .set_mac_params = mac802154_set_mac_params, | 96 | .set_mac_params = mac802154_set_mac_params, |
79 | .get_mac_params = mac802154_get_mac_params, | 97 | .get_mac_params = mac802154_get_mac_params, |
80 | }; | 98 | }; |