mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 18:23:53 +08:00
295f4a1fa3
This patch cleans up the call paths from the core code into wext. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
25 lines
464 B
C
25 lines
464 B
C
#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()
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd,
|
|
void __user *arg)
|
|
{
|
|
return -EINVAL;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __NET_WEXT_H */
|