From 9b65fdd0cee2c408dc7ef03d53de964d308eba35 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Fri, 13 Mar 2015 03:06:36 -0500 Subject: Apply WME input validation to all modes, not just hostap. Ticket #4516 --- usr/local/www/interfaces.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr/local/www/interfaces.php') 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)) { -- cgit v1.1