diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-16 02:38:06 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-16 02:38:06 +0000 |
commit | b67d192d1bb6017fc460ad4a005d0e49f8227ed2 (patch) | |
tree | 3ef249571bba6a1eb51822c4fdf342a61017aa79 /etc/inc/interfaces.inc | |
parent | 58543d68a7e58ecdf379ebb9ff23d8184542ed50 (diff) | |
download | pfsense-b67d192d1bb6017fc460ad4a005d0e49f8227ed2.zip pfsense-b67d192d1bb6017fc460ad4a005d0e49f8227ed2.tar.gz |
MFC 7667
Fix wpa_supplicant startup issue and fix macaddress filtering backend function (ticket 684).
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index ca2acac..5432e22 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -557,7 +557,7 @@ function interfaces_wireless_configure($if, $wlcfg) { /* generate wpa_supplicant/hostap config if wpa is enabled */ switch ($wlcfg['mode']) { - case 'BSS': + case 'bss': if (isset($wlcfg['wpa']['enable'])) { $wpa .= <<<EOD @@ -599,9 +599,9 @@ ctrl_interface={$g['varrun_path']}/hostapd ctrl_interface_group=wheel #accept_mac_file={$g['tmp_path']}/hostapd_{$if}.accept #deny_mac_file={$g['tmp_path']}/hostapd_{$if}.deny +#macaddr_acl={$wlcfg['wpa']['macaddr_acl']} ssid={$wlcfg['ssid']} debug={$wlcfg['wpa']['debug_mode']} -#macaddr_acl={$wlcfg['wpa']['macaddr_acl']} auth_algs={$wlcfg['wpa']['auth_algs']} wpa={$wlcfg['wpa']['wpa_mode']} wpa_key_mgmt={$wlcfg['wpa']['wpa_key_mgmt']} @@ -625,11 +625,8 @@ EOD; break; case 'adhoc': - if(is_process_running("hostapd")) - mwexec("$killall hostapd"); - - if(is_process_running("wpa_supplicant")) - mwexec("$killall wpa_supplicant"); + mwexec("$killall hostapd"); + mwexec("$killall wpa_supplicant"); break; } @@ -657,9 +654,8 @@ EOD; mwexec("$ifconfig $if" . " " . $wepset); mwexec("$ifconfig $if" . " up"); - if (isset($wlcfg['wpa']['enable'])) { - if ($wlcfg['mode'] == BSS) + if ($wlcfg['mode'] == bss) mwexec("$wpa_supplicant -i {$if} -c {$g['varetc_path']}/wpa_supplicant_{$if}.conf"); if ($wlcfg['mode'] == hostap) mwexec("$hostapd -B {$g['varetc_path']}/hostapd_{$if}.conf"); |