summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r--io-module/mts_io.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index 4371e41..871bfe8 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -1910,16 +1910,16 @@ static ssize_t mts_attr_show_product_info(struct device *dev,
value = sprintf(buf, "%.32s\n", id_eeprom.hw_version);
} else if (strcmp(attr->attr.name, "imei") == 0) {
value = sprintf(buf, "%.32s\n", id_eeprom.imei);
- } else if (strcmp(attr->attr.name, "wifi-mac") == 0) {
- value = sprintf(buf, "%02X:%02X:%02X:%02X:%02X:%02X",
+ } else if (strcmp(attr->attr.name, "mac-wifi") == 0) {
+ value = sprintf(buf, "%02X:%02X:%02X:%02X:%02X:%02X\n",
id_eeprom.mac_wifi[0],
id_eeprom.mac_wifi[1],
id_eeprom.mac_wifi[2],
id_eeprom.mac_wifi[3],
id_eeprom.mac_wifi[4],
id_eeprom.mac_wifi[5]);
- } else if (strcmp(attr->attr.name, "eth-mac") == 0) {
- value = sprintf(buf, "%02X:%02X:%02X:%02X:%02X:%02X",
+ } else if (strcmp(attr->attr.name, "mac-eth") == 0) {
+ value = sprintf(buf, "%02X:%02X:%02X:%02X:%02X:%02X\n",
id_eeprom.mac_addr[0],
id_eeprom.mac_addr[1],
id_eeprom.mac_addr[2],
@@ -1958,10 +1958,10 @@ static DEVICE_ATTR_RO_MTS(dev_attr_hw_version, "hw-version",
static DEVICE_ATTR_RO_MTS(dev_attr_imei, "imei",
mts_attr_show_product_info);
-static DEVICE_ATTR_RO_MTS(dev_attr_wifi_mac, "wifi-mac",
+static DEVICE_ATTR_RO_MTS(dev_attr_wifi_mac, "mac-wifi",
mts_attr_show_product_info);
-static DEVICE_ATTR_RO_MTS(dev_attr_eth_mac, "eth-mac",
+static DEVICE_ATTR_RO_MTS(dev_attr_eth_mac, "mac-eth",
mts_attr_show_product_info);
static struct attribute *mt100eocg_platform_attributes[] = {