blob: 80b31d826b7a8a3f3765bf0dc6fc569eefc930da [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);
15#else
Eric W. Biederman881d9662007-09-17 11:56:21 -070016static inline int wext_proc_init(struct net *net)
Johannes Berg295f4a12007-04-26 20:43:56 -070017{
18 return 0;
19}
Eric W. Biederman881d9662007-09-17 11:56:21 -070020static 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,
Johannes Berg295f4a12007-04-26 20:43:56 -070025 void __user *arg)
26{
27 return -EINVAL;
28}
29#endif
30
31#endif /* __NET_WEXT_H */