swh:1:snp:c3bf2749e3476071fa748f67b0ffa2fdc5fe49d9
Raw File
Tip revision: d4ac2477fad0f2680e84ec12e387ce67682c5c13 authored by Linus Torvalds on 04 August 2007, 02:49:55 UTC
Linux 2.6.23-rc2
Tip revision: d4ac247
wext.h
#ifndef __NET_WEXT_H
#define __NET_WEXT_H

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

#ifdef CONFIG_WIRELESS_EXT
extern int wext_proc_init(void);
extern int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd,
			     void __user *arg);
#else
static inline int wext_proc_init(void)
{
	return 0;
}
static inline int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd,
				    void __user *arg)
{
	return -EINVAL;
}
#endif

#endif /* __NET_WEXT_H */
back to top