Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[Bluetooth] Use non-canonical TTY by default for RFCOMM

While the RFCOMM TTY emulation can act like a real serial port, in
reality it is not used like this. So to not mess up stupid applications,
use the non-canonical mode by default.

Signed-off-by: Denis Kenzior <denis.kenzior@trolltech.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

+1
+1
net/bluetooth/rfcomm/tty.c
··· 1123 1123 rfcomm_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; 1124 1124 rfcomm_tty_driver->init_termios = tty_std_termios; 1125 1125 rfcomm_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; 1126 + rfcomm_tty_driver->init_termios.c_lflag &= ~ICANON; 1126 1127 tty_set_operations(rfcomm_tty_driver, &rfcomm_ops); 1127 1128 1128 1129 if (tty_register_driver(rfcomm_tty_driver)) {