hostapd_ioctl.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Host AP (software wireless LAN access point) user space daemon for
  3. * Host AP kernel driver
  4. * Copyright 2002-2003, Jouni Malinen <jkmaline@cc.hut.fi>
  5. * Copyright 2002-2004, Instant802 Networks, Inc.
  6. * Copyright 2005, Devicescape Software, Inc.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef HOSTAPD_IOCTL_H
  13. #define HOSTAPD_IOCTL_H
  14. #ifdef __KERNEL__
  15. #include <linux/types.h>
  16. #endif /* __KERNEL__ */
  17. #define PRISM2_IOCTL_PRISM2_PARAM (SIOCIWFIRSTPRIV + 0)
  18. #define PRISM2_IOCTL_GET_PRISM2_PARAM (SIOCIWFIRSTPRIV + 1)
  19. #define PRISM2_IOCTL_HOSTAPD (SIOCIWFIRSTPRIV + 3)
  20. /* PRISM2_IOCTL_PRISM2_PARAM ioctl() subtypes:
  21. * This table is no longer added to, the whole sub-ioctl
  22. * mess shall be deleted completely. */
  23. enum {
  24. PRISM2_PARAM_IEEE_802_1X = 23,
  25. /* Instant802 additions */
  26. PRISM2_PARAM_CTS_PROTECT_ERP_FRAMES = 1001,
  27. PRISM2_PARAM_PREAMBLE = 1003,
  28. PRISM2_PARAM_SHORT_SLOT_TIME = 1006,
  29. PRISM2_PARAM_NEXT_MODE = 1008,
  30. PRISM2_PARAM_KEY_TX_RX_THRESHOLD = 1024,
  31. PRISM2_PARAM_WIFI_WME_NOACK_TEST = 1033,
  32. PRISM2_PARAM_SCAN_FLAGS = 1035,
  33. PRISM2_PARAM_HW_MODES = 1036,
  34. PRISM2_PARAM_CREATE_IBSS = 1037,
  35. PRISM2_PARAM_WMM_ENABLED = 1038,
  36. PRISM2_PARAM_MIXED_CELL = 1039,
  37. };
  38. /* Data structures used for get_hw_features ioctl */
  39. struct hostapd_ioctl_hw_modes_hdr {
  40. int mode;
  41. int num_channels;
  42. int num_rates;
  43. };
  44. struct ieee80211_channel_data {
  45. short chan; /* channel number (IEEE 802.11) */
  46. short freq; /* frequency in MHz */
  47. int flag; /* flag for hostapd use (IEEE80211_CHAN_*) */
  48. };
  49. struct ieee80211_rate_data {
  50. int rate; /* rate in 100 kbps */
  51. int flags; /* IEEE80211_RATE_ flags */
  52. };
  53. #endif /* HOSTAPD_IOCTL_H */