OSDN Git Service

ieee802154: atusb: try to read permanent extended address from device
authorStefan Schmidt <stefan@osg.samsung.com>
Mon, 5 Dec 2016 13:47:19 +0000 (14:47 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 8 Dec 2016 06:43:29 +0000 (07:43 +0100)
commit6cc33eba232cebc9918c558b21b1e3b5fcab27b7
tree07edd180bbbad7716ca1dbdc9d30aa06f15ed899
parent46551564a28e07325140057876f92881d58a219a
ieee802154: atusb: try to read permanent extended address from device

With version 0.3 the atusb firmware offers an interface to read a permanent
EUI64 address from the devices EEPROM. This patch checks if the firmware is
new enough and tries to read out and use the address. If this does not work
we fall back to the original randomly generated address.

Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/atusb.c