00001 #ifndef HOSTAP_CONFIG_H 00002 #define HOSTAP_CONFIG_H 00003 00004 #define PRISM2_VERSION "0.1.3 - 2004-02-08" 00005 00006 /* In the previous versions of Host AP driver, support for user space version 00007 * of IEEE 802.11 management (hostapd) used to be disabled in the default 00008 * configuration. From now on, support for hostapd is always included and it is 00009 * possible to disable kernel driver version of IEEE 802.11 management with a 00010 * separate define, PRISM2_NO_KERNEL_IEEE80211_MGMT. */ 00011 /* #define PRISM2_NO_KERNEL_IEEE80211_MGMT */ 00012 00013 /* Maximum number of events handler per one interrupt */ 00014 #define PRISM2_MAX_INTERRUPT_EVENTS 20 00015 00016 /* Use PCI bus master to copy data to/from BAP (only available for 00017 * hostap_pci.o). 00018 * 00019 * Note! This is extremely experimental. PCI bus master is not supported by 00020 * Intersil and it seems to have some problems at least on TX path (see below). 00021 * The driver code for implementing bus master support is based on guessing 00022 * and experimenting suitable control bits and these might not be correct. 00023 * This code is included because using bus master makes a huge difference in 00024 * host CPU load (something like 40% host CPU usage to 5-10% when sending or 00025 * receiving at maximum throughput). 00026 * 00027 * Note2! Station firmware version 1.3.5 and primary firmware version 1.0.7 00028 * have some fixes for PCI corruption and these (or newer) versions are 00029 * recommended especially when using bus mastering. 00030 * 00031 * NOTE: PCI bus mastering code has not been updated for long time and it is 00032 * not likely to compile and it will _not_ work as is. Only enable this if you 00033 * are prepared to first fix the implementation.. 00034 */ 00035 /* #define PRISM2_BUS_MASTER */ 00036 00037 #ifdef PRISM2_BUS_MASTER 00038 00039 /* PCI bus master implementation seems to be broken in current 00040 * hardware/firmware versions. Enable this to use enable command to fix 00041 * something before starting bus master operation on TX path. This will add 00042 * some latency and an extra interrupt to each TX packet. */ 00043 #define PRISM2_ENABLE_BEFORE_TX_BUS_MASTER 00044 00045 #endif /* PRISM2_BUS_MASTER */ 00046 00047 /* Include code for downloading firmware images. */ 00048 #define PRISM2_DOWNLOAD_SUPPORT 00049 00050 /* Allow kernel configuration to enable download support. */ 00051 #if !defined(PRISM2_DOWNLOAD_SUPPORT) && defined(CONFIG_HOSTAP_FIRMWARE) 00052 #define PRISM2_DOWNLOAD_SUPPORT 00053 #endif 00054 00055 00056 #define RAW_TXPOWER_SETTING 00057 00058 #ifdef PRISM2_DOWNLOAD_SUPPORT 00059 /* Allow writing firmware images into flash, i.e., to non-volatile storage. 00060 * Before you enable this option, you should make absolutely sure that you are 00061 * using prism2_srec utility that comes with THIS version of the driver! 00062 * In addition, please note that it is possible to kill your card with 00063 * non-volatile download if you are using incorrect image. This feature has not 00064 * been fully tested, so please be careful with it. */ 00065 /* #define PRISM2_NON_VOLATILE_DOWNLOAD */ 00066 #endif /* PRISM2_DOWNLOAD_SUPPORT */ 00067 00068 /* Include wireless extensions sub-ioctl support even if wireless extensions 00069 * version is less than 15 (actually, only if it is 12 .. 14). If ver >= 15, 00070 * these will be included. Please note, that this requires iwpriv version 25 00071 * or higher (older versions will segfault due to long ioctl list). */ 00072 /* #define PRISM2_USE_WE_SUB_IOCTLS */ 00073 00074 /* Use IW_PRIV_TYPE_ADDR with private WE ioctls taking MAC address argument 00075 * (instead of old 18*char). This requires iwpriv ver >= 25. This will be 00076 * automatically included for WIRELESS_EXT >= 15. */ 00077 /* #define PRISM2_USE_WE_TYPE_ADDR */ 00078 00079 /* Save low-level I/O for debugging. This should not be enabled in normal use. 00080 */ 00081 /* #define PRISM2_IO_DEBUG */ 00082 00083 /* Following defines can be used to remove unneeded parts of the driver, e.g., 00084 * to limit the size of the kernel module. Definitions can be added here in 00085 * hostap_config.h or they can be added to make command with EXTRA_CFLAGS, 00086 * e.g., 00087 * 'make pccard EXTRA_CFLAGS="-DPRISM2_NO_DEBUG -DPRISM2_NO_PROCFS_DEBUG"' 00088 */ 00089 00090 /* Do not include debug messages into the driver */ 00091 /* #define PRISM2_NO_DEBUG */ 00092 00093 /* Do not include /proc/net/prism2/wlan#/{registers,debug} */ 00094 /* #define PRISM2_NO_PROCFS_DEBUG */ 00095 00096 /* Do not include station functionality (i.e., allow only Master (Host AP) mode 00097 */ 00098 /* #define PRISM2_NO_STATION_MODES */ 00099 00100 #endif /* HOSTAP_CONFIG_H */