diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-03-12 20:45:11 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-03-12 20:45:11 -0500 |
commit | 1483a8137f9bc1fb3c7b8a89c77f47b845eda48e (patch) | |
tree | a0862eca39c435057defec8bf57ea444db2547a4 /etc/inc/interfaces.inc | |
parent | e691957fca78538aa7c23fcfe1dbf823d9624984 (diff) | |
download | pfsense-1483a8137f9bc1fb3c7b8a89c77f47b845eda48e.zip pfsense-1483a8137f9bc1fb3c7b8a89c77f47b845eda48e.tar.gz |
Set txpower since that seems to work fine now. Explicitly set authmode wpa here, though it's also handled by the supplicant/authenticator. Ticket #4516
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 9984963..8fbedb9 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2416,9 +2416,10 @@ function interface_wireless_configure($if, &$wl, &$wlcfg) { } /* handle txpower setting */ - /* if($wlcfg['txpower'] <> "") + if($wlcfg['txpower'] <> "" && is_numeric($wlcfg['txpower'])) { $wlcmd[] = "txpower " . escapeshellarg($wlcfg['txpower']); - */ + } + /* handle wme option */ if(isset($wlcfg['wme']['enable'])) { $wlcmd[] = "wme"; @@ -2448,6 +2449,8 @@ function interface_wireless_configure($if, &$wl, &$wlcfg) { $i++; } $wlcmd[] = $wepset; + } else if (isset($wlcfg['wpa']['enable'])) { + $wlcmd[] = "authmode wpa wepmode off "; } else { $wlcmd[] = "authmode open wepmode off "; } |