hostapd.sh: Fix typo. The PSK is expected in the "psk" variable, but we put it into the "key" variable.

SVN-Revision: 10478
master
Michael Büsch 17 years ago
parent 23405a451a
commit 7a62cb1f15
  1. 6
      package/hostapd/files/hostapd.sh

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

Loading…
Cancel
Save