summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-25 20:43:21 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-25 20:43:21 +0000
commit187be28993d1f2eb7cf4d269979a62b5f52e0471 (patch)
treea3ac0f3c18b679a4bee7261b84b3c8b80749c83f /usr/local
parentd9a31e9352f3cfc25e218e2e254fb7ede1d91301 (diff)
downloadpfsense-187be28993d1f2eb7cf4d269979a62b5f52e0471.zip
pfsense-187be28993d1f2eb7cf4d269979a62b5f52e0471.tar.gz
Do not hard code wireless types that support hostap. Instead use $g['wireless_regex']
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/fbegin.inc8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc
index ac76929..174e668 100755
--- a/usr/local/www/fbegin.inc
+++ b/usr/local/www/fbegin.inc
@@ -160,13 +160,11 @@ require_once("notices.inc");
<li><a href="/status_graph.php" class="navlnk">Traffic graph</a></li>
<?php $i = 0; $ifdescrs = array();
if (is_array($config['interfaces']['wan']['wireless']) &&
- (strstr($config['interfaces']['wan']['if'], "wi") || strstr($config['interfaces']['wan']['if'], "ath")))
- $ifdescrs['wan'] = 'WAN';
-
+ preg_match($g['wireless_regex'], $config['interfaces']['wan']['if']))
+ $ifdescrs['wan'] = 'WAN';
if (is_array($config['interfaces']['lan']['wireless']) &&
- (strstr($config['interfaces']['lan']['if'], "wi") || strstr($config['interfaces']['lan']['if'], "ath")))
+ preg_match($g['wireless_regex'], $config['interfaces']['wan']['if']))
$ifdescrs['lan'] = 'LAN';
-
for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) {
if (is_array($config['interfaces']['opt' . $j]['wireless']) &&
isset($config['interfaces']['opt' . $j]['enable']) &&
OpenPOWER on IntegriCloud