Messages in this thread Patch in this message | | | From | Andrej Krpic <> | Subject | [PATCH 4/8] tty: n_gsm: send DM response when accessing an invalid channel | Date | Sun, 21 Feb 2016 22:38:33 +0100 |
| |
Change C/R bit in a response to a UI/UIH frame sent to non-existing/closed channel. As DM frame type is only valid as a response, it should be sent using gsm_response function.
Signed-off-by: Andrej Krpic <ak77@tnode.com> --- drivers/tty/n_gsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index 05b562d..8551fa4 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c @@ -1857,7 +1857,7 @@ static void gsm_queue(struct gsm_mux *gsm) goto invalid; #endif if (dlci == NULL || dlci->state != DLCI_OPEN) { - gsm_command(gsm, address, DM|PF); + gsm_response(gsm, address, DM|PF); return; } dlci->data(dlci, gsm->buf, gsm->len); -- 2.7.0
| |