Allow more modes to work.

This commit is contained in:
Roy Marples 2007-05-16 06:33:25 +00:00
parent fc597a8721
commit 66d7150750

View File

@ -71,7 +71,7 @@ iwconfig_user_config() {
iwconfig_set_mode() { iwconfig_set_mode() {
local x= opt= unopt="hostap adhoc" local x= opt= unopt="hostap adhoc"
case "${mode}" in case "$1" in
master|hostap) unopt="adhoc" opt="hostap" ;; master|hostap) unopt="adhoc" opt="hostap" ;;
ad-hoc|adhoc) unopt="hostap" opt="adhoc" ;; ad-hoc|adhoc) unopt="hostap" opt="adhoc" ;;
esac esac
@ -474,7 +474,7 @@ iwconfig_configure() {
ad-hoc|adhoc|hostap|master) iwconfig_setup_specific "${x}" ;; ad-hoc|adhoc|hostap|master) iwconfig_setup_specific "${x}" ;;
esac 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" eerror "Only managed, ad-hoc, master and auto modes are supported"
return 1 return 1
fi fi