mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
[PATCH] net/: fix the WIRELESS_EXT abuse
This patch contains the following changes: - add a CONFIG_WIRELESS_EXT select'ed by NET_RADIO for conditional code - remove the now no longer required #ifdef CONFIG_NET_RADIO from some #include's Based on a patch by Jean Tourrilhes <jt@hpl.hp.com>. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
747af1e154
commit
d86b5e0e6b
9 changed files with 17 additions and 31 deletions
|
@ -84,10 +84,7 @@
|
|||
#include <linux/compat.h>
|
||||
#include <linux/kmod.h>
|
||||
#include <linux/audit.h>
|
||||
|
||||
#ifdef CONFIG_NET_RADIO
|
||||
#include <linux/wireless.h> /* Note : will define WIRELESS_EXT */
|
||||
#endif /* CONFIG_NET_RADIO */
|
||||
#include <linux/wireless.h>
|
||||
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/unistd.h>
|
||||
|
@ -840,11 +837,11 @@ static long sock_ioctl(struct file *file, unsigned cmd, unsigned long arg)
|
|||
if (cmd >= SIOCDEVPRIVATE && cmd <= (SIOCDEVPRIVATE + 15)) {
|
||||
err = dev_ioctl(cmd, argp);
|
||||
} else
|
||||
#ifdef WIRELESS_EXT
|
||||
#ifdef CONFIG_WIRELESS_EXT
|
||||
if (cmd >= SIOCIWFIRST && cmd <= SIOCIWLAST) {
|
||||
err = dev_ioctl(cmd, argp);
|
||||
} else
|
||||
#endif /* WIRELESS_EXT */
|
||||
#endif /* CONFIG_WIRELESS_EXT */
|
||||
switch (cmd) {
|
||||
case FIOSETOWN:
|
||||
case SIOCSPGRP:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue