diff options
author | Roy Marples <roy@marples.name> | 2007-04-10 12:41:38 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-04-10 12:41:38 +0000 |
commit | 6f93566fc7e7c5b08120d4f82628e9ee8b554791 (patch) | |
tree | f71d2ba07653f68c7b32179f8bf256fc0fc66ea3 /net.BSD | |
parent | d3db9e9910ef0a472feb27cf4a9ace78e431ddd9 (diff) |
Fix scanning and clear wepkeys when we start
Diffstat (limited to 'net.BSD')
-rw-r--r-- | net.BSD/iwconfig.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net.BSD/iwconfig.sh b/net.BSD/iwconfig.sh index 73f23373..8d9101f7 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 |