]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/ppp_async.c
ppp: ppp_mp_explode() redesign
[net-next-2.6.git] / drivers / net / ppp_async.c
index 5de6fedd1d769432567db02e902f3eabf2a5aad2..6de8399d6dd92d26875cca679ec332c19082d736 100644 (file)
@@ -157,6 +157,7 @@ ppp_asynctty_open(struct tty_struct *tty)
 {
        struct asyncppp *ap;
        int err;
+       int speed;
 
        if (tty->ops->write == NULL)
                return -EOPNOTSUPP;
@@ -187,6 +188,8 @@ ppp_asynctty_open(struct tty_struct *tty)
        ap->chan.private = ap;
        ap->chan.ops = &async_ops;
        ap->chan.mtu = PPP_MRU;
+       speed = tty_get_baud_rate(tty);
+       ap->chan.speed = speed;
        err = ppp_register_channel(&ap->chan);
        if (err)
                goto out_free;