diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-07 23:37:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-07 23:37:19 +0000 |
commit | 3ea3dce5c0a614dc2f53c5f3725bf2bf5a0368b1 (patch) | |
tree | 6d590c906e284d809b0eb6d2f1c6ba1e8f7912a6 /usr/local/www/interfaces_wlan.inc | |
parent | 966528934ca5c0ef24c364ab2aaa589655d8eb08 (diff) | |
download | pfsense-3ea3dce5c0a614dc2f53c5f3725bf2bf5a0368b1.zip pfsense-3ea3dce5c0a614dc2f53c5f3725bf2bf5a0368b1.tar.gz |
Use $g['wireless_regex'] for wireless detection
Ticket #304
Diffstat (limited to 'usr/local/www/interfaces_wlan.inc')
-rwxr-xr-x | usr/local/www/interfaces_wlan.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/interfaces_wlan.inc b/usr/local/www/interfaces_wlan.inc index 79bf506..3850772 100755 --- a/usr/local/www/interfaces_wlan.inc +++ b/usr/local/www/interfaces_wlan.inc @@ -130,9 +130,8 @@ function wireless_config_print() { <td class="vtable"><select name="mode" class="formfld" id="mode"> <?php $opts = array(); - if (strstr($optcfg['if'], "wi") || - strstr($optcfg['if'], "ath")) - $opts[] = "hostap"; + if (preg_match($g['wireless_regex'], $optcfg['if'])) + $opts[] = "hostap"; $opts[] = "BSS"; $opts[] = "IBSS"; foreach ($opts as $opt): ?> |