920T: Use specific 920t mtune=
[linux-2.6/mini2440.git] / include / net / wext.h
blob3f2b94de2cfa6863b7c947884616b503c47e77d1
1 #ifndef __NET_WEXT_H
2 #define __NET_WEXT_H
4 /*
5 * wireless extensions interface to the core code
6 */
8 struct net;
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)
21 return 0;
23 static inline void wext_proc_exit(struct net *net)
25 return;
27 static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
28 void __user *arg)
30 return -EINVAL;
32 static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
33 unsigned long arg)
35 return -EINVAL;
37 #endif
39 #endif /* __NET_WEXT_H */