summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-02 01:13:13 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-02 01:13:13 +0000
commit249558a24db1ac9b180a5be572cf6cc2cbebdee4 (patch)
treea23c62f0a0ed5876b50b43897d21b0fba0343939 /etc
parent459d63517d9a156e2ed4bd03912477971f44a67d (diff)
downloadpfsense-249558a24db1ac9b180a5be572cf6cc2cbebdee4.zip
pfsense-249558a24db1ac9b180a5be572cf6cc2cbebdee4.tar.gz
Do not setup supplicant if running hostap
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index bcbed62..0d57780 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -394,8 +394,9 @@ function interfaces_wireless_configure($if, $wlcfg) {
if ($wlcfg['stationname'])
$ifcargs .= "stationname " . escapeshellarg($wlcfg['stationname']) . " ";
-
- if (isset($wlcfg['wpa']['enable'])) {
+
+ if(!$wlcfg['mode']) {
+ if (isset($wlcfg['wpa']['enable'])) {
$wpa .= <<<EOD
@@ -404,10 +405,11 @@ eapol_version=1
ap_scan=1
fast_reauth=1
-network=\{
+network={
ssid="{$wlcfg['ssid']}"
key_mgmt="{$wlcfg['wpapsk']}"
psk="{$wlcfg['passphrase']}"
+
}
EOD;
@@ -417,6 +419,7 @@ EOD;
fclose($fd);
mwexec_bg("wpa_supplicant -i {$if} -c /etc/wpa_supplicant.conf");
+ }
}
if (isset($wlcfg['wep']['enable']) && is_array($wlcfg['wep']['key'])) {
OpenPOWER on IntegriCloud