Merge git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable
[deliverable/linux.git] / include / net / wext.h
1 #ifndef __NET_WEXT_H
2 #define __NET_WEXT_H
3
4 /*
5 * wireless extensions interface to the core code
6 */
7
8 struct net;
9
10 #ifdef CONFIG_WIRELESS_EXT
11 extern int wext_proc_init(struct net *net);
12 extern void wext_proc_exit(struct net *net);
13 extern int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
14 void __user *arg);
15 extern int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
16 unsigned long arg);
17 extern struct iw_statistics *get_wireless_stats(struct net_device *dev);
18 #else
19 static inline int wext_proc_init(struct net *net)
20 {
21 return 0;
22 }
23 static inline void wext_proc_exit(struct net *net)
24 {
25 return;
26 }
27 static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
28 void __user *arg)
29 {
30 return -EINVAL;
31 }
32 static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
33 unsigned long arg)
34 {
35 return -EINVAL;
36 }
37 #endif
38
39 #endif /* __NET_WEXT_H */
This page took 0.030385 seconds and 5 git commands to generate.