summaryrefslogtreecommitdiffstats
path: root/drivers/net/ppp_async.c
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2007-11-07 01:27:34 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2007-11-07 04:14:24 -0800
commitd0127539ea9b5fcfe1a1d7d4d57f12384da5190c (patch)
treeea533cf6c337c9d2fdd9641fb6e67bf895e3b5c8 /drivers/net/ppp_async.c
parent0fc00e2440b717e19bab1ae0015f03936bdf7967 (diff)
downloadop-kernel-dev-d0127539ea9b5fcfe1a1d7d4d57f12384da5190c.zip
op-kernel-dev-d0127539ea9b5fcfe1a1d7d4d57f12384da5190c.tar.gz
[TTY]: Use tty_mode_ioctl() in network drivers.
We conciously make a change here - we permit mode and speed setting to be done in things like SLIP mode. There isn't actually a technical reason to disallow this. It's usually a silly thing to do but we can do it and soemone might wish to do so. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ppp_async.c')
-rw-r--r--drivers/net/ppp_async.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/ppp_async.c b/drivers/net/ppp_async.c
index 27f5b90..8d278c8 100644
--- a/drivers/net/ppp_async.c
+++ b/drivers/net/ppp_async.c
@@ -309,16 +309,11 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file,
err = 0;
break;
- case TCGETS:
- case TCGETA:
- err = n_tty_ioctl(tty, file, cmd, arg);
- break;
-
case TCFLSH:
/* flush our buffers and the serial port's buffer */
if (arg == TCIOFLUSH || arg == TCOFLUSH)
ppp_async_flush_output(ap);
- err = n_tty_ioctl(tty, file, cmd, arg);
+ err = tty_perform_flush(tty, arg);
break;
case FIONREAD:
@@ -329,7 +324,8 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file,
break;
default:
- err = -ENOIOCTLCMD;
+ /* Try the various mode ioctls */
+ err = tty_mode_ioctl(tty, file, cmd, arg);
}
ap_put(ap);
OpenPOWER on IntegriCloud