0001
0002 #ifndef __NET_WEXT_H
0003 #define __NET_WEXT_H
0004
0005 #include <net/iw_handler.h>
0006
0007 struct net;
0008
0009 #ifdef CONFIG_WEXT_CORE
0010 int wext_handle_ioctl(struct net *net, unsigned int cmd,
0011 void __user *arg);
0012 int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
0013 unsigned long arg);
0014
0015 struct iw_statistics *get_wireless_stats(struct net_device *dev);
0016 int call_commit_handler(struct net_device *dev);
0017 #else
0018 static inline int wext_handle_ioctl(struct net *net, unsigned int cmd,
0019 void __user *arg)
0020 {
0021 return -EINVAL;
0022 }
0023 static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
0024 unsigned long arg)
0025 {
0026 return -EINVAL;
0027 }
0028 #endif
0029
0030 #ifdef CONFIG_WEXT_PROC
0031 int wext_proc_init(struct net *net);
0032 void wext_proc_exit(struct net *net);
0033 #else
0034 static inline int wext_proc_init(struct net *net)
0035 {
0036 return 0;
0037 }
0038 static inline void wext_proc_exit(struct net *net)
0039 {
0040 return;
0041 }
0042 #endif
0043
0044 #ifdef CONFIG_WEXT_PRIV
0045 int ioctl_private_call(struct net_device *dev, struct iwreq *iwr,
0046 unsigned int cmd, struct iw_request_info *info,
0047 iw_handler handler);
0048 int compat_private_call(struct net_device *dev, struct iwreq *iwr,
0049 unsigned int cmd, struct iw_request_info *info,
0050 iw_handler handler);
0051 int iw_handler_get_private(struct net_device * dev,
0052 struct iw_request_info * info,
0053 union iwreq_data * wrqu,
0054 char * extra);
0055 #else
0056 #define ioctl_private_call NULL
0057 #define compat_private_call NULL
0058 #endif
0059
0060
0061 #endif