A WPA(2) pre-shared key can either be specified as a 8 to 63 character passphrase which is hashed to a 256 bit key together with the SSID, or a 64 character hex key. Currently, the latter option is supported by the broadcom wifi type, but no by hostapd. The attached patch allows using a 64 character hex key. (#3935)
Signed-off-by: thomas@archlinux.org SVN-Revision: 12394
This commit is contained in:
parent
974ad00cf3
commit
6b04ad55f9
1 changed files with 5 additions and 1 deletions
|
@ -39,7 +39,11 @@ hostapd_setup_vif() {
|
||||||
case "$enc" in
|
case "$enc" in
|
||||||
*psk*|*PSK*)
|
*psk*|*PSK*)
|
||||||
config_get psk "$vif" key
|
config_get psk "$vif" key
|
||||||
append hostapd_cfg "wpa_passphrase=$psk" "$N"
|
if [ ${#psk} -eq 64 ]; then
|
||||||
|
append hostapd_cfg "wpa_psk=$psk" "$N"
|
||||||
|
else
|
||||||
|
append hostapd_cfg "wpa_passphrase=$psk" "$N"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*wpa*|*WPA*)
|
*wpa*|*WPA*)
|
||||||
# required fields? formats?
|
# required fields? formats?
|
||||||
|
|
Loading…
Reference in a new issue