carl9170 firmware: always enable HW watchdog
[carl9170fw.git] / carlfw / Kconfig
1 menu "General"
2
3 config CARL9170FW_RELEASE_VERSION
4         int
5         default 1
6
7 menu "Selectable Hardware Options"
8
9 choice
10         prompt "Receiver Max. Frame Length"
11         default CARL9170FW_RX_FRAME_LEN_8192
12
13         config CARL9170FW_RX_FRAME_LEN_4096
14                 bool "4096"
15
16         config CARL9170FW_RX_FRAME_LEN_8192
17                 bool "8192"
18
19         config CARL9170FW_RX_FRAME_LEN_16384
20                 bool "16384"
21
22         config CARL9170FW_RX_FRAME_LEN_32768
23                 bool "32768"
24
25 endchoice
26
27 config CARL9170FW_RX_FRAME_LEN
28         int
29         default 4096 if CARL9170FW_RX_FRAME_LEN_4096
30         default 8192 if CARL9170FW_RX_FRAME_LEN_8192
31         default 16384 if CARL9170FW_RX_FRAME_LEN_16384
32         default 32768 if CARL9170FW_RX_FRAME_LEN_32768
33
34 config CARL9170FW_GPIO_INTERRUPT
35         def_bool y
36         prompt "GPIO Software Interrupt"
37         ---help---
38          When this option is enabled, the firmware will poll the GPIO
39          registers and reports to the driver whenever the GPIO state
40          has changed from a previous state.
41
42          Note: This feature is necessary to monitor the WPS button,
43                if you have one on your device, then say Y.
44
45 config CARL9170FW_SECURITY_ENGINE
46         def_bool y
47         prompt "Support Hardware Crypto Engine"
48         ---help---
49          This options controls if the firmware will allow the driver
50          to program the security engine / CAM through a firmware
51          interface.
52
53          Say Y. Unless you want to do the en- and decryption for
54          CCMP(AES), TKIP/WEP(RC4) in the application anyway.
55
56 config CARL9170FW_RADIO_FUNCTIONS
57         def_bool y
58         prompt "Enable Firmware-supported Radio/RF functions"
59         ---help---
60          Some PHY/RF functions (e.g.: AGC and Noise calibration) need
61          to be done in the firmware.
62
63          Say Y, unless you really don't need the Radio/RF for
64          your project.
65
66 endmenu
67
68 menu "802.11 Firmware Features"
69
70 config CARL9170FW_HANDLE_BACK_REQ
71         def_bool y
72         prompt "Handle BlockACK Requests in Firmware"
73         ---help---
74          Enables a firmware mechanism to answer incoming BlockACK requests.
75          This feature is necessary to comply with 802.11n. So say Y,
76          if you have plans to support this operation mode.
77
78 config CARL9170FW_BACK_REQS_NUM
79         default 4
80         int
81         prompt "Number of max. active BlockACK Request"
82         depends on CARL9170FW_HANDLE_BACK_REQ
83
84 config CARL9170FW_CAB_QUEUE
85         def_bool y
86         prompt "Support software-based Content after Beacon Queue"
87         ---help---
88          This (software) queue is used to send any broad-/multi-cast buffered
89          frames after the next DTIM beacon.
90
91          This feature is required for Accesspoint mode operation.
92
93          Say Y.
94
95 endmenu
96
97 source "carlfw/usb/Kconfig"
98
99 menu "Experimental, Unstable & Testing Extensions"
100
101 config CARL9170FW_PRINTF
102         def_bool y
103         prompt "Advanced printf"
104         depends on CARL9170FW_DEBUG_UART || CARL9170FW_DEBUG_USB
105         ---help---
106          Advanced printf (very useful for debugging purposes)
107          The formats supported by this implementation are:
108                 'd' 'u' 'c' 's' 'x' 'X' 'p'.
109
110          Note: If this option is disabled, the firmware will be only
111                capable of reported _preformated_ string.
112
113 config CARL9170FW_EXPERIMENTAL
114         def_bool y
115         prompt "Experimental Features"
116
117 config CARL9170FW_PSM
118         def_bool y
119         prompt "Firmware Supported Power-saving Management"
120         depends on CARL9170FW_EXPERIMENTAL && CARL9170FW_RADIO_FUNCTIONS
121         ---help---
122          This options enables a interface for the application to
123          switch off the RF/PHY (in order to save power). And the
124          Firmware will automatically turn it on again, when the
125          PRETBTT event fires.
126
127 config CARL9170FW_WOL_OPTION
128         def_bool n
129         prompt "Wakeup on WLAN"
130         depends on CARL9170FW_EXPERIMENTAL
131         ---help---
132          With this option enabled, the firmware can wake-up
133          suspended hosts... As long as they fully support
134          USB remote wakeup.
135
136 config CARL9170FW_WOL
137         def_bool n
138         depends on CARL9170FW_WOL_OPTION
139
140 config CARL9170FW_WOL_MAGIC_PACKET
141         def_bool n
142         prompt "Magic Packet(tm)"
143         depends on CARL9170FW_WOL_OPTION
144         select CARL9170FW_WOL
145         ---help---
146          Sniff all incoming data frames for the magic packet pattern.
147
148 config CARL9170FW_WOL_PROBE_REQUEST
149         def_bool n
150         prompt "Probe Request"
151         depends on CARL9170FW_WOL_OPTION
152         select CARL9170FW_WOL
153         ---help---
154          Scan probe requests for a given SSID.
155
156 config CARL9170FW_WOL_PROBE_REQUEST_SSID
157         string
158         prompt "Wakeup on WLAN SSID"
159         default "CARL9170_WAKEUP"
160         depends on CARL9170FW_WOL_PROBE_REQUEST
161
162 config CARL9170FW_VIFS_NUM
163         default 1
164         int
165         prompt "Number of additional pseudo virtual interfaces"
166         depends on CARL9170FW_EXPERIMENTAL
167
168 config CARL9170FW_FW_MAC_RESET
169         def_bool y
170         prompt "Firmware MAC Chip recovery"
171         depends on CARL9170FW_EXPERIMENTAL
172
173 config CARL9170FW_BROKEN_FEATURES
174         def_bool n
175         prompt "Broken Featurs"
176
177 config CARL9170FW_DEBUG
178         def_bool n
179         depends on CARL9170FW_BROKEN_FEATURES && CARL9170FW_PRINTF
180         prompt "Enable verbose debugging messages"
181
182 config CARL9170FW_DEBUG_LED_HEARTBEAT
183         def_bool n
184         prompt "LED Heartbeat"
185         depends on CARL9170FW_BROKEN_FEATURES
186         ---help---
187          This option conflicts with the application's LED code.
188          Also, it assumes that you have two LEDs, which is not
189          necessarily true.
190
191 config CARL9170FW_DEBUG_UART
192         def_bool n
193         prompt "Pass debug messages through Highspeed UART"
194         depends on CARL9170FW_BROKEN_FEATURES
195         ---help---
196          This option allows the firmware to send BUG/ERR/INFO/DBG and
197          hexdumps through the UART _as well_. However, first: you must
198          connect a working logger.
199
200 config CARL9170FW_WATCHDOG_BUTTON
201         def_bool n
202         depends on CARL9170FW_BROKEN && CARL9170FW_GPIO_INTERRUPT
203         prompt "Trigger Watchdog by pressing the WPS button"
204
205 choice CARL9170FW_UART_CLOCK
206         prompt "UART Clock"
207         depends on CARL9170FW_DEBUG_UART
208         default CARL9170FW_UART_CLOCK_40M
209
210 config CARL9170FW_UART_CLOCK_25M
211         bool "25"
212
213 config CARL9170FW_UART_CLOCK_40M
214         bool "40"
215
216 endchoice
217
218
219 choice
220         prompt "TX / RX Path"
221
222         default CARL9170FW_NORMAL_TX_RX
223
224         config CARL9170FW_NORMAL_TX_RX
225                 bool
226                 prompt "Normal WLAN TX/RX routines"
227
228         config CARL9170FW_LOOPBACK
229                 bool
230                 depends on CARL9170FW_BROKEN_FEATURES
231                 prompt "TX->(tx feedback)->RX loopback"
232                 ---help---
233                  Useful carlu testcase.
234
235         config CARL9170FW_DISCARD
236                 bool
237                 depends on CARL9170FW_BROKEN_FEATURES
238                 prompt "TX->(tx feedback)"
239                 ---help---
240                  Useful carlu testcase
241
242 endchoice
243
244 config CARL9170FW_UNUSABLE
245         def_bool y
246         depends on CARL9170FW_BROKEN || CARL9170FW_LOOPBACK
247
248 config CARL9170FW_USB_MODESWITCH
249         def_bool n
250         prompt "USB 1.1 / 2.0 switching support"
251         depends on CARL9170FW_BROKEN_FEATURES
252         ---help---
253          Mostly implemented, but untested and some serious
254          doubts remain.
255
256 config CARL9170FW_DMA_QUEUE_BUMP
257         def_bool n
258         prompt "Bump a stuck TX queue before doing a MAC reset"
259         depends on CARL9170FW_BROKEN_FEATURES
260
261 menu "Build Options"
262 config CARL9170FW_AGGRESSIVE_CFLAGS
263         def_bool y
264         prompt "Enable aggressive size optimization"
265         ---help---
266          This option adds several more optimization compiler flags,
267          which can greatly reduce the firmware size... at the expense
268          of machine-code readability.
269
270           Say Y. Else the firmware might not fit onto the device!
271
272 endmenu
273
274 endmenu
275
276 endmenu