wext.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /**
  2. * This file contains definition for IOCTL call.
  3. */
  4. #ifndef _WLAN_WEXT_H_
  5. #define _WLAN_WEXT_H_
  6. #define SUBCMD_OFFSET 4
  7. #define SUBCMD_DATA(x) *((int *)(x->u.name + SUBCMD_OFFSET))
  8. /** PRIVATE CMD ID */
  9. #define WLANIOCTL SIOCIWFIRSTPRIV
  10. #define WLAN_SETNONE_GETNONE (WLANIOCTL + 8)
  11. #define WLAN_SUBCMD_BT_RESET 13
  12. #define WLAN_SUBCMD_FWT_RESET 14
  13. #define WLAN_SETNONE_GETONEINT (WLANIOCTL + 15)
  14. #define WLANGETREGION 1
  15. #define WLAN_SUBCMD_FWT_CLEANUP 15
  16. #define WLAN_SUBCMD_FWT_TIME 16
  17. #define WLAN_SUBCMD_MESH_GET_TTL 17
  18. #define WLAN_SETONEINT_GETNONE (WLANIOCTL + 24)
  19. #define WLANSETREGION 8
  20. #define WLAN_SUBCMD_MESH_SET_TTL 18
  21. #define WLAN_SET128CHAR_GET128CHAR (WLANIOCTL + 25)
  22. #define WLAN_SUBCMD_BT_ADD 18
  23. #define WLAN_SUBCMD_BT_DEL 19
  24. #define WLAN_SUBCMD_BT_LIST 20
  25. #define WLAN_SUBCMD_FWT_ADD 21
  26. #define WLAN_SUBCMD_FWT_DEL 22
  27. #define WLAN_SUBCMD_FWT_LOOKUP 23
  28. #define WLAN_SUBCMD_FWT_LIST_NEIGHBOR 24
  29. #define WLAN_SUBCMD_FWT_LIST 25
  30. #define WLAN_SUBCMD_FWT_LIST_ROUTE 26
  31. #define WLAN_SET_GET_SIXTEEN_INT (WLANIOCTL + 29)
  32. #define WLAN_LED_GPIO_CTRL 5
  33. #define WLAN_LINKMODE_802_3 0
  34. #define WLAN_LINKMODE_802_11 2
  35. #define WLAN_RADIOMODE_NONE 0
  36. #define WLAN_RADIOMODE_RADIOTAP 2
  37. /** wlan_ioctl_regrdwr */
  38. struct wlan_ioctl_regrdwr {
  39. /** Which register to access */
  40. u16 whichreg;
  41. /** Read or Write */
  42. u16 action;
  43. u32 offset;
  44. u16 NOB;
  45. u32 value;
  46. };
  47. extern struct iw_handler_def libertas_handler_def;
  48. int libertas_do_ioctl(struct net_device *dev, struct ifreq *req, int i);
  49. int wlan_radio_ioctl(wlan_private * priv, u8 option);
  50. #endif /* _WLAN_WEXT_H_ */