diff options
Diffstat (limited to 'package/hostapd/files')
-rw-r--r-- | package/hostapd/files/wpa_supplicant.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/package/hostapd/files/wpa_supplicant.sh b/package/hostapd/files/wpa_supplicant.sh index 8caad77c2..ed6597c25 100644 --- a/package/hostapd/files/wpa_supplicant.sh +++ b/package/hostapd/files/wpa_supplicant.sh @@ -63,11 +63,10 @@ wpa_supplicant_setup_vif() { key_mgmt='WPA-NONE' driver='wext' } - config_get_bool usepassphrase "$vif" usepassphrase 1 - if [ "$usepassphrase" = "1" ]; then - passphrase="psk=\"${key}\"" - else + if [ ${#key} -eq 64 ]; then passphrase="psk=${key}" + else + passphrase="psk=\"${key}\"" fi case "$enc" in *psk2*) |