diff --git a/html/cgi-bin/zoneconf.cgi b/html/cgi-bin/zoneconf.cgi
index 6b8642818..bb24347df 100644
--- a/html/cgi-bin/zoneconf.cgi
+++ b/html/cgi-bin/zoneconf.cgi
@@ -144,21 +144,12 @@ closedir($dh);
@nics = sort {$a->[0] cmp $b->[0]} @nics; # Sort nics by their MAC address
-# Name the physical NICs
-# Even though they may not be really named like this, we will name them ethX or wlanX
-my $ethcount = 0;
-my $wlancount = 0;
-
foreach (@nics) {
my $nic = $_->[1];
+ # Test if NIC is a wireless interface to disable VLAN-Option in Dropdown
if (-e "/sys/class/net/$nic/wireless") {
- $_->[1] = "wlan$wlancount";
$_->[2] = 1;
- $wlancount++;
- } else {
- $_->[1] = "eth$ethcount";
- $ethcount++;
}
}