summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_wlan.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-09-03 16:35:19 +0000
committerErmal Luçi <eri@pfsense.org>2008-09-03 16:35:19 +0000
commit45335fc4a41c15b9261de60402f474fbb33b1347 (patch)
tree32077f35ece3c2074182a67a521dba9e2a2c2988 /usr/local/www/interfaces_wlan.inc
parentc33e18c2320fa8d5ea9310e1964d15861883ff10 (diff)
downloadpfsense-45335fc4a41c15b9261de60402f474fbb33b1347.zip
pfsense-45335fc4a41c15b9261de60402f474fbb33b1347.tar.gz
Hopefully fix wirless configuration issues on GUI part since the wireless code requests an optcfg array as global which was removed with multi pppoe/pptp/... fixes. Pass the required array as a parameter to the wireless code to avoid further breakage while fixing other code.
Diffstat (limited to 'usr/local/www/interfaces_wlan.inc')
-rwxr-xr-xusr/local/www/interfaces_wlan.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/interfaces_wlan.inc b/usr/local/www/interfaces_wlan.inc
index 5515eeb..38b6baf 100755
--- a/usr/local/www/interfaces_wlan.inc
+++ b/usr/local/www/interfaces_wlan.inc
@@ -29,8 +29,8 @@
POSSIBILITY OF SUCH DAMAGE.
*/
-function wireless_config_init() {
- global $optcfg, $pconfig;
+function wireless_config_init(&$optcfg) {
+ global $pconfig;
$pconfig['standard'] = $optcfg['wireless']['standard'];
$pconfig['mode'] = $optcfg['wireless']['mode'];
@@ -74,8 +74,8 @@ function wireless_config_init() {
}
}
-function wireless_config_post() {
- global $optcfg, $pconfig;
+function wireless_config_post(&$optcfg) {
+ global $pconfig;
$input_errors = "";
unset($input_errors);
@@ -219,8 +219,8 @@ function wireless_config_post() {
$curif = convert_friendly_interface_to_real_interface_name($if);
$wl_modes = get_wireless_modes($curif);
-function wireless_config_print() {
- global $optcfg, $pconfig, $wl_modes, $g;
+function wireless_config_print(&$optcfg) {
+ global $pconfig, $wl_modes, $g;
?>
<script language="JavaScript">
OpenPOWER on IntegriCloud