diff options
Diffstat (limited to 'drivers/net/ppp_synctty.c')
-rw-r--r-- | drivers/net/ppp_synctty.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ppp_synctty.c b/drivers/net/ppp_synctty.c index 3ea791d16b00..d2fa2db13586 100644 --- a/drivers/net/ppp_synctty.c +++ b/drivers/net/ppp_synctty.c | |||
@@ -206,6 +206,7 @@ ppp_sync_open(struct tty_struct *tty) | |||
206 | { | 206 | { |
207 | struct syncppp *ap; | 207 | struct syncppp *ap; |
208 | int err; | 208 | int err; |
209 | int speed; | ||
209 | 210 | ||
210 | if (tty->ops->write == NULL) | 211 | if (tty->ops->write == NULL) |
211 | return -EOPNOTSUPP; | 212 | return -EOPNOTSUPP; |
@@ -234,6 +235,8 @@ ppp_sync_open(struct tty_struct *tty) | |||
234 | ap->chan.ops = &sync_ops; | 235 | ap->chan.ops = &sync_ops; |
235 | ap->chan.mtu = PPP_MRU; | 236 | ap->chan.mtu = PPP_MRU; |
236 | ap->chan.hdrlen = 2; /* for A/C bytes */ | 237 | ap->chan.hdrlen = 2; /* for A/C bytes */ |
238 | speed = tty_get_baud_rate(tty); | ||
239 | ap->chan.speed = speed; | ||
237 | err = ppp_register_channel(&ap->chan); | 240 | err = ppp_register_channel(&ap->chan); |
238 | if (err) | 241 | if (err) |
239 | goto out_free; | 242 | goto out_free; |