tty: n_gsm: fix missing update of modem controls after DLCI open
authorDaniel Starke <daniel.starke@siemens.com>
Wed, 20 Apr 2022 10:13:44 +0000 (03:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 14:52:25 +0000 (16:52 +0200)
commit48473802506d2d6151f59e0e764932b33b53cb3b
tree76aaaa1dd9f81cfc4ed1ea638f076553dfeb304e
parentcc994bb97587787b8f0c094a9bc6945d82075b1d
tty: n_gsm: fix missing update of modem controls after DLCI open

Currently the peer is not informed about the initial state of the modem
control lines after a new DLCI has been opened.
Fix this by sending the initial modem control line states after DLCI open.

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/20220420101346.3315-1-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c