From 66d71507503e17f7fee02b56d229c3910f43c22c Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 16 May 2007 06:33:25 +0000 Subject: Allow more modes to work. --- net.BSD/iwconfig.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net.BSD/iwconfig.sh') diff --git a/net.BSD/iwconfig.sh b/net.BSD/iwconfig.sh index 2f2a724c..7e6cf6e7 100644 --- a/net.BSD/iwconfig.sh +++ b/net.BSD/iwconfig.sh @@ -71,7 +71,7 @@ iwconfig_user_config() { iwconfig_set_mode() { local x= opt= unopt="hostap adhoc" - case "${mode}" in + case "$1" in master|hostap) unopt="adhoc" opt="hostap" ;; ad-hoc|adhoc) unopt="hostap" opt="adhoc" ;; esac @@ -474,7 +474,7 @@ iwconfig_configure() { ad-hoc|adhoc|hostap|master) iwconfig_setup_specific "${x}" ;; esac - if [ "${x}" != "managed" -a "${x}" != "auto" ] ; then + if [ "${x}" != "managed" -a "${x}" != "auto" -a "${x}" != "ad-hoc" -a "${x}" != "adhoc" -a ${x} != "master" ] ; then eerror "Only managed, ad-hoc, master and auto modes are supported" return 1 fi -- cgit v1.2.3