Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368687
b: refs/heads/master
c: 0483546
h: refs/heads/master
i:
  368685: 599df00
  368683: 349a6ef
  368679: e807bcd
  368671: f563e24
v: v3
  • Loading branch information
Tony Cheneau authored and David S. Miller committed Mar 26, 2013
1 parent c1628a4 commit f85d236
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d4ac32365dcbfd341a87eae444c26679f889249a
refs/heads/master: 0483546a3de329cad7705d42962edb09a28794c6
1 change: 1 addition & 0 deletions trunk/net/mac802154/mac802154.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,6 @@ void mac802154_dev_set_ieee_addr(struct net_device *dev);
u16 mac802154_dev_get_pan_id(const struct net_device *dev);
void mac802154_dev_set_pan_id(struct net_device *dev, u16 val);
void mac802154_dev_set_page_channel(struct net_device *dev, u8 page, u8 chan);
u8 mac802154_dev_get_dsn(const struct net_device *dev);

#endif /* MAC802154_H */
1 change: 1 addition & 0 deletions trunk/net/mac802154/mac_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ struct ieee802154_mlme_ops mac802154_mlme_wpan = {
.start_req = mac802154_mlme_start_req,
.get_pan_id = mac802154_dev_get_pan_id,
.get_short_addr = mac802154_dev_get_short_addr,
.get_dsn = mac802154_dev_get_dsn,
};
9 changes: 9 additions & 0 deletions trunk/net/mac802154/mib.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,15 @@ void mac802154_dev_set_pan_id(struct net_device *dev, u16 val)
}
}

u8 mac802154_dev_get_dsn(const struct net_device *dev)
{
struct mac802154_sub_if_data *priv = netdev_priv(dev);

BUG_ON(dev->type != ARPHRD_IEEE802154);

return priv->dsn++;
}

static void phy_chan_notify(struct work_struct *work)
{
struct phy_chan_notify_work *nw = container_of(work,
Expand Down

0 comments on commit f85d236

Please sign in to comment.