diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-25 20:43:21 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-25 20:43:21 +0000 |
commit | 187be28993d1f2eb7cf4d269979a62b5f52e0471 (patch) | |
tree | a3ac0f3c18b679a4bee7261b84b3c8b80749c83f /usr/local | |
parent | d9a31e9352f3cfc25e218e2e254fb7ede1d91301 (diff) | |
download | pfsense-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-x | usr/local/www/fbegin.inc | 8 |
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']) && |