hostapd: correctly pass 64 char hex PSK to wpa_supplicant
authorHamish Guthrie <hcg@openwrt.org>
Mon, 13 Feb 2012 16:07:53 +0000 (16:07 +0000)
committerHamish Guthrie <hcg@openwrt.org>
Mon, 13 Feb 2012 16:07:53 +0000 (16:07 +0000)
SVN-Revision: 30504

package/hostapd/files/wpa_supplicant.sh

index 9446202be3385793ee36fbb06d41cd04a8d130e2..8b1de169414d8511d5d4fcdcdd25544d1889fbde 100644 (file)
@@ -59,7 +59,7 @@ wpa_supplicant_setup_vif() {
                ;;
                *psk*)
                        key_mgmt='WPA-PSK'
-                       config_get_bool usepassphrase "$vif" passphrase 1
+                       config_get_bool usepassphrase "$vif" usepassphrase 1
                        if [ "$usepassphrase" = "1" ]; then
                                passphrase="psk=\"${key}\""
                        else