wext.h 646 B

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