From 8a947fc599c7c692424ed6b5bb73c69fec5bee53 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 28 Jan 2013 18:05:33 +0000 Subject: hostapd: don't configure wpa_supplicant with empty password="" if no password is specified (#12912) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35358 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/network/services/hostapd/files/wpa_supplicant.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/network/services') 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')" -- cgit v1.2.3