blob: c02b8decf3af8324b104bfeb5f9593785ec2f321 [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
8#ifdef CONFIG_WIRELESS_EXT
9extern int wext_proc_init(void);
10extern int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd,
11 void __user *arg);
12#else
David Howellsb8b8fd22007-04-27 15:31:24 -070013static inline int wext_proc_init(void)
Johannes Berg295f4a12007-04-26 20:43:56 -070014{
15 return 0;
16}
17static inline int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd,
18 void __user *arg)
19{
20 return -EINVAL;
21}
22#endif
23
24#endif /* __NET_WEXT_H */