shift
local address
+ local channel
local phy
local type="managed"
--address=*)
address=$(cli_get_val ${1})
;;
+ --channel=*)
+ channel=$(cli_get_val "${1}")
+ ;;
--phy=*)
phy=$(cli_get_val ${1})
phy=$(phy_get ${phy})
log ERROR "could not create wireless device '${device}' (${type}): ${ret}"
fi
+ # Set the channel
+ if isset channel; then
+ wireless_set_channel "${device}" "${channel}" || return $?
+ fi
+
return ${ret}
}