uchcom: reject parity and double stop bits as unsupported
Reviewed by: hselasky MFC after: 2 weeks
This commit is contained in:
parent
d1650aa51e
commit
ae0d438d19
@ -689,6 +689,10 @@ uchcom_pre_param(struct ucom_softc *ucom, struct termios *t)
|
||||
default:
|
||||
return (EIO);
|
||||
}
|
||||
if ((t->c_cflag & CSTOPB) != 0)
|
||||
return (EIO);
|
||||
if ((t->c_cflag & PARENB) != 0)
|
||||
return (EIO);
|
||||
|
||||
if (uchcom_calc_divider_settings(&dv, t->c_ospeed)) {
|
||||
return (EIO);
|
||||
|
Loading…
x
Reference in New Issue
Block a user