wext.h (ebf8889bd1fe3615991ff4494635d237280652a2) wext.h (87de87d5e47f94b4ea647a5bd1bc8dc1f7930db4)
1#ifndef __NET_WEXT_H
2#define __NET_WEXT_H
3
4/*
5 * wireless extensions interface to the core code
6 */
7
8struct net;
9
10#ifdef CONFIG_WIRELESS_EXT
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,
14 void __user *arg);
1#ifndef __NET_WEXT_H
2#define __NET_WEXT_H
3
4/*
5 * wireless extensions interface to the core code
6 */
7
8struct net;
9
10#ifdef CONFIG_WIRELESS_EXT
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,
14 void __user *arg);
15extern int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
16 unsigned long arg);
15#else
16static inline int wext_proc_init(struct net *net)
17{
18 return 0;
19}
20static inline void wext_proc_exit(struct net *net)
21{
22 return;
23}
24static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
25 void __user *arg)
26{
27 return -EINVAL;
28}
17#else
18static inline int wext_proc_init(struct net *net)
19{
20 return 0;
21}
22static inline void wext_proc_exit(struct net *net)
23{
24 return;
25}
26static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
27 void __user *arg)
28{
29 return -EINVAL;
30}
31static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
32 unsigned long arg)
33{
34 return -EINVAL;
35}
29#endif
30
31#endif /* __NET_WEXT_H */
36#endif
37
38#endif /* __NET_WEXT_H */