diff options
author | Namezero <namezero@afim.info> | 2012-02-01 21:29:28 +0100 |
---|---|---|
committer | Namezero <namezero@afim.info> | 2012-02-01 21:29:28 +0100 |
commit | cb3c3fe46e6481451798b74702a9518029da87d0 (patch) | |
tree | 37b0a2d65eefeebef8be4635dc14bda68d3d8041 /usr/local/www/interfaces.php | |
parent | de5aec97024f73a891d1bcbef6958b17a32087cd (diff) | |
download | pfsense-cb3c3fe46e6481451798b74702a9518029da87d0.zip pfsense-cb3c3fe46e6481451798b74702a9518029da87d0.tar.gz |
Wireless client config should allow blank SSID (resubmit, fixed blank lines)
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-x | usr/local/www/interfaces.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 208925b..4a0d49e 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -561,7 +561,9 @@ if ($_POST['apply']) { $input_errors[] = gettext("The MSS must be greater than 576 bytes."); /* Wireless interface? */ if (isset($wancfg['wireless'])) { - $reqdfields = explode(" ", "mode ssid"); + $reqdfields = "mode"; + if($_POST['mode'] == 'hostap') { $reqdfields += " ssid"; } + $reqdfields = explode(" ", $reqdfields); $reqdfieldsn = array(gettext("Mode"),gettext("SSID")); do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); check_wireless_mode(); @@ -649,7 +651,7 @@ if ($_POST['apply']) { if (isset($wancfg['pppoe']['pppoe-reset-type'])) unset($wancfg['pppoe']['pppoe-reset-type']); unset($wancfg['local']); - + unset($wancfg['remote']); unset($a_ppps[$pppid]['apn']); unset($a_ppps[$pppid]['phone']); @@ -1481,6 +1483,7 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"), <center> <div id='savebuttondiv'> + <input id="gwsave" type="Button" value="<?=gettext("Save Gateway"); ?>" onClick='hide_add_gatewaysave();'> <input id="gwcancel" type="Button" value="<?=gettext("Cancel"); ?>" onClick='hide_add_gateway();'> </div> @@ -2289,6 +2292,8 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"), <td valign="top" class="vncellreq"><?=gettext("SSID"); ?></td> <td class="vtable"> <input name="ssid" type="text" class="formfld unknown" id="ssid" size="20" value="<?=htmlspecialchars($pconfig['ssid']); ?>"> + <br/> + <?=gettext("Note: Only required in Access Point mode. If left blank in Ad-hoc or Infrastructure mode, this interface will connect to any available SSID"); ?> </td> </tr> <?php if (isset($wl_modes['11ng']) || isset($wl_modes['11na'])): ?> |