hostapd: change wpa_supplicant.sh to pass 64 byte hex psk unquoted and remove the undocumented usepasspharse option, this makes it match the logic of the hostapd setup
SVN-Revision: 32614
This commit is contained in:
parent
b2f0476871
commit
17f5287b0e
1 changed files with 3 additions and 4 deletions
|
@ -63,11 +63,10 @@ wpa_supplicant_setup_vif() {
|
||||||
key_mgmt='WPA-NONE'
|
key_mgmt='WPA-NONE'
|
||||||
driver='wext'
|
driver='wext'
|
||||||
}
|
}
|
||||||
config_get_bool usepassphrase "$vif" usepassphrase 1
|
if [ ${#key} -eq 64 ]; then
|
||||||
if [ "$usepassphrase" = "1" ]; then
|
|
||||||
passphrase="psk=\"${key}\""
|
|
||||||
else
|
|
||||||
passphrase="psk=${key}"
|
passphrase="psk=${key}"
|
||||||
|
else
|
||||||
|
passphrase="psk=\"${key}\""
|
||||||
fi
|
fi
|
||||||
case "$enc" in
|
case "$enc" in
|
||||||
*psk2*)
|
*psk2*)
|
||||||
|
|
Loading…
Reference in a new issue