diff options
Diffstat (limited to 'src/lib/wpa')
-rw-r--r-- | src/lib/wpa | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/wpa b/src/lib/wpa index 6f21c0f..ff869db 100644 --- a/src/lib/wpa +++ b/src/lib/wpa @@ -218,7 +218,7 @@ wpa_make_config_block() { wep) echo "key_mgmt=NONE" echo "wep_tx_keyidx=0" - if (( ${#Key} % 2 == 0 )) && [[ "$key" = +([[:xdigit:]]) ]]; then + if (( ${#Key} % 2 == 0 )) && [[ "$Key" = +([[:xdigit:]]) ]]; then echo "wep_key0=$Key" else echo "wep_key0=$(wpa_quote "$Key")" @@ -226,7 +226,7 @@ wpa_make_config_block() { ;; wpa) echo "proto=RSN WPA" - if [[ "${#key}" -eq 64 && "$key" = +([[:xdigit:]]) ]]; then + if [[ "${#Key}" -eq 64 && "$Key" = +([[:xdigit:]]) ]]; then echo "psk=$Key" else echo "psk=$(wpa_quote "$Key")" |