|
@@ -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);
|