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