diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-09-03 16:35:19 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-09-03 16:35:19 +0000 |
commit | 45335fc4a41c15b9261de60402f474fbb33b1347 (patch) | |
tree | 32077f35ece3c2074182a67a521dba9e2a2c2988 /usr/local/www/interfaces_wlan.inc | |
parent | c33e18c2320fa8d5ea9310e1964d15861883ff10 (diff) | |
download | pfsense-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-x | usr/local/www/interfaces_wlan.inc | 12 |
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"> |