mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 02:48:37 +02:00
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
This commit is contained in:
parent
8b99a957f2
commit
2b63bfb497
@ -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*)
|
||||
|
Loading…
Reference in New Issue
Block a user