summaryrefslogtreecommitdiff
path: root/net/mac802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-05 20:51:24 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-11-05 21:53:05 +0100
commit705cbbbe9ccca260658f971a4369c22f5704db75 (patch)
tree2dd83c1c2334a2c80502085a6ebeaa3d6e434213 /net/mac802154
parent239a84a9a0bcbc7214eb93fb3ba76962de846239 (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.c2
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)
if (netif_running(dev))
return -EBUSY;
- extended_addr = ieee802154_netdev_to_extended_addr(addr->sa_data);
+ ieee802154_be64_to_le64(&extended_addr, addr->sa_data);
if (!ieee802154_is_valid_extended_addr(extended_addr))
return -EINVAL;