mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
hostapd: don't configure wpa_supplicant with empty password="" if no password is specified (#12912)
SVN-Revision: 35358
This commit is contained in:
parent
a0f7a3c214
commit
e804a663e3
@ -106,7 +106,7 @@ wpa_supplicant_setup_vif() {
|
|||||||
config_get password "$vif" password
|
config_get password "$vif" password
|
||||||
phase2="phase2=\"auth=${auth:-MSCHAPV2}\""
|
phase2="phase2=\"auth=${auth:-MSCHAPV2}\""
|
||||||
identity="identity=\"$identity\""
|
identity="identity=\"$identity\""
|
||||||
password="password=\"$password\""
|
password="${password:+password=\"$password\"}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
eap_type="eap=$(echo $eap_type | tr 'a-z' 'A-Z')"
|
eap_type="eap=$(echo $eap_type | tr 'a-z' 'A-Z')"
|
||||||
|
Loading…
Reference in New Issue
Block a user