summaryrefslogtreecommitdiff
path: root/net/mac802154/mac802154.h
diff options
context:
space:
mode:
authorPhoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>2014-05-16 17:46:40 +0200
committerDavid S. Miller <davem@davemloft.net>2014-05-16 17:23:41 -0400
commitf30be4d53cada48598dab0983866ae4b16af46dc (patch)
tree032e1761fd2a0f7ea4bb09f828d3938c99085725 /net/mac802154/mac802154.h
parent4c14a2fb5d143e4ed94143be2b8c1961b47df9af (diff)
downloadlinux-exynos-f30be4d53cada48598dab0983866ae4b16af46dc.tar.gz
linux-exynos-f30be4d53cada48598dab0983866ae4b16af46dc.tar.bz2
linux-exynos-f30be4d53cada48598dab0983866ae4b16af46dc.zip
mac802154: integrate llsec with wpan devices
Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac802154/mac802154.h')
-rw-r--r--net/mac802154/mac802154.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/mac802154/mac802154.h b/net/mac802154/mac802154.h
index e05f66e2eda3..a8d7cbc701a0 100644
--- a/net/mac802154/mac802154.h
+++ b/net/mac802154/mac802154.h
@@ -23,9 +23,12 @@
#ifndef MAC802154_H
#define MAC802154_H
+#include <linux/mutex.h>
#include <net/mac802154.h>
#include <net/ieee802154_netdev.h>
+#include "llsec.h"
+
/* mac802154 device private data */
struct mac802154_priv {
struct ieee802154_dev hw;
@@ -91,6 +94,13 @@ struct mac802154_sub_if_data {
u8 bsn;
/* MAC DSN field */
u8 dsn;
+
+ /* protects sec from concurrent access by netlink. access by
+ * encrypt/decrypt/header_create safe without additional protection.
+ */
+ struct mutex sec_mtx;
+
+ struct mac802154_llsec sec;
};
#define mac802154_to_priv(_hw) container_of(_hw, struct mac802154_priv, hw)