diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-03-13 03:06:36 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-03-13 03:06:36 -0500 |
commit | 0a950c4b0a3df300ddce1894d83a9188fc8df47f (patch) | |
tree | d4e66663d7305973b28643e9f6ea9312c191ec85 /usr | |
parent | 141d316c7fd415c5aa9112dc77ef37de33fc585b (diff) | |
download | pfsense-0a950c4b0a3df300ddce1894d83a9188fc8df47f.zip pfsense-0a950c4b0a3df300ddce1894d83a9188fc8df47f.tar.gz |
Apply WME input validation to all modes, not just hostap. Ticket #4516
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/interfaces.php | 10 |
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)) { |