n_gsm: Copy n2 over when configuring via ioctl interface
authorKen Mills <ken.k.mills@intel.com>
Thu, 4 Nov 2010 15:16:24 +0000 (15:16 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
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 <ken.k.mills@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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;