diff options
Diffstat (limited to 'net.BSD')
| -rw-r--r-- | net.BSD/iwconfig.sh | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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 | 
