diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-03-12 18:53:14 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-03-12 18:53:14 -0500 |
commit | aec55f9aa49112ec8d793f8cae6277a3d5e08d9d (patch) | |
tree | ef13a05ead995659e6e53334ee286c50d4c736f8 | |
parent | 6cd14b43eeb1442fea6a9515977b137af39a3ae5 (diff) | |
download | pfsense-aec55f9aa49112ec8d793f8cae6277a3d5e08d9d.zip pfsense-aec55f9aa49112ec8d793f8cae6277a3d5e08d9d.tar.gz |
add more wireless validation. Ticket #4516
-rw-r--r-- | usr/local/www/interfaces.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 7020726..8b30459 100644 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -827,11 +827,14 @@ if ($_POST['apply']) { $input_errors[] = gettext("Channel selected is not valid for 802.11a or 802.11na."); } } - if (isset($_POST['standard']) && ($_POST['standard'] = "11b" || $_POST['standard'] = "11g")) { + if (isset($_POST['standard']) && ($_POST['standard'] == "11b" || $_POST['standard'] == "11g")) { if ($_POST['channel'] > 14) { $input_errors[] = gettext("Channel selected is not valid for 802.11b or 802.11g."); } } + if (!empty($_POST['protmode']) && !in_array($_POST['protmode'], array("off", "cts", "rtscts"))) { + $input_errors[] = gettext("Invalid option chosen for OFDM Protection Mode"); + } /* loop through keys and enforce size */ for ($i = 1; $i <= 4; $i++) { if ($_POST['key' . $i]) { |