From 57f13ba8d04b6c0bcf7aa0f4ae187e1c0f1f5681 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 16 Nov 2005 03:10:29 +0000 Subject: MFC 7719 Add wireless distance tuning. --- usr/local/www/interfaces_wlan.inc | 71 ++++++++++++++++++++++----------------- 1 file changed, 40 insertions(+), 31 deletions(-) (limited to 'usr/local/www/interfaces_wlan.inc') diff --git a/usr/local/www/interfaces_wlan.inc b/usr/local/www/interfaces_wlan.inc index 07247c1..8d387e1 100755 --- a/usr/local/www/interfaces_wlan.inc +++ b/usr/local/www/interfaces_wlan.inc @@ -40,6 +40,7 @@ function wireless_config_init() { $pconfig['stationname'] = $optcfg['wireless']['stationname']; $pconfig['channel'] = $optcfg['wireless']['channel']; $pconfig['txpower'] = $optcfg['wireless']['txpower']; + $pconfig['distance'] = $optcfg['wireless']['distance']; $pconfig['wme_enable'] = isset($optcfg['wireless']['wme']['enable']); $pconfig['pureg_enable'] = isset($optcfg['wireless']['pureg']['enable']); $pconfig['apbridge_enable'] = isset($optcfg['wireless']['apbridge']['enable']); @@ -48,7 +49,7 @@ function wireless_config_init() { $pconfig['hidessid_enable'] = isset($optcfg['wireless']['hidessid']['enable']); $pconfig['debug_mode'] = $optcfg['wireless']['wpa']['debug_mode']; $pconfig['macaddr_acl'] = $optcfg['wireless']['wpa']['macaddr_acl']; - $pconfig['macaddr_acl_enable'] = $optcfg['wireless']['wpa']['macaddr_acl_enable']; + $pconfig['mac_acl_enable'] = $optcfg['wireless']['wpa']['mac_acl_enable']; $pconfig['auth_algs'] = $optcfg['wireless']['wpa']['auth_algs']; $pconfig['wpa_mode'] = $optcfg['wireless']['wpa']['wpa_mode']; $pconfig['wpa_key_mgmt'] = $optcfg['wireless']['wpa']['wpa_key_mgmt']; @@ -140,6 +141,7 @@ function wireless_config_post() { $optcfg['wireless']['channel'] = $_POST['channel']; $optcfg['wireless']['authmode'] = $_POST['authmode']; $optcfg['wireless']['txpower'] = $_POST['txpower']; + $optcfg['wireless']['distance'] = $_POST['distance']; $optcfg['wireless']['wpa']['macaddr_acl'] = $_POST['macaddr_acl']; $optcfg['wireless']['wpa']['auth_algs'] = $_POST['auth_algs']; $optcfg['wireless']['wpa']['wpa_mode'] = $_POST['wpa_mode']; @@ -155,10 +157,10 @@ function wireless_config_post() { else unset($optcfg['wireless']['hidessid']['enable']); - if($_POST['macaddr_acl_enable'] == "yes") - $optcfg['wireless']['wpa']['macaddr_acl_enable'] = true; + if($_POST['mac_acl_enable'] == "yes") + $optcfg['wireless']['wpa']['mac_acl_enable'] = true; else - unset($optcfg['wireless']['wpa']['macaddr_acl_enable']); + unset($optcfg['wireless']['wpa']['mac_acl_enable']); if($_POST['ieee8021x_enable'] == "yes") $optcfg['wireless']['wpa']['ieee8021x']['enable'] = true; @@ -269,13 +271,13 @@ function wireless_config_print() { 802.11g only - > + >
When operating as an access point in 802.11g mode allow only 11g-capable stations to associate (11b-only stations are not permitted to associate). Allow intra-BSS communication - > + >
When operating as an access point, enable this if you want to pass packets between wireless clients directly.
@@ -284,20 +286,20 @@ function wireless_config_print() { Enable turbo mode - > + >
Setting this option will force the card to use turbo mode.
use "ifconfig interface list channel" to list turbo capable channels. Enable WME - > + >
Setting this option will force the card to use WME (wireless QoS). Enable Hide SSID - > + >
Setting this option will force the card to NOT broadcast it's SSID
@@ -321,30 +323,37 @@ function wireless_config_print() { - Channel - + + + +
Note: Not all channels may be supported by your card
use "ifconfig interface list channel" to list channels. - - - Station name - -
- Hint: this field can usually be left blank - - + + + Distance setting + +
+ Note: This field can used to tune ACK/CTS timers to fit the distance between AP and Client
+ (measured in Meters) + + + + Station name + +
+ Hint: this field can usually be left blank + + WEP - > + > Enable WEP @@ -382,7 +391,7 @@ function wireless_config_print() { -
WPA> + > Enable WPA

@@ -418,10 +427,10 @@ function wireless_config_print() { -
Enable MAC Filtering> - Setting this option will enable the use of a mac filterlist to allow deny association based on mac address + > + Setting this option will enable the use of a mac filterlist to allow/deny association based on mac address

- -- cgit v1.1