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>
This commit is contained in:

committed by
Marcel Holtmann

parent
239a84a9a0
commit
705cbbbe9c
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user