mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
All the other routines returned EIO from the param routine. Return it
from umodem and ufoma. With these changes, umodem kinda works for me now. It certainly gets past the "tip" bug that I found earlier where 115200 wasn't a valid baud rate. This was "broken" in the mpsafetty commit, but in reality, umodem was always broken.
This commit is contained in:
parent
8a5492b881
commit
88c29cec87
2 changed files with 2 additions and 2 deletions
|
|
@ -950,7 +950,7 @@ ufoma_param(void *addr, int portno, struct termios *t)
|
|||
err = ufoma_set_line_coding(sc, &ls);
|
||||
if (err) {
|
||||
DPRINTF(("ufoma_param: err=%s\n", usbd_errstr(err)));
|
||||
return (ENOTTY);
|
||||
return (EIO);
|
||||
}
|
||||
|
||||
return (0);
|
||||
|
|
|
|||
|
|
@ -603,7 +603,7 @@ umodem_param(void *addr, int portno, struct termios *t)
|
|||
err = umodem_set_line_coding(sc, &ls);
|
||||
if (err) {
|
||||
DPRINTF(("umodem_param: err=%s\n", usbd_errstr(err)));
|
||||
return (ENOTTY);
|
||||
return (EIO);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue