hostapd: don't configure wpa_supplicant with empty password="" if no password is...
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 28 Jan 2013 18:05:33 +0000 (18:05 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 28 Jan 2013 18:05:33 +0000 (18:05 +0000)
SVN-Revision: 35358

package/network/services/hostapd/files/wpa_supplicant.sh

index 127c5a70f511a92a1ce2da6b5859981f4341e266..0b5e1d391f61c4844e744a2ed79c56e9f65e3523 100644 (file)
@@ -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')"