aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-29 16:30:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-29 16:30:13 +0000
commit5b15d418b9472bd8ca950cbef1188fe416bb7796 (patch)
tree441253b66a4f958de9dc7e43b1d02854cdeb3d0e /package/hostapd
parent2f2034752cca7b1003c7342a9f37cd6e746724ab (diff)
downloadupstream-5b15d418b9472bd8ca950cbef1188fe416bb7796.tar.gz
upstream-5b15d418b9472bd8ca950cbef1188fe416bb7796.tar.bz2
upstream-5b15d418b9472bd8ca950cbef1188fe416bb7796.zip
wpa_supplicant: make key_mgmt default to NONE
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31145 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd')
-rw-r--r--package/hostapd/files/wpa_supplicant.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/package/hostapd/files/wpa_supplicant.sh b/package/hostapd/files/wpa_supplicant.sh
index bbd928bfec..9c475a8fb1 100644
--- a/package/hostapd/files/wpa_supplicant.sh
+++ b/package/hostapd/files/wpa_supplicant.sh
@@ -35,12 +35,10 @@ wpa_supplicant_setup_vif() {
}
[ "$mode" = "adhoc" ] && modestr="mode=1"
+ key_mgmt='NONE'
case "$enc" in
- *none*)
- key_mgmt='NONE'
- ;;
+ *none*) ;;
*wep*)
- key_mgmt='NONE'
config_get key "$vif" key
key="${key:-1}"
case "$key" in