n_gsm: Copy n2 over when configuring via ioctl interface
authorKen Mills <[email protected]>
Thu, 4 Nov 2010 15:16:24 +0000 (15:16 +0000)
committerGreg Kroah-Hartman <[email protected]>
Thu, 11 Nov 2010 19:06:08 +0000 (11:06 -0800)
The n2 field is settable but didn't get propogated

Signed-off-by: Ken Mills <[email protected]>
Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/n_gsm.c

index 04ef3ef0a422c5b6fae1e39284bb8e174d6a9dac..7f79044ae9969656b2a525aa57e7006fb4774ec9 100644 (file)
@@ -2375,6 +2375,7 @@ static int gsmld_config(struct tty_struct *tty, struct gsm_mux *gsm,
        gsm->mru = c->mru;
        gsm->encoding = c->encapsulation;
        gsm->adaption = c->adaption;
+       gsm->n2 = c->n2;
 
        if (c->i == 1)
                gsm->ftype = UIH;