wireless.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * This file define a set of standard wireless extensions
  3. *
  4. * Version : 22 16.3.07
  5. *
  6. * Authors : Jean Tourrilhes - HPL - <jt@hpl.hp.com>
  7. * Copyright (c) 1997-2007 Jean Tourrilhes, All Rights Reserved.
  8. */
  9. #ifndef _LINUX_WIRELESS_H
  10. #define _LINUX_WIRELESS_H
  11. #include <uapi/linux/wireless.h>
  12. #ifdef CONFIG_COMPAT
  13. #include <linux/compat.h>
  14. struct compat_iw_point {
  15. compat_caddr_t pointer;
  16. __u16 length;
  17. __u16 flags;
  18. };
  19. #endif
  20. #ifdef CONFIG_COMPAT
  21. struct __compat_iw_event {
  22. __u16 len; /* Real length of this stuff */
  23. __u16 cmd; /* Wireless IOCTL */
  24. compat_caddr_t pointer;
  25. };
  26. #define IW_EV_COMPAT_LCP_LEN offsetof(struct __compat_iw_event, pointer)
  27. #define IW_EV_COMPAT_POINT_OFF offsetof(struct compat_iw_point, length)
  28. /* Size of the various events for compat */
  29. #define IW_EV_COMPAT_CHAR_LEN (IW_EV_COMPAT_LCP_LEN + IFNAMSIZ)
  30. #define IW_EV_COMPAT_UINT_LEN (IW_EV_COMPAT_LCP_LEN + sizeof(__u32))
  31. #define IW_EV_COMPAT_FREQ_LEN (IW_EV_COMPAT_LCP_LEN + sizeof(struct iw_freq))
  32. #define IW_EV_COMPAT_PARAM_LEN (IW_EV_COMPAT_LCP_LEN + sizeof(struct iw_param))
  33. #define IW_EV_COMPAT_ADDR_LEN (IW_EV_COMPAT_LCP_LEN + sizeof(struct sockaddr))
  34. #define IW_EV_COMPAT_QUAL_LEN (IW_EV_COMPAT_LCP_LEN + sizeof(struct iw_quality))
  35. #define IW_EV_COMPAT_POINT_LEN \
  36. (IW_EV_COMPAT_LCP_LEN + sizeof(struct compat_iw_point) - \
  37. IW_EV_COMPAT_POINT_OFF)
  38. #endif
  39. #endif /* _LINUX_WIRELESS_H */