summaryrefslogtreecommitdiff
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
commit34ccdb348da78e4aea9cfa198299f77ce4c38a1f (patch)
tree2b0f2c4090a15167e3fc2ae0edbafd75cc8522e4 /package/hostapd
parente9c4d3d1f2dd990ebd9474ceda1c77b45678c6bd (diff)
downloadmtk-20170518-34ccdb348da78e4aea9cfa198299f77ce4c38a1f.zip
mtk-20170518-34ccdb348da78e4aea9cfa198299f77ce4c38a1f.tar.gz
mtk-20170518-34ccdb348da78e4aea9cfa198299f77ce4c38a1f.tar.bz2
wpa_supplicant: make key_mgmt default to NONE
SVN-Revision: 31145
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 bbd928b..9c475a8 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