swh:1:snp:173f8deb0c56c557784b4fd217e7608ac6197844
Raw File
Tip revision: 55b637c6a003a8c4850b41a2c2fd6942d8a7f530 authored by Linus Torvalds on 19 May 2007, 04:06:17 UTC
Linux v2.6.22-rc2
Tip revision: 55b637c
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