diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-11-05 14:51:24 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-11-05 15:53:05 -0500 |
commit | 705cbbbe9ccca260658f971a4369c22f5704db75 (patch) | |
tree | 2dd83c1c2334a2c80502085a6ebeaa3d6e434213 /net/mac802154 | |
parent | 239a84a9a0bcbc7214eb93fb3ba76962de846239 (diff) |
mac802154: cleanup ieee802154_netdev_to_extended_addr
This patch cleanups the ieee802154_be64_to_le64 to have a similar
function like ieee802154_le64_to_be64 only with switched source and
destionation types.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154')
-rw-r--r-- | net/mac802154/iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c index 764ce496fdc3..a1aa09b03d12 100644 --- a/net/mac802154/iface.c +++ b/net/mac802154/iface.c | |||
@@ -117,7 +117,7 @@ static int mac802154_wpan_mac_addr(struct net_device *dev, void *p) | |||
117 | if (netif_running(dev)) | 117 | if (netif_running(dev)) |
118 | return -EBUSY; | 118 | return -EBUSY; |
119 | 119 | ||
120 | extended_addr = ieee802154_netdev_to_extended_addr(addr->sa_data); | 120 | ieee802154_be64_to_le64(&extended_addr, addr->sa_data); |
121 | if (!ieee802154_is_valid_extended_addr(extended_addr)) | 121 | if (!ieee802154_is_valid_extended_addr(extended_addr)) |
122 | return -EINVAL; | 122 | return -EINVAL; |
123 | 123 | ||