mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-06 05:17:28 -05: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
@@ -431,16 +431,7 @@ struct iw_public_data {
|
||||
* Those may be called only within the kernel.
|
||||
*/
|
||||
|
||||
/* First : function strictly used inside the kernel */
|
||||
|
||||
/* Handle /proc/net/wireless, called in net/code/dev.c */
|
||||
extern int dev_get_wireless_info(char * buffer, char **start, off_t offset,
|
||||
int length);
|
||||
|
||||
/* Handle IOCTLs, called in net/core/dev.c */
|
||||
extern int wireless_process_ioctl(struct ifreq *ifr, unsigned int cmd);
|
||||
|
||||
/* Second : functions that may be called by driver modules */
|
||||
/* functions that may be called by driver modules */
|
||||
|
||||
/* Send a single event to user space */
|
||||
extern void wireless_send_event(struct net_device * dev,
|
||||
|
||||
24
include/net/wext.h
Normal file
24
include/net/wext.h
Normal file
@@ -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