aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/nl802154.h2
-rw-r--r--net/ieee802154/nl_policy.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/nl802154.h b/include/linux/nl802154.h
index 2cda00ccfcca..266dd96ced96 100644
--- a/include/linux/nl802154.h
+++ b/include/linux/nl802154.h
@@ -69,7 +69,7 @@ enum {
69 69
70#define IEEE802154_ATTR_MAX (__IEEE802154_ATTR_MAX - 1) 70#define IEEE802154_ATTR_MAX (__IEEE802154_ATTR_MAX - 1)
71 71
72extern struct nla_policy ieee802154_policy[]; 72extern const struct nla_policy ieee802154_policy[];
73 73
74/* commands */ 74/* commands */
75/* REQ should be responded with CONF 75/* REQ should be responded with CONF
diff --git a/net/ieee802154/nl_policy.c b/net/ieee802154/nl_policy.c
index c7d71d1adcac..83cb4ccef90d 100644
--- a/net/ieee802154/nl_policy.c
+++ b/net/ieee802154/nl_policy.c
@@ -24,7 +24,7 @@
24 24
25#define NLA_HW_ADDR NLA_U64 25#define NLA_HW_ADDR NLA_U64
26 26
27struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = { 27const struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = {
28 [IEEE802154_ATTR_DEV_NAME] = { .type = NLA_STRING, }, 28 [IEEE802154_ATTR_DEV_NAME] = { .type = NLA_STRING, },
29 [IEEE802154_ATTR_DEV_INDEX] = { .type = NLA_U32, }, 29 [IEEE802154_ATTR_DEV_INDEX] = { .type = NLA_U32, },
30 30
@@ -50,3 +50,4 @@ struct nla_policy ieee802154_policy[IEEE802154_ATTR_MAX + 1] = {
50 [IEEE802154_ATTR_DURATION] = { .type = NLA_U8, }, 50 [IEEE802154_ATTR_DURATION] = { .type = NLA_U8, },
51 [IEEE802154_ATTR_ED_LIST] = { .len = 27 }, 51 [IEEE802154_ATTR_ED_LIST] = { .len = 27 },
52}; 52};
53