hostap_config.h 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #ifndef HOSTAP_CONFIG_H
  2. #define HOSTAP_CONFIG_H
  3. #define PRISM2_VERSION "CVS"
  4. /* In the previous versions of Host AP driver, support for user space version
  5. * of IEEE 802.11 management (hostapd) used to be disabled in the default
  6. * configuration. From now on, support for hostapd is always included and it is
  7. * possible to disable kernel driver version of IEEE 802.11 management with a
  8. * separate define, PRISM2_NO_KERNEL_IEEE80211_MGMT. */
  9. /* #define PRISM2_NO_KERNEL_IEEE80211_MGMT */
  10. /* Maximum number of events handler per one interrupt */
  11. #define PRISM2_MAX_INTERRUPT_EVENTS 20
  12. /* Use PCI bus master to copy data to/from BAP (only available for
  13. * hostap_pci.o).
  14. *
  15. * Note! This is extremely experimental. PCI bus master is not supported by
  16. * Intersil and it seems to have some problems at least on TX path (see below).
  17. * The driver code for implementing bus master support is based on guessing
  18. * and experimenting suitable control bits and these might not be correct.
  19. * This code is included because using bus master makes a huge difference in
  20. * host CPU load (something like 40% host CPU usage to 5-10% when sending or
  21. * receiving at maximum throughput).
  22. *
  23. * Note2! Station firmware version 1.3.5 and primary firmware version 1.0.7
  24. * have some fixes for PCI corruption and these (or newer) versions are
  25. * recommended especially when using bus mastering.
  26. *
  27. * NOTE: PCI bus mastering code has not been updated for long time and it is
  28. * not likely to compile and it will _not_ work as is. Only enable this if you
  29. * are prepared to first fix the implementation..
  30. */
  31. /* #define PRISM2_BUS_MASTER */
  32. #ifdef PRISM2_BUS_MASTER
  33. /* PCI bus master implementation seems to be broken in current
  34. * hardware/firmware versions. Enable this to use enable command to fix
  35. * something before starting bus master operation on TX path. This will add
  36. * some latency and an extra interrupt to each TX packet. */
  37. #define PRISM2_ENABLE_BEFORE_TX_BUS_MASTER
  38. #endif /* PRISM2_BUS_MASTER */
  39. /* Include code for downloading firmware images into volatile RAM. */
  40. #define PRISM2_DOWNLOAD_SUPPORT
  41. /* Allow kernel configuration to enable download support. */
  42. #if !defined(PRISM2_DOWNLOAD_SUPPORT) && defined(CONFIG_HOSTAP_FIRMWARE)
  43. #define PRISM2_DOWNLOAD_SUPPORT
  44. #endif
  45. #ifdef PRISM2_DOWNLOAD_SUPPORT
  46. /* Allow writing firmware images into flash, i.e., to non-volatile storage.
  47. * Before you enable this option, you should make absolutely sure that you are
  48. * using prism2_srec utility that comes with THIS version of the driver!
  49. * In addition, please note that it is possible to kill your card with
  50. * non-volatile download if you are using incorrect image. This feature has not
  51. * been fully tested, so please be careful with it. */
  52. /* #define PRISM2_NON_VOLATILE_DOWNLOAD */
  53. #endif /* PRISM2_DOWNLOAD_SUPPORT */
  54. /* Save low-level I/O for debugging. This should not be enabled in normal use.
  55. */
  56. /* #define PRISM2_IO_DEBUG */
  57. /* Following defines can be used to remove unneeded parts of the driver, e.g.,
  58. * to limit the size of the kernel module. Definitions can be added here in
  59. * hostap_config.h or they can be added to make command with EXTRA_CFLAGS,
  60. * e.g.,
  61. * 'make pccard EXTRA_CFLAGS="-DPRISM2_NO_DEBUG -DPRISM2_NO_PROCFS_DEBUG"'
  62. */
  63. /* Do not include debug messages into the driver */
  64. /* #define PRISM2_NO_DEBUG */
  65. /* Do not include /proc/net/prism2/wlan#/{registers,debug} */
  66. /* #define PRISM2_NO_PROCFS_DEBUG */
  67. /* Do not include station functionality (i.e., allow only Master (Host AP) mode
  68. */
  69. /* #define PRISM2_NO_STATION_MODES */
  70. #endif /* HOSTAP_CONFIG_H */