wext.h 468 B

123456789101112131415161718192021222324
  1. #ifndef __NET_WEXT_H
  2. #define __NET_WEXT_H
  3. /*
  4. * wireless extensions interface to the core code
  5. */
  6. #ifdef CONFIG_WIRELESS_EXT
  7. extern int wext_proc_init(void);
  8. extern int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd,
  9. void __user *arg);
  10. #else
  11. static inline int wext_proc_init(void)
  12. {
  13. return 0;
  14. }
  15. static inline int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd,
  16. void __user *arg)
  17. {
  18. return -EINVAL;
  19. }
  20. #endif
  21. #endif /* __NET_WEXT_H */