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

This commit is contained in:
Chris Buechler 2015-03-13 02:54:30 -05:00
parent 771ca94f69
commit e4909df4de

View File

@ -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)