mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
make a copy of $optcfg since the wireless code depenes on $optcfg
This commit is contained in:
parent
2901afebfd
commit
8bb295317f
@ -33,6 +33,7 @@
|
||||
require("guiconfig.inc");
|
||||
|
||||
$wancfg = &$config['interfaces']['wan'];
|
||||
$optcfg = &$config['interfaces']['wan'];
|
||||
|
||||
$pconfig['username'] = $config['pppoe']['username'];
|
||||
$pconfig['password'] = $config['pppoe']['password'];
|
||||
|
||||
@ -33,6 +33,7 @@
|
||||
require("guiconfig.inc");
|
||||
|
||||
$wancfg = &$config['interfaces']['wan'];
|
||||
$optcfg = &$config['interfaces']['wan'];
|
||||
|
||||
$pconfig['username'] = $config['pppoe']['username'];
|
||||
$pconfig['password'] = $config['pppoe']['password'];
|
||||
|
||||
@ -105,7 +105,8 @@ function wireless_config_print() {
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic">Wireless configuration</td>
|
||||
</tr>
|
||||
<?php if (strstr($optcfg['if'], "ath")): ?>
|
||||
|
||||
<?php if (stristr($optcfg['if'], "ath") == true): ?>
|
||||
<tr>
|
||||
<td valign="top" class="vncellreq">Standard</td>
|
||||
<td class="vtable"><select name="standard" class="formfld" id="standard">
|
||||
@ -124,7 +125,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"))
|
||||
if (stristr($optcfg['if'], "wi" == true) ||
|
||||
stristr($optcfg['if'], "ath") == true)
|
||||
$opts[] = "hostap";
|
||||
$opts[] = "BSS";
|
||||
$opts[] = "IBSS";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user