Revision 6681fdd3
Added by Erik Fonnesbeck almost 15 years ago
usr/local/www/interfaces.php | ||
---|---|---|
223 | 223 |
if (!does_interface_exist($wlanif)) |
224 | 224 |
interface_wireless_clone($wlanif, $wancfg); |
225 | 225 |
$wlanbaseif = interface_get_wireless_base($wancfg['if']); |
226 |
preg_match("/^(.*?)([0-9]*)$/", $wlanbaseif, $wlanbaseif_split); |
|
226 | 227 |
$wl_modes = get_wireless_modes($if); |
227 | 228 |
$wl_chaninfo = get_wireless_channel_info($if); |
229 |
$wl_sysctl_prefix = 'dev.' . $wlanbaseif_split[1] . '.' . $wlanbaseif_split[2]; |
|
230 |
$wl_sysctl = get_sysctl(array("{$wl_sysctl_prefix}.slottime", "{$wl_sysctl_prefix}.acktimeout", "{$wl_sysctl_prefix}.ctstimeout")); |
|
228 | 231 |
$wl_regdomain_xml_attr = array(); |
229 | 232 |
$wl_regdomain_xml = parse_xml_regdomain($wl_regdomain_xml_attr); |
230 | 233 |
$wl_regdomains = &$wl_regdomain_xml['regulatory-domains']['rd']; |
... | ... | |
1585 | 1588 |
<?=gettext("Note: Not all channels may be supported by your card. Auto may override the wireless standard selected above"); ?>. |
1586 | 1589 |
</td> |
1587 | 1590 |
</tr> |
1591 |
<?php if (isset($wl_sysctl["{$wl_sysctl_prefix}.slottime"]) && isset($wl_sysctl["{$wl_sysctl_prefix}.acktimeout"]) && isset($wl_sysctl["{$wl_sysctl_prefix}.ctstimeout"])): ?> |
|
1588 | 1592 |
<tr> |
1589 | 1593 |
<td valign="top" class="vncell"><?=gettext("Distance setting"); ?></td> |
1590 | 1594 |
<td class="vtable"> |
... | ... | |
1594 | 1598 |
<?=gettext("(measured in Meters and works only for Atheros based cards !)"); ?> |
1595 | 1599 |
</td> |
1596 | 1600 |
</tr> |
1601 |
<?php endif; ?> |
|
1597 | 1602 |
<tr> |
1598 | 1603 |
<td valign="top" class="vncell"><?=gettext("Regulatory settings"); ?></td> |
1599 | 1604 |
<td class="vtable"> |
Also available in: Unified diff
Hide the distance setting for wireless interfaces that do not support it.