summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-03-13 02:54:30 -0500
committerChris Buechler <cmb@pfsense.org>2015-03-13 02:54:30 -0500
commite4909df4de3e5d3423948215d66fc41aef0c9c7d (patch)
tree8c5810a14817fccc47620165d91be408f557c2c7 /usr
parent771ca94f698bdac013a88881df018da091f155c8 (diff)
downloadpfsense-e4909df4de3e5d3423948215d66fc41aef0c9c7d.zip
pfsense-e4909df4de3e5d3423948215d66fc41aef0c9c7d.tar.gz
Default to 11ng if an option hasn't been configured. Previously we let the browser pick the first in the list (the first the card reported as available), which ended up being 802.11b. Ticket #4516
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/interfaces.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 12c5044..5d027d8 100644
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -2953,8 +2953,14 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
foreach($wl_modes as $wl_standard => $wl_channels) {
$rowIndex++;
echo "<option ";
- if ($pconfig['standard'] == "$wl_standard")
+ if ($pconfig['standard'] == "$wl_standard") {
echo "selected=\"selected\" ";
+ }
+ if ($pconfig['standard'] == "") {
+ if ($wl_standard == "11ng") {
+ echo "selected=\"selected\" ";
+ }
+ }
echo "value=\"$wl_standard\">802.$wl_standard</option>\n";
}
if ($rowIndex == 0)
OpenPOWER on IntegriCloud