forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 <[email protected]> Signed-off-by: John W. Linville <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information
Showing
4 changed files
with
53 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters