diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2006-01-31 11:50:55 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-01-31 11:50:55 -0500 |
commit | 0b310f36d7d96e27f6941ec0f9b95e15142f1e78 (patch) | |
tree | c2a3d403c82fd892ded3849cc721cf8e6f8c7824 /net/core | |
parent | 359b8800d3a46557844969c485e1a14baf119b06 (diff) | |
parent | 2f633db5e9c57e07a971b65e9a72f090f59fd5f6 (diff) |
Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/Makefile | 2 | ||||
-rw-r--r-- | net/core/dev.c | 10 |
2 files changed, 5 insertions, 7 deletions
diff --git a/net/core/Makefile b/net/core/Makefile index 630da0f057..79fe12cced 100644 --- a/net/core/Makefile +++ b/net/core/Makefile | |||
@@ -14,5 +14,5 @@ obj-$(CONFIG_XFRM) += flow.o | |||
14 | obj-$(CONFIG_SYSFS) += net-sysfs.o | 14 | obj-$(CONFIG_SYSFS) += net-sysfs.o |
15 | obj-$(CONFIG_NET_DIVERT) += dv.o | 15 | obj-$(CONFIG_NET_DIVERT) += dv.o |
16 | obj-$(CONFIG_NET_PKTGEN) += pktgen.o | 16 | obj-$(CONFIG_NET_PKTGEN) += pktgen.o |
17 | obj-$(CONFIG_NET_RADIO) += wireless.o | 17 | obj-$(CONFIG_WIRELESS_EXT) += wireless.o |
18 | obj-$(CONFIG_NETPOLL) += netpoll.o | 18 | obj-$(CONFIG_NETPOLL) += netpoll.o |
diff --git a/net/core/dev.c b/net/core/dev.c index fd070a098f..41ac7a8ddb 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -110,10 +110,8 @@ | |||
110 | #include <linux/netpoll.h> | 110 | #include <linux/netpoll.h> |
111 | #include <linux/rcupdate.h> | 111 | #include <linux/rcupdate.h> |
112 | #include <linux/delay.h> | 112 | #include <linux/delay.h> |
113 | #ifdef CONFIG_NET_RADIO | 113 | #include <linux/wireless.h> |
114 | #include <linux/wireless.h> /* Note : will define WIRELESS_EXT */ | ||
115 | #include <net/iw_handler.h> | 114 | #include <net/iw_handler.h> |
116 | #endif /* CONFIG_NET_RADIO */ | ||
117 | #include <asm/current.h> | 115 | #include <asm/current.h> |
118 | 116 | ||
119 | /* | 117 | /* |
@@ -2028,7 +2026,7 @@ static struct file_operations softnet_seq_fops = { | |||
2028 | .release = seq_release, | 2026 | .release = seq_release, |
2029 | }; | 2027 | }; |
2030 | 2028 | ||
2031 | #ifdef WIRELESS_EXT | 2029 | #ifdef CONFIG_WIRELESS_EXT |
2032 | extern int wireless_proc_init(void); | 2030 | extern int wireless_proc_init(void); |
2033 | #else | 2031 | #else |
2034 | #define wireless_proc_init() 0 | 2032 | #define wireless_proc_init() 0 |
@@ -2581,7 +2579,7 @@ int dev_ioctl(unsigned int cmd, void __user *arg) | |||
2581 | ret = -EFAULT; | 2579 | ret = -EFAULT; |
2582 | return ret; | 2580 | return ret; |
2583 | } | 2581 | } |
2584 | #ifdef WIRELESS_EXT | 2582 | #ifdef CONFIG_WIRELESS_EXT |
2585 | /* Take care of Wireless Extensions */ | 2583 | /* Take care of Wireless Extensions */ |
2586 | if (cmd >= SIOCIWFIRST && cmd <= SIOCIWLAST) { | 2584 | if (cmd >= SIOCIWFIRST && cmd <= SIOCIWLAST) { |
2587 | /* If command is `set a parameter', or | 2585 | /* If command is `set a parameter', or |
@@ -2602,7 +2600,7 @@ int dev_ioctl(unsigned int cmd, void __user *arg) | |||
2602 | ret = -EFAULT; | 2600 | ret = -EFAULT; |
2603 | return ret; | 2601 | return ret; |
2604 | } | 2602 | } |
2605 | #endif /* WIRELESS_EXT */ | 2603 | #endif /* CONFIG_WIRELESS_EXT */ |
2606 | return -EINVAL; | 2604 | return -EINVAL; |
2607 | } | 2605 | } |
2608 | } | 2606 | } |