fix mac address parsing
authorFelix Fietkau <nbd@openwrt.org>
Tue, 28 Feb 2012 00:05:35 +0000 (01:05 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 28 Feb 2012 00:05:35 +0000 (01:05 +0100)
device.c

index d47bcdf5db88e1cce00e8f2e95ee312408229a6f..489c6601de8dfe076436a29615fe2ca7d70a5354 100644 (file)
--- 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;