Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171258
b: refs/heads/master
c: a9966b5
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov committed Nov 6, 2009
1 parent 560a4cd commit 4f399f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e9cf356c0c6b975fda84b15a5abdd1db88d74f84
refs/heads/master: a9966b580a3e9d7cf820b5360b574f439d813ef4
8 changes: 4 additions & 4 deletions trunk/drivers/ieee802154/fakehard.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct wpan_phy *net_to_phy(struct net_device *dev)
*
* Return the ID of the PAN from the PIB.
*/
static u16 fake_get_pan_id(struct net_device *dev)
static u16 fake_get_pan_id(const struct net_device *dev)
{
BUG_ON(dev->type != ARPHRD_IEEE802154);

Expand All @@ -58,7 +58,7 @@ static u16 fake_get_pan_id(struct net_device *dev)
* device. If the device has not yet had a short address assigned
* then this should return 0xFFFF to indicate a lack of association.
*/
static u16 fake_get_short_addr(struct net_device *dev)
static u16 fake_get_short_addr(const struct net_device *dev)
{
BUG_ON(dev->type != ARPHRD_IEEE802154);

Expand All @@ -78,7 +78,7 @@ static u16 fake_get_short_addr(struct net_device *dev)
* Note: This is in section 7.2.1.2 of the IEEE 802.15.4-2006
* document.
*/
static u8 fake_get_dsn(struct net_device *dev)
static u8 fake_get_dsn(const struct net_device *dev)
{
BUG_ON(dev->type != ARPHRD_IEEE802154);

Expand All @@ -98,7 +98,7 @@ static u8 fake_get_dsn(struct net_device *dev)
* Note: This is in section 7.2.1.2 of the IEEE 802.15.4-2006
* document.
*/
static u8 fake_get_bsn(struct net_device *dev)
static u8 fake_get_bsn(const struct net_device *dev)
{
BUG_ON(dev->type != ARPHRD_IEEE802154);

Expand Down
10 changes: 5 additions & 5 deletions trunk/include/net/ieee802154_netdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ struct ieee802154_mlme_ops {
* FIXME: these should become the part of PIB/MIB interface.
* However we still don't have IB interface of any kind
*/
u16 (*get_pan_id)(struct net_device *dev);
u16 (*get_short_addr)(struct net_device *dev);
u8 (*get_dsn)(struct net_device *dev);
u8 (*get_bsn)(struct net_device *dev);
u16 (*get_pan_id)(const struct net_device *dev);
u16 (*get_short_addr)(const struct net_device *dev);
u8 (*get_dsn)(const struct net_device *dev);
u8 (*get_bsn)(const struct net_device *dev);
};

static inline struct ieee802154_mlme_ops *ieee802154_mlme_ops(
struct net_device *dev)
const struct net_device *dev)
{
return dev->ml_priv;
}
Expand Down

0 comments on commit 4f399f3

Please sign in to comment.