1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-30 21:07:32 +02:00

[package] hostapd: change wpa_supplicant.sh to pass 64 byte hex psk unquoted and remove the undocumented usepasspharse option, this makes it match the logic of the hostapd setup

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32614 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2012-07-05 12:25:29 +00:00
parent 11532f0779
commit ececad638e

View File

@ -63,11 +63,10 @@ wpa_supplicant_setup_vif() {
key_mgmt='WPA-NONE' key_mgmt='WPA-NONE'
driver='wext' driver='wext'
} }
config_get_bool usepassphrase "$vif" usepassphrase 1 if [ ${#key} -eq 64 ]; then
if [ "$usepassphrase" = "1" ]; then
passphrase="psk=\"${key}\""
else
passphrase="psk=${key}" passphrase="psk=${key}"
else
passphrase="psk=\"${key}\""
fi fi
case "$enc" in case "$enc" in
*psk2*) *psk2*)