From 6f93566fc7e7c5b08120d4f82628e9ee8b554791 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 10 Apr 2007 12:41:38 +0000 Subject: Fix scanning and clear wepkeys when we start --- net.BSD/iwconfig.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net.BSD') diff --git a/net.BSD/iwconfig.sh b/net.BSD/iwconfig.sh index 73f2337..8d9101f 100644 --- a/net.BSD/iwconfig.sh +++ b/net.BSD/iwconfig.sh @@ -233,7 +233,7 @@ iwconfig_scan() { eindent scan="$(LC_ALL=C ifconfig -v "${IFACE}" list scan 2>/dev/null | sed -e "1 d" -e "s/$/'/g" -e "s/^/'/g")" - while [ ${i} -lt 3 -o -z "${scan}" ] ; do + while [ ${i} -lt 3 -a -z "${scan}" ] ; do scan="${scan}${scan:+ }$(LC_ALL=C ifconfig -v "${IFACE}" scan 2>/dev/null | sed -e "1 d" -e "s/$/'/g" -e "s/^/'/g")" i=$((${i} + 1)) done @@ -453,6 +453,7 @@ iwconfig_defaults() { #ifconfig "${iface}" txpower 100 2>/dev/null ifconfig "${IFACE}" bssid - ifconfig "${IFACE}" ssid - + ifconfig "${IFACE}" wepkey 1:- wepkey 2:- wepkey 3:- wepkey 4:- ifconfig "${IFACE}" authmode open ifconfig "${IFACE}" -mediaopt adhoc ifconfig "${IFACE}" -mediaopt hostap -- cgit v1.2.3