summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
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:56:12 -0500
commit141d316c7fd415c5aa9112dc77ef37de33fc585b (patch)
treec099b3aed288e990164647ad51779dca0ddd19f4 /usr/local/www/interfaces.php
parentd31517e5fa795e1b16b45174552d4d6e6a10dc6c (diff)
downloadpfsense-141d316c7fd415c5aa9112dc77ef37de33fc585b.zip
pfsense-141d316c7fd415c5aa9112dc77ef37de33fc585b.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/local/www/interfaces.php')
-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