wext.h 871 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #else
  15. static inline int wext_proc_init(struct net *net)
  16. {
  17. return 0;
  18. }
  19. static inline void wext_proc_exit(struct net *net)
  20. {
  21. return;
  22. }
  23. static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
  24. void __user *arg)
  25. {
  26. return -EINVAL;
  27. }
  28. static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
  29. unsigned long arg)
  30. {
  31. return -EINVAL;
  32. }
  33. #endif
  34. #endif /* __NET_WEXT_H */