/* Set the speed for the Extended Systems JetEye PC ESI-9680 type dongle Apparently (see old esi-driver) no delays are needed here...  */
static int esi_change_speed(struct sir_dev *, unsigned)
/* Set the speed for the Extended Systems JetEye PC ESI-9680 type dongle Apparently (see old esi-driver) no delays are needed here...  */
static int esi_change_speed(struct sir_dev *, unsigned)
{
	int ret = 0;
	int dtr, rts;
	switch (speed) {
	case 19200:
		dtr = TRUE;
		rts = FALSE;
		break;
	case 115200:
		dtr = rts = TRUE;
		break;
	default:
		ret = -EINVAL;
		speed = 9600;
	case 9600:
		dtr = FALSE;
		rts = TRUE;
		break;
	}
	sirdev_set_dtr_rts(dev, dtr, rts);
	dev->speed = speed;
	return ret;
}