aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-01-28 18:05:33 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-01-28 18:05:33 +0000
commite804a663e30e5cd5882b511c1ee79d09054ef52f (patch)
tree35beaf08602c92aa1518796793455529cb5be985
parenta0f7a3c214162a9057e52d41f91487af0bfd8afa (diff)
downloadupstream-e804a663e30e5cd5882b511c1ee79d09054ef52f.tar.gz
upstream-e804a663e30e5cd5882b511c1ee79d09054ef52f.tar.bz2
upstream-e804a663e30e5cd5882b511c1ee79d09054ef52f.zip
hostapd: don't configure wpa_supplicant with empty password="" if no password is specified (#12912)
SVN-Revision: 35358
-rw-r--r--package/network/services/hostapd/files/wpa_supplicant.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/wpa_supplicant.sh b/package/network/services/hostapd/files/wpa_supplicant.sh
index 127c5a70f5..0b5e1d391f 100644
--- a/package/network/services/hostapd/files/wpa_supplicant.sh
+++ b/package/network/services/hostapd/files/wpa_supplicant.sh
@@ -106,7 +106,7 @@ wpa_supplicant_setup_vif() {
config_get password "$vif" password
phase2="phase2=\"auth=${auth:-MSCHAPV2}\""
identity="identity=\"$identity\""
- password="password=\"$password\""
+ password="${password:+password=\"$password\"}"
;;
esac
eap_type="eap=$(echo $eap_type | tr 'a-z' 'A-Z')"