diff options
Diffstat (limited to 'net/mac802154/mib.c')
-rw-r--r-- | net/mac802154/mib.c | 9 |
1 files changed, 9 insertions, 0 deletions
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, |