mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add option for wireless standard "auto", to omit "mode" entirely from ifconfig. This shouldn't be necessary, but specifying mode has proven to trigger driver problems that don't exist if it's left unspecified (such as FreeBSD PR 198680). Chosing "auto" fixes ath(4) BSS mode issues otherwise preventing it from connecting.
This commit is contained in:
parent
57413f7fd1
commit
c1ef7cfb41
@ -2325,7 +2325,10 @@ function interface_wireless_configure($if, &$wl, &$wlcfg) {
|
||||
$wlcmd[] = "up";
|
||||
/* Set a/b/g standard */
|
||||
$standard = str_replace(" Turbo", "", $wlcfg['standard']);
|
||||
$wlcmd[] = "mode " . escapeshellarg($standard);
|
||||
/* skip mode entirely for "auto" */
|
||||
if ($wlcfg['standard'] != "auto") {
|
||||
$wlcmd[] = "mode " . escapeshellarg($standard);
|
||||
}
|
||||
|
||||
/* XXX: Disable ampdu for now on mwl when running in 11n mode
|
||||
* to prevent massive packet loss under certain conditions. */
|
||||
@ -2694,10 +2697,13 @@ EOD;
|
||||
}
|
||||
}
|
||||
|
||||
/* The mode must be specified in a separate command before ifconfig
|
||||
/* 20150318 cmb - Note: the below no longer appears to be true on FreeBSD 10.x, so don't set
|
||||
* mode twice (for now at least). This can be removed entirely in the future if no problems are found
|
||||
|
||||
* The mode must be specified in a separate command before ifconfig
|
||||
* will allow the mode and channel at the same time in the next. */
|
||||
mwexec("/sbin/ifconfig " . escapeshellarg($if) . " mode " . escapeshellarg($standard));
|
||||
fwrite($wlan_setup_log, "/sbin/ifconfig " . escapeshellarg($if) . " mode " . escapeshellarg($standard) . "\n");
|
||||
//mwexec("/sbin/ifconfig " . escapeshellarg($if) . " mode " . escapeshellarg($standard));
|
||||
//fwrite($wlan_setup_log, "/sbin/ifconfig " . escapeshellarg($if) . " mode " . escapeshellarg($standard) . "\n");
|
||||
|
||||
/* configure wireless */
|
||||
$wlcmd_args = implode(" ", $wlcmd);
|
||||
|
||||
@ -2950,6 +2950,11 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
|
||||
<select name="standard" class="formselect" id="standard">
|
||||
<?php
|
||||
$rowIndex = 0;
|
||||
echo "<option ";
|
||||
if ($pconfig['standard'] == "auto") {
|
||||
echo "selected=\"selected\" ";
|
||||
}
|
||||
echo "value=\"auto\">auto</option>\n";
|
||||
foreach($wl_modes as $wl_standard => $wl_channels) {
|
||||
$rowIndex++;
|
||||
echo "<option ";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user