about summary refs log tree commit diff
path: root/clients/tui
diff options
context:
space:
mode:
Diffstat (limited to 'clients/tui')
-rw-r--r--clients/tui/nmt-device-entry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clients/tui/nmt-device-entry.c b/clients/tui/nmt-device-entry.c
index 67a66f72..4ab59329 100644
--- a/clients/tui/nmt-device-entry.c
+++ b/clients/tui/nmt-device-entry.c
@@ -103,7 +103,7 @@ device_entry_parse (NmtDeviceEntry  *deventry,
 		return TRUE;
 
 	if (priv->hardware_type == G_TYPE_NONE && !priv->device_filter) {
-		if (nm_utils_is_valid_iface_name (text, NULL)) {
+		if (nm_utils_ifname_valid_kernel (text, NULL)) {
 			*interface_name = g_strdup (text);
 			return TRUE;
 		} else
@@ -127,12 +127,12 @@ device_entry_parse (NmtDeviceEntry  *deventry,
 
 	len = nm_utils_hwaddr_len (priv->arptype);
 	if (   nm_utils_hwaddr_aton (words[0], buf, len)
-	    && (!words[1] || nm_utils_is_valid_iface_name (words[1], NULL))) {
+	    && (!words[1] || nm_utils_ifname_valid_kernel (words[1], NULL))) {
 		*mac_address = words[0];
 		*interface_name = NULL;
 		g_free (words);
 		return TRUE;
-	} else if (   nm_utils_is_valid_iface_name (words[0], NULL)
+	} else if (   nm_utils_ifname_valid_kernel (words[0], NULL)
 	           && (!words[1] || nm_utils_hwaddr_aton (words[1], buf, len))) {
 		*interface_name = words[0];
 		*mac_address = NULL;