diff options
Diffstat (limited to 'net/mac802154')
-rw-r--r-- | net/mac802154/mac802154.h | 1 | ||||
-rw-r--r-- | net/mac802154/mac_cmd.c | 1 | ||||
-rw-r--r-- | net/mac802154/mib.c | 9 |
3 files changed, 11 insertions, 0 deletions
diff --git a/net/mac802154/mac802154.h b/net/mac802154/mac802154.h index a4dcaf1dd4b6..21fa386f4675 100644 --- a/net/mac802154/mac802154.h +++ b/net/mac802154/mac802154.h | |||
@@ -114,5 +114,6 @@ void mac802154_dev_set_ieee_addr(struct net_device *dev); | |||
114 | u16 mac802154_dev_get_pan_id(const struct net_device *dev); | 114 | u16 mac802154_dev_get_pan_id(const struct net_device *dev); |
115 | void mac802154_dev_set_pan_id(struct net_device *dev, u16 val); | 115 | void mac802154_dev_set_pan_id(struct net_device *dev, u16 val); |
116 | void mac802154_dev_set_page_channel(struct net_device *dev, u8 page, u8 chan); | 116 | void mac802154_dev_set_page_channel(struct net_device *dev, u8 page, u8 chan); |
117 | u8 mac802154_dev_get_dsn(const struct net_device *dev); | ||
117 | 118 | ||
118 | #endif /* MAC802154_H */ | 119 | #endif /* MAC802154_H */ |
diff --git a/net/mac802154/mac_cmd.c b/net/mac802154/mac_cmd.c index d8d277006089..a99910d4d52f 100644 --- a/net/mac802154/mac_cmd.c +++ b/net/mac802154/mac_cmd.c | |||
@@ -73,4 +73,5 @@ struct ieee802154_mlme_ops mac802154_mlme_wpan = { | |||
73 | .start_req = mac802154_mlme_start_req, | 73 | .start_req = mac802154_mlme_start_req, |
74 | .get_pan_id = mac802154_dev_get_pan_id, | 74 | .get_pan_id = mac802154_dev_get_pan_id, |
75 | .get_short_addr = mac802154_dev_get_short_addr, | 75 | .get_short_addr = mac802154_dev_get_short_addr, |
76 | .get_dsn = mac802154_dev_get_dsn, | ||
76 | }; | 77 | }; |
diff --git a/net/mac802154/mib.c b/net/mac802154/mib.c index f47781ab0ccc..f03e55f2ebf0 100644 --- a/net/mac802154/mib.c +++ b/net/mac802154/mib.c | |||
@@ -159,6 +159,15 @@ void mac802154_dev_set_pan_id(struct net_device *dev, u16 val) | |||
159 | } | 159 | } |
160 | } | 160 | } |
161 | 161 | ||
162 | u8 mac802154_dev_get_dsn(const struct net_device *dev) | ||
163 | { | ||
164 | struct mac802154_sub_if_data *priv = netdev_priv(dev); | ||
165 | |||
166 | BUG_ON(dev->type != ARPHRD_IEEE802154); | ||
167 | |||
168 | return priv->dsn++; | ||
169 | } | ||
170 | |||
162 | static void phy_chan_notify(struct work_struct *work) | 171 | static void phy_chan_notify(struct work_struct *work) |
163 | { | 172 | { |
164 | struct phy_chan_notify_work *nw = container_of(work, | 173 | struct phy_chan_notify_work *nw = container_of(work, |