From 93a3b2dd02a7d74667f559f483407df7c5460328 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 4 Sep 2008 14:54:56 +0000 Subject: Fix iwconfig parsing on Linux, #111 thanks to Andrew Gaffney. --- net/iwconfig.sh.Linux.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net') 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)) -- cgit v1.2.3