Add 802.11g only mode for cards that support it

This commit is contained in:
Scott Ullrich 2005-07-29 20:17:06 +00:00
parent 15e6790734
commit 975326c5c9
3 changed files with 28 additions and 3 deletions

View File

@ -422,14 +422,19 @@ function interfaces_wireless_configure($if, $wlcfg) {
break;
}
/* if hostap is enabled and hidessid is enabled
* then hide the ssid from the general public.
/* extra options during hostap mode
*/
if($wlcfg['mode'] == "hostap") {
if($wlcfg['hidessid'])
/* handle hide ssid option */
if(isset($wlcfg['hidessid']))
$ifcargs .= "hidessid ";
else
$ifcargs .= "-hidessid ";
/* handle pureg (802.11g) only option */
if(isset($wlcfg['pureg']))
$ifcargs .= "pureg ";
else
$ifcargs .= "-pureg ";
}
$ifcargs .= "up";

View File

@ -105,6 +105,12 @@
<description>When this option is enabled, this system will automatically sync the ipsec rules over to the other carp host when changes are made.</description>
<type>checkbox</type>
</field>
<field>
<fielddescr>Synchronize SNMP</fielddescr>
<fieldname>synchronizesnmp</fieldname>
<description>When this option is enabled, this system will automatically sync the snmp settings over to the other carp host when changes are made.</description>
<type>checkbox</type>
</field>
<field>
<fielddescr>Synchronize traffic shaper</fielddescr>
<fieldname>synchronizetrafficshaper</fieldname>

View File

@ -165,6 +165,20 @@ function wireless_config_print() {
</td>
</tr>
<tr>
<td valign="top" class="vncellreq">802.11g only</td>
<td class="vtable">
<?php
if(isset($pconfig['pureg']))
$CHECKED = " CHECKED";
else
$CHECKED = "";
?>
<input name="pureg" type="checkbox" class="formfld" id="pureg"<?php echo $CHECKED; ?>><br>
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).
</td>
</tr>
<tr>
<td valign="top" class="vncellreq">Transmit power</td>
<td class="vtable">