| Johannes Berg | 295f4a1 | 2007-04-26 20:43:56 -0700 | [diff] [blame] | 1 | #ifndef __NET_WEXT_H | 
 | 2 | #define __NET_WEXT_H | 
 | 3 |  | 
 | 4 | /* | 
 | 5 |  * wireless extensions interface to the core code | 
 | 6 |  */ | 
 | 7 |  | 
| Eric W. Biederman | 881d966 | 2007-09-17 11:56:21 -0700 | [diff] [blame] | 8 | struct net; | 
 | 9 |  | 
| Johannes Berg | 295f4a1 | 2007-04-26 20:43:56 -0700 | [diff] [blame] | 10 | #ifdef CONFIG_WIRELESS_EXT | 
| Eric W. Biederman | 881d966 | 2007-09-17 11:56:21 -0700 | [diff] [blame] | 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, | 
| Johannes Berg | 295f4a1 | 2007-04-26 20:43:56 -0700 | [diff] [blame] | 14 | 			     void __user *arg); | 
| David S. Miller | 87de87d | 2008-06-03 09:14:03 -0700 | [diff] [blame] | 15 | extern int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, | 
 | 16 | 				    unsigned long arg); | 
| Johannes Berg | 295f4a1 | 2007-04-26 20:43:56 -0700 | [diff] [blame] | 17 | #else | 
| Eric W. Biederman | 881d966 | 2007-09-17 11:56:21 -0700 | [diff] [blame] | 18 | static inline int wext_proc_init(struct net *net) | 
| Johannes Berg | 295f4a1 | 2007-04-26 20:43:56 -0700 | [diff] [blame] | 19 | { | 
 | 20 | 	return 0; | 
 | 21 | } | 
| Eric W. Biederman | 881d966 | 2007-09-17 11:56:21 -0700 | [diff] [blame] | 22 | static inline void wext_proc_exit(struct net *net) | 
 | 23 | { | 
 | 24 | 	return; | 
 | 25 | } | 
 | 26 | static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, | 
| Johannes Berg | 295f4a1 | 2007-04-26 20:43:56 -0700 | [diff] [blame] | 27 | 				    void __user *arg) | 
 | 28 | { | 
 | 29 | 	return -EINVAL; | 
 | 30 | } | 
| David S. Miller | 87de87d | 2008-06-03 09:14:03 -0700 | [diff] [blame] | 31 | static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, | 
 | 32 | 					   unsigned long arg) | 
 | 33 | { | 
 | 34 | 	return -EINVAL; | 
 | 35 | } | 
| Johannes Berg | 295f4a1 | 2007-04-26 20:43:56 -0700 | [diff] [blame] | 36 | #endif | 
 | 37 |  | 
 | 38 | #endif /* __NET_WEXT_H */ |