Skip to content
Commit cf16807b authored by Nikola Diklic-Perin's avatar Nikola Diklic-Perin Committed by Greg Kroah-Hartman
Browse files

tty/n_gsm: fix bug in tiocmset



Clear bitmask was not inverted before masking modem_tx.

Calling ioctl(fd, TIOCMBIC, TIOCM_RTS) results in:

[  197.430000] pre_modem_tx:	0x00000006
[  197.430000] clear:			0x00000004
[  197.430000] set:			0x00000000
[  197.440000] post_modem_tx:	0x00000004

which is wrong.

Signed-off-by: default avatarNikola Diklic-Perin <diklic.perin.nikola@gmail.com>
Acked-by: default avatarAlan Cox <alan@linx.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fd01a7a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment