You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[WEXT]: Clean up how wext is called.
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>
This commit is contained in:
committed by
David S. Miller
parent
11433ee450
commit
295f4a1fa3
@@ -0,0 +1,24 @@
|
||||
#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 */
|
||||
Reference in New Issue
Block a user