Cleanup redundant psk handling code in wpa_supplicant.sh. (I sent this one to openwrt-devel before, but I am resending it as part of this series because the next patch will also edit wpa_supplicant.sh).
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> SVN-Revision: 20394
This commit is contained in:
parent
c63fd559fc
commit
e74fbc183b
1 changed files with 5 additions and 10 deletions
|
@ -50,22 +50,17 @@ wpa_supplicant_setup_vif() {
|
|||
*psk*)
|
||||
key_mgmt='WPA-PSK'
|
||||
config_get_bool usepassphrase "$vif" passphrase 1
|
||||
if [ "$usepassphrase" = "1" ]; then
|
||||
passphrase="psk=\"${key}\""
|
||||
else
|
||||
passphrase="psk=${key}"
|
||||
fi
|
||||
case "$enc" in
|
||||
*psk2*)
|
||||
proto='proto=RSN'
|
||||
if [ "$usepassphrase" = "1" ]; then
|
||||
passphrase="psk=\"${key}\""
|
||||
else
|
||||
passphrase="psk=${key}"
|
||||
fi
|
||||
;;
|
||||
*psk*)
|
||||
proto='proto=WPA'
|
||||
if [ "$usepassphrase" = "1" ]; then
|
||||
passphrase="psk=\"${key}\""
|
||||
else
|
||||
passphrase="psk=${key}"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue