diff options
author | Roy Marples <roy@marples.name> | 2008-09-04 14:54:56 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-09-04 14:54:56 +0000 |
commit | 93a3b2dd02a7d74667f559f483407df7c5460328 (patch) | |
tree | 70e406a31f4719fded8b13250ac0d04bd337cd38 /net | |
parent | 00d010fbe06c68577f860e7e9abc747beea1b209 (diff) |
Fix iwconfig parsing on Linux, #111 thanks to Andrew Gaffney.
Diffstat (limited to 'net')
-rw-r--r-- | net/iwconfig.sh.Linux.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/iwconfig.sh.Linux.in b/net/iwconfig.sh.Linux.in index cf88b6f2..acc720e2 100644 --- a/net/iwconfig.sh.Linux.in +++ b/net/iwconfig.sh.Linux.in @@ -433,7 +433,7 @@ iwconfig_scan() [ -z "${a}" ] && break eval b=\$QUALITY_${k} if [ -n "${b}" -a "${a}" -lt "${b}" ]; then - for x in MAC SSID CHAN QUALITY ENC; do + for x in MAC SSID MODE CHAN QUALITY ENC; do eval t=\$${x}_${i} eval ${x}_${i}=\$${x}_${k} eval ${x}_${k}=\$t @@ -457,7 +457,7 @@ iwconfig_scan() local u=${k} # We need to split this into two tests, otherwise bash errors [ -n "${a}" -a -n "${b}" ] && [ "${a}" -lt "${b}" ] && u=${i} - unset MAC_${u} SSID_${u} CHAN_${u} QUALITY_${u} ENC_${u} + unset MAC_${u} SSID_${u} MODE_${u} CHAN_${u} QUALITY_${u} ENC_${u} fi k=$((${k} + 1)) done @@ -503,7 +503,7 @@ iwconfig_scan() for x; do if [ "${x}" = "${s}" ]; then ewarn "${s} has been blacklisted - not connecting" - unset SSID_${i} MAC_${i} CHAN_${i} QUALITY_${i} ENC_${i} + unset SSID_${i} MAC_${i} ${MODE}_${i} CHAN_${i} QUALITY_${i} ENC_${i} fi done i=$((${i} + 1)) |