lift handling of SIOCIW... out of dev_ioctl()

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2017-10-01 20:13:08 -04:00
commit b1b0c24506
4 changed files with 12 additions and 25 deletions

View file

@ -1005,7 +1005,7 @@ static long sock_ioctl(struct file *file, unsigned cmd, unsigned long arg)
} else
#ifdef CONFIG_WEXT_CORE
if (cmd >= SIOCIWFIRST && cmd <= SIOCIWLAST) {
err = dev_ioctl(net, cmd, argp);
err = wext_handle_ioctl(net, cmd, argp);
} else
#endif
switch (cmd) {