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>
Tue, 12 Jul 2022 14:35:05 +0000 (16:35 +0200)
commit920e849b7d23ced84c9d11e11e2449e34973cfb8
treea89885fa774de1c7368fd0ff2fbac4dbfaf6c578
parent4db0a8dd906761bf7f14b40a267490c476651f69
tty: n_gsm: fix missing update of modem controls after DLCI open

[ Upstream commit 48473802506d2d6151f59e0e764932b33b53cb3b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/n_gsm.c