diff options
author | daniel.starke@siemens.com <daniel.starke@siemens.com> | 2022-02-17 23:31:21 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-21 19:51:04 +0100 |
commit | c19d93542a6081577e6da9bf5e887979c72e80c1 (patch) | |
tree | 26803f47677e966baab0ff17bc2f31da560f2135 /lib | |
parent | 96b169f05cdcc844b400695184d77e42071d14f2 (diff) | |
download | linux-stable-c19d93542a6081577e6da9bf5e887979c72e80c1.tar.gz linux-stable-c19d93542a6081577e6da9bf5e887979c72e80c1.tar.bz2 linux-stable-c19d93542a6081577e6da9bf5e887979c72e80c1.zip |
tty: n_gsm: fix wrong tty control line for flow control
tty flow control is handled via gsmtty_throttle() and gsmtty_unthrottle().
Both functions propagate the outgoing hardware flow control state to the
remote side via MSC (modem status command) frames. The local state is taken
from the RTS (ready to send) flag of the tty. However, RTS gets mapped to
DTR (data terminal ready), which is wrong.
This patch corrects this by mapping RTS to RTS.
Fixes: e1eaea46bb40 ("tty: n_gsm line discipline")
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Starke <daniel.starke@siemens.com>
Link: https://lore.kernel.org/r/20220218073123.2121-5-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions