summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-08-02 01:52:18 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-08-02 01:52:18 -0600
commitaf637766c12cc73913d260bf5e3336cead2d5326 (patch)
tree530d2b241dbd8adb536d6bc00b317751d0197938 /etc
parent0e1619be29e1875404e5c24b94b64d0e6d516c39 (diff)
downloadpfsense-af637766c12cc73913d260bf5e3336cead2d5326.zip
pfsense-af637766c12cc73913d260bf5e3336cead2d5326.tar.gz
Make convert_real_interface_to_friendly_interface_name recognize that the parent wireless name in the config means the same as the #0 clone. Fixes a bug in is_interface_wireless that could cause it to create a blank interface entry.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 8a0db7d..a4c0bf6 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2553,6 +2553,9 @@ function convert_real_interface_to_friendly_interface_name($interface = "wan") {
if ($config['interfaces'][$if]['if'] == $interface)
return $if;
+ if (stristr($interface, "_wlan0") && $config['interfaces'][$if]['if'] == interface_get_wireless_base($interface))
+ return $if;
+
/* XXX: ermal - The 3 lines below are totally bogus code. */
$int = interface_translate_type_to_real($if);
if ($int == $interface)
OpenPOWER on IntegriCloud