]> bbs.cooldavid.org Git - net-next-2.6.git/blame - include/net/wext.h
wext: add back wireless/ dir in sysfs for cfg80211 interfaces
[net-next-2.6.git] / include / net / wext.h
CommitLineData
295f4a1f
JB
1#ifndef __NET_WEXT_H
2#define __NET_WEXT_H
3
4/*
5 * wireless extensions interface to the core code
6 */
7
881d966b
EB
8struct net;
9
295f4a1f 10#ifdef CONFIG_WIRELESS_EXT
881d966b
EB
11extern 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,
295f4a1f 14 void __user *arg);
87de87d5
DM
15extern int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
16 unsigned long arg);
8f1546ca 17extern struct iw_statistics *get_wireless_stats(struct net_device *dev);
295f4a1f 18#else
881d966b 19static inline int wext_proc_init(struct net *net)
295f4a1f
JB
20{
21 return 0;
22}
881d966b
EB
23static 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,
295f4a1f
JB
28 void __user *arg)
29{
30 return -EINVAL;
31}
87de87d5
DM
32static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
33 unsigned long arg)
34{
35 return -EINVAL;
36}
295f4a1f
JB
37#endif
38
39#endif /* __NET_WEXT_H */