wext.h 944 字节
Newer Older
1 2 3 4 5 6 7
#ifndef __NET_WEXT_H
#define __NET_WEXT_H

/*
 * wireless extensions interface to the core code
 */

8 9
struct net;

10
#ifdef CONFIG_WIRELESS_EXT
11 12 13
extern int wext_proc_init(struct net *net);
extern void wext_proc_exit(struct net *net);
extern int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
14
			     void __user *arg);
15 16
extern int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
				    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 22
{
	return 0;
}
23 24 25 26 27
static inline void wext_proc_exit(struct net *net)
{
	return;
}
static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
28 29 30 31
				    void __user *arg)
{
	return -EINVAL;
}
32 33 34 35 36
static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
					   unsigned long arg)
{
	return -EINVAL;
}
37 38 39
#endif

#endif /* __NET_WEXT_H */