diff options
author | Michael Büsch <mb@bu3sch.de> | 2008-02-17 13:30:24 +0000 |
---|---|---|
committer | Michael Büsch <mb@bu3sch.de> | 2008-02-17 13:30:24 +0000 |
commit | 2a922765daf7fa0e16a113f0a455f5791a112fea (patch) | |
tree | ef883c857c3f334138aaae923aaa269167c0c85f /package/hostapd | |
parent | 70a2d7f1b11c93da21829410fb707705e27b8e30 (diff) | |
download | master-187ad058-2a922765daf7fa0e16a113f0a455f5791a112fea.tar.gz master-187ad058-2a922765daf7fa0e16a113f0a455f5791a112fea.tar.bz2 master-187ad058-2a922765daf7fa0e16a113f0a455f5791a112fea.zip |
hostapd.sh: Fix typo. The PSK is expected in the "psk" variable, but we put it into the "key" variable.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10478 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd')
-rw-r--r-- | package/hostapd/files/hostapd.sh | 6 |
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*) |