diff options
Diffstat (limited to 'drivers/net/ppp_async.c')
-rw-r--r-- | drivers/net/ppp_async.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ppp_async.c b/drivers/net/ppp_async.c index 5de6fedd1d76..6de8399d6dd9 100644 --- a/drivers/net/ppp_async.c +++ b/drivers/net/ppp_async.c | |||
@@ -157,6 +157,7 @@ ppp_asynctty_open(struct tty_struct *tty) | |||
157 | { | 157 | { |
158 | struct asyncppp *ap; | 158 | struct asyncppp *ap; |
159 | int err; | 159 | int err; |
160 | int speed; | ||
160 | 161 | ||
161 | if (tty->ops->write == NULL) | 162 | if (tty->ops->write == NULL) |
162 | return -EOPNOTSUPP; | 163 | return -EOPNOTSUPP; |
@@ -187,6 +188,8 @@ ppp_asynctty_open(struct tty_struct *tty) | |||
187 | ap->chan.private = ap; | 188 | ap->chan.private = ap; |
188 | ap->chan.ops = &async_ops; | 189 | ap->chan.ops = &async_ops; |
189 | ap->chan.mtu = PPP_MRU; | 190 | ap->chan.mtu = PPP_MRU; |
191 | speed = tty_get_baud_rate(tty); | ||
192 | ap->chan.speed = speed; | ||
190 | err = ppp_register_channel(&ap->chan); | 193 | err = ppp_register_channel(&ap->chan); |
191 | if (err) | 194 | if (err) |
192 | goto out_free; | 195 | goto out_free; |