diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-03-07 14:45:05 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-03-07 14:45:05 -0500 |
commit | 7eadaa9c733e696c30b5a6447b1d62aec63db635 (patch) | |
tree | a6c0767d9e1490c409f0ac49c458864779c9efd3 /etc/inc/interfaces.inc | |
parent | ed459692edbd9ed816d11d5358d485661a73bc91 (diff) | |
download | pfsense-7eadaa9c733e696c30b5a6447b1d62aec63db635.zip pfsense-7eadaa9c733e696c30b5a6447b1d62aec63db635.tar.gz |
Only include wpa_passphrase= line if a string has been entered. Ticket #404
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index a651275..e6b61e4 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1640,6 +1640,8 @@ EOD; } break; case 'hostap': + if($wlcfg['wpa']['passphrase']) + $wpa_passphrase = "wpa_passphrase={$wlcfg['wpa']['passphrase']}\n"; if (isset($wlcfg['wpa']['enable'])) { $wpa .= <<<EOD interface={$if} @@ -1663,7 +1665,7 @@ wpa_pairwise={$wlcfg['wpa']['wpa_pairwise']} wpa_group_rekey={$wlcfg['wpa']['wpa_group_rekey']} wpa_gmk_rekey={$wlcfg['wpa']['wpa_gmk_rekey']} wpa_strict_rekey={$wlcfg['wpa']['wpa_strict_rekey']} -wpa_passphrase={$wlcfg['wpa']['passphrase']} +{$wpa_passphrase} #Enable the next lines for preauth when roaming. Interface = wired or wireless interface talking to the AP you want to roam from/to #rsn_preauth=1 #rsn_preauth_interfaces=eth0 |