aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd/files
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2008-02-17 13:30:24 +0000
committerMichael Büsch <mb@bu3sch.de>2008-02-17 13:30:24 +0000
commit7a62cb1f1503a504f974f5dcfba9428ea28e772f (patch)
tree95103e034f26267279059bf4da19cece44592d10 /package/hostapd/files
parent23405a451aae70b49cc01f9ec4839a46111738c1 (diff)
downloadupstream-7a62cb1f1503a504f974f5dcfba9428ea28e772f.tar.gz
upstream-7a62cb1f1503a504f974f5dcfba9428ea28e772f.tar.bz2
upstream-7a62cb1f1503a504f974f5dcfba9428ea28e772f.zip
hostapd.sh: Fix typo. The PSK is expected in the "psk" variable, but we put it into the "key" variable.
SVN-Revision: 10478
Diffstat (limited to 'package/hostapd/files')
-rw-r--r--package/hostapd/files/hostapd.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index 529462e6c9..570f2ed07a 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -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*)