projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wpa_supplicant.sh: always use parameters from the current section
[openwrt.git]
/
package
/
network
/
services
/
hostapd
/
files
/
wpa_supplicant.sh
diff --git
a/package/network/services/hostapd/files/wpa_supplicant.sh
b/package/network/services/hostapd/files/wpa_supplicant.sh
index
928243e
..
127c5a7
100644
(file)
--- a/
package/network/services/hostapd/files/wpa_supplicant.sh
+++ b/
package/network/services/hostapd/files/wpa_supplicant.sh
@@
-9,13
+9,8
@@
wpa_supplicant_setup_vif() {
local scan_ssid="1"
[ -n "$4" ] && freq="frequency=$4"
local scan_ssid="1"
[ -n "$4" ] && freq="frequency=$4"
- # make sure we have the encryption type and the psk
- [ -n "$enc" ] || {
- config_get enc "$vif" encryption
- }
- [ -n "$key" ] || {
- config_get key "$vif" key
- }
+ config_get enc "$vif" encryption
+ config_get key "$vif" key
local net_cfg bridge
config_get bridge "$vif" bridge
local net_cfg bridge
config_get bridge "$vif" bridge