diff options
Diffstat (limited to 'include/net/wext.h')
-rw-r--r-- | include/net/wext.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/net/wext.h b/include/net/wext.h index c02b8decf3af..80b31d826b7a 100644 --- a/include/net/wext.h +++ b/include/net/wext.h | |||
@@ -5,16 +5,23 @@ | |||
5 | * wireless extensions interface to the core code | 5 | * wireless extensions interface to the core code |
6 | */ | 6 | */ |
7 | 7 | ||
8 | struct net; | ||
9 | |||
8 | #ifdef CONFIG_WIRELESS_EXT | 10 | #ifdef CONFIG_WIRELESS_EXT |
9 | extern int wext_proc_init(void); | 11 | extern int wext_proc_init(struct net *net); |
10 | extern int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd, | 12 | extern void wext_proc_exit(struct net *net); |
13 | extern int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, | ||
11 | void __user *arg); | 14 | void __user *arg); |
12 | #else | 15 | #else |
13 | static inline int wext_proc_init(void) | 16 | static inline int wext_proc_init(struct net *net) |
14 | { | 17 | { |
15 | return 0; | 18 | return 0; |
16 | } | 19 | } |
17 | static inline int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd, | 20 | static inline void wext_proc_exit(struct net *net) |
21 | { | ||
22 | return; | ||
23 | } | ||
24 | static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, | ||
18 | void __user *arg) | 25 | void __user *arg) |
19 | { | 26 | { |
20 | return -EINVAL; | 27 | return -EINVAL; |