hostapd.sh: Fix typo. The PSK is expected in the "psk" variable, but we put it into...
authorMichael Büsch <mb@bu3sch.de>
Sun, 17 Feb 2008 13:30:24 +0000 (13:30 +0000)
committerMichael Büsch <mb@bu3sch.de>
Sun, 17 Feb 2008 13:30:24 +0000 (13:30 +0000)
SVN-Revision: 10478

package/hostapd/files/hostapd.sh

index 529462e6c981a649264a7dba9148e3c752d0f018..570f2ed07a50570de5a0ed011746bcb98798b9f2 100644 (file)
@@ -11,7 +11,7 @@ hostapd_setup_vif() {
 
        # TODO: move this parsing function somewhere generic, so that
        # later it can be reused by drivers that don't use hostapd
-       
+
        # crypto defaults: WPA2 vs WPA1
        case "$enc" in
                wpa2*|WPA2*|*PSK2*|*psk2*)
@@ -34,11 +34,11 @@ hostapd_setup_vif() {
                *tkip|*TKIP) crypto="TKIP";;
                *aes|*AES|*ccmp|*CCMP) crypto="CCMP";;
        esac
-       
+
        # use crypto/auth settings for building the hostapd config
        case "$enc" in
                *psk*|*PSK*)
-                       config_get psk "$vif" key
+                       config_get psk "$vif" psk
                        append hostapd_cfg "wpa_passphrase=$psk" "$N"
                ;;
                *wpa*|*WPA*)