diff options
-rwxr-xr-x | usr/local/www/interfaces.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index fa7c0b7..772ba33 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -214,7 +214,8 @@ $pconfig['mtu'] = $wancfg['mtu']; if (isset($wancfg['wireless'])) { /* Get wireless modes */ $wlanif = get_real_interface($if); - interface_wireless_clone($wlanif, $wancfg); + if (!does_interface_exist($wlanif)) + interface_wireless_clone($wlanif, $wancfg); $wlanbaseif = interface_get_wireless_base($wancfg['if']); $wl_modes = get_wireless_modes($if); $pconfig['standard'] = $wancfg['wireless']['standard']; |