diff options
Diffstat (limited to 'io-module/mtac.c')
-rw-r--r-- | io-module/mtac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io-module/mtac.c b/io-module/mtac.c index d25771d..828d24b 100644 --- a/io-module/mtac.c +++ b/io-module/mtac.c @@ -64,7 +64,7 @@ static ssize_t ap_show_product_info(struct kobject *kobj, struct kobj_attribute value = snprintf(buf, 32, "%s\n", ap_eeprom[port_index].device_id); } else if (! strcmp(attr->attr.name, "hw-version")) { value = snprintf(buf, 32, "%s\n", ap_eeprom[port_index].hw_version); - } else if (! strcmp(attr->attr.name, "mac-eth")) { + } else if (! strcmp(attr->attr.name, "mac-addr")) { value = sprintf(buf, "%02X:%02X:%02X:%02X:%02X:%02X\n", ap_eeprom[port_index].mac_addr[0], ap_eeprom[port_index].mac_addr[1], @@ -86,7 +86,7 @@ static bool ap_add_product_info_attributes(int port, int type, struct attribute* switch (type) { case MTAC_ETH_0_0: - sprintf(buf, "mac-eth"); + sprintf(buf, "mac-addr"); kobj_attr = create_attribute(buf, MTS_ATTR_MODE_RO); if (! kobj_attr) { log_error("failed to create attribute [%s] in port %d", buf, port); |