summaryrefslogtreecommitdiff
path: root/io-module
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2014-10-13 14:54:24 -0500
committerMike Fiore <mfiore@multitech.com>2014-10-13 14:54:24 -0500
commit3d8cfe72152acb9ac6237b2b4840c3421571cd9a (patch)
treed27a8b59ddf945a233d6db10c85a9c18084a5ac6 /io-module
parent2e5fcb88eb1d8efe81bbfbb141edb3d1572ac647 (diff)
downloadmts-io-3d8cfe72152acb9ac6237b2b4840c3421571cd9a.tar.gz
mts-io-3d8cfe72152acb9ac6237b2b4840c3421571cd9a.tar.bz2
mts-io-3d8cfe72152acb9ac6237b2b4840c3421571cd9a.zip
mts-io: rename mac-eth to mac-addr for mtac-eth accessory cards
Diffstat (limited to 'io-module')
-rw-r--r--io-module/mtac.c4
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);