]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/ppp_synctty.c
ppp: ppp_mp_explode() redesign
[net-next-2.6.git] / drivers / net / ppp_synctty.c
index 3ea791d16b00110b5c9d44e2d4211cd7c401ab40..d2fa2db1358633771439013546758654444c6a00 100644 (file)
@@ -206,6 +206,7 @@ ppp_sync_open(struct tty_struct *tty)
 {
        struct syncppp *ap;
        int err;
+       int speed;
 
        if (tty->ops->write == NULL)
                return -EOPNOTSUPP;
@@ -234,6 +235,8 @@ ppp_sync_open(struct tty_struct *tty)
        ap->chan.ops = &sync_ops;
        ap->chan.mtu = PPP_MRU;
        ap->chan.hdrlen = 2;    /* for A/C bytes */
+       speed = tty_get_baud_rate(tty);
+       ap->chan.speed = speed;
        err = ppp_register_channel(&ap->chan);
        if (err)
                goto out_free;