wext.h 944 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef __NET_WEXT_H
  2. #define __NET_WEXT_H
  3. /*
  4. * wireless extensions interface to the core code
  5. */
  6. struct net;
  7. #ifdef CONFIG_WIRELESS_EXT
  8. extern int wext_proc_init(struct net *net);
  9. extern void wext_proc_exit(struct net *net);
  10. extern int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
  11. void __user *arg);
  12. extern int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
  13. unsigned long arg);
  14. extern struct iw_statistics *get_wireless_stats(struct net_device *dev);
  15. #else
  16. static inline int wext_proc_init(struct net *net)
  17. {
  18. return 0;
  19. }
  20. static inline void wext_proc_exit(struct net *net)
  21. {
  22. return;
  23. }
  24. static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
  25. void __user *arg)
  26. {
  27. return -EINVAL;
  28. }
  29. static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
  30. unsigned long arg)
  31. {
  32. return -EINVAL;
  33. }
  34. #endif
  35. #endif /* __NET_WEXT_H */