blob: 3f2b94de2cfa6863b7c947884616b503c47e77d1 [file] [log] [blame]
Johannes Berg295f4a12007-04-26 20:43:56 -07001#ifndef __NET_WEXT_H
2#define __NET_WEXT_H
3
4/*
5 * wireless extensions interface to the core code
6 */
7
Eric W. Biederman881d9662007-09-17 11:56:21 -07008struct net;
9
Johannes Berg295f4a12007-04-26 20:43:56 -070010#ifdef CONFIG_WIRELESS_EXT
Eric W. Biederman881d9662007-09-17 11:56:21 -070011extern int wext_proc_init(struct net *net);
12extern void wext_proc_exit(struct net *net);
13extern int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
Johannes Berg295f4a12007-04-26 20:43:56 -070014 void __user *arg);
David S. Miller87de87d2008-06-03 09:14:03 -070015extern int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
16 unsigned long arg);
Johannes Berg8f1546c2009-09-28 15:26:43 +020017extern struct iw_statistics *get_wireless_stats(struct net_device *dev);
Johannes Berg295f4a12007-04-26 20:43:56 -070018#else
Eric W. Biederman881d9662007-09-17 11:56:21 -070019static inline int wext_proc_init(struct net *net)
Johannes Berg295f4a12007-04-26 20:43:56 -070020{
21 return 0;
22}
Eric W. Biederman881d9662007-09-17 11:56:21 -070023static inline void wext_proc_exit(struct net *net)
24{
25 return;
26}
27static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
Johannes Berg295f4a12007-04-26 20:43:56 -070028 void __user *arg)
29{
30 return -EINVAL;
31}
David S. Miller87de87d2008-06-03 09:14:03 -070032static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
33 unsigned long arg)
34{
35 return -EINVAL;
36}
Johannes Berg295f4a12007-04-26 20:43:56 -070037#endif
38
39#endif /* __NET_WEXT_H */