summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-03-13 03:06:36 -0500
committerChris Buechler <cmb@pfsense.org>2015-03-13 03:07:50 -0500
commit9b65fdd0cee2c408dc7ef03d53de964d308eba35 (patch)
tree53a0c9f9c33f25632ac53e35618c2f1589c10a3e
parente4909df4de3e5d3423948215d66fc41aef0c9c7d (diff)
downloadpfsense-9b65fdd0cee2c408dc7ef03d53de964d308eba35.zip
pfsense-9b65fdd0cee2c408dc7ef03d53de964d308eba35.tar.gz
Apply WME input validation to all modes, not just hostap. Ticket #4516
-rw-r--r--usr/local/www/interfaces.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 5d027d8..0e32d7f 100644
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -771,16 +771,16 @@ if ($_POST['apply']) {
if ($_POST['mode'] == 'hostap') {
$reqdfields[] = "ssid";
$reqdfieldsn[] = gettext("SSID");
- if (stristr($_POST['standard'], '11n')) {
- if (!($_POST['wme_enable'])) {
- $input_errors[] = gettext("802.11n standards require enabling WME.");
- }
- }
if (isset($_POST['channel']) && $_POST['channel'] == "0") {
// auto channel with hostap is broken, prevent this for now.
$input_errors[] = gettext("A specific channel, not auto, must be selected for Access Point mode.");
}
}
+ if (stristr($_POST['standard'], '11n')) {
+ if (!($_POST['wme_enable'])) {
+ $input_errors[] = gettext("802.11n standards require enabling WME.");
+ }
+ }
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
check_wireless_mode();
if (isset($_POST['wpa_group_rekey']) && (!is_numericint($_POST['wpa_group_rekey']) || $_POST['wpa_group_rekey'] < 1 || $_POST['wpa_group_rekey'] > 9999)) {
OpenPOWER on IntegriCloud