summaryrefslogtreecommitdiffhomepage
path: root/device.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-02-28 01:05:35 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-02-28 01:05:35 +0100
commit93ddba72304f8267f8ca63dce2235a154227cd99 (patch)
tree1030f1c760f9f32691c94d12d32efdbe62e5896b /device.c
parent7622440f6ddb0facdaca208186f72b345a6f7c3d (diff)
fix mac address parsing
Diffstat (limited to 'device.c')
-rw-r--r--device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/device.c b/device.c
index d47bcdf..489c660 100644
--- a/device.c
+++ b/device.c
@@ -214,7 +214,7 @@ device_init_settings(struct device *dev, struct blob_attr **tb)
}
if ((cur = tb[DEV_ATTR_MACADDR])) {
- ea = ether_aton(blob_data(cur));
+ ea = ether_aton(blobmsg_data(cur));
if (ea) {
memcpy(s->macaddr, ea, 6);
s->flags |= DEV_OPT_MACADDR;