blob: 76b5c6233da4daa895e382fc42564303a466c327 [file] [log] [blame]
Juuso Oikarinen2b60100b2009-10-13 12:47:39 +03001/*
2 * This file is part of wl1271
3 *
4 * Copyright (C) 2009 Nokia Corporation
5 *
6 * Contact: Luciano Coelho <luciano.coelho@nokia.com>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * version 2 as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA
21 *
22 */
23
Shahar Levi00d20102010-11-08 11:20:10 +000024#ifndef __CONF_H__
25#define __CONF_H__
Juuso Oikarinen2b60100b2009-10-13 12:47:39 +030026
27enum {
28 CONF_HW_BIT_RATE_1MBPS = BIT(0),
29 CONF_HW_BIT_RATE_2MBPS = BIT(1),
30 CONF_HW_BIT_RATE_5_5MBPS = BIT(2),
31 CONF_HW_BIT_RATE_6MBPS = BIT(3),
32 CONF_HW_BIT_RATE_9MBPS = BIT(4),
33 CONF_HW_BIT_RATE_11MBPS = BIT(5),
34 CONF_HW_BIT_RATE_12MBPS = BIT(6),
35 CONF_HW_BIT_RATE_18MBPS = BIT(7),
36 CONF_HW_BIT_RATE_22MBPS = BIT(8),
37 CONF_HW_BIT_RATE_24MBPS = BIT(9),
38 CONF_HW_BIT_RATE_36MBPS = BIT(10),
39 CONF_HW_BIT_RATE_48MBPS = BIT(11),
40 CONF_HW_BIT_RATE_54MBPS = BIT(12),
41 CONF_HW_BIT_RATE_MCS_0 = BIT(13),
42 CONF_HW_BIT_RATE_MCS_1 = BIT(14),
43 CONF_HW_BIT_RATE_MCS_2 = BIT(15),
44 CONF_HW_BIT_RATE_MCS_3 = BIT(16),
45 CONF_HW_BIT_RATE_MCS_4 = BIT(17),
46 CONF_HW_BIT_RATE_MCS_5 = BIT(18),
47 CONF_HW_BIT_RATE_MCS_6 = BIT(19),
48 CONF_HW_BIT_RATE_MCS_7 = BIT(20)
49};
50
51enum {
52 CONF_HW_RATE_INDEX_1MBPS = 0,
53 CONF_HW_RATE_INDEX_2MBPS = 1,
54 CONF_HW_RATE_INDEX_5_5MBPS = 2,
55 CONF_HW_RATE_INDEX_6MBPS = 3,
56 CONF_HW_RATE_INDEX_9MBPS = 4,
57 CONF_HW_RATE_INDEX_11MBPS = 5,
58 CONF_HW_RATE_INDEX_12MBPS = 6,
59 CONF_HW_RATE_INDEX_18MBPS = 7,
60 CONF_HW_RATE_INDEX_22MBPS = 8,
61 CONF_HW_RATE_INDEX_24MBPS = 9,
62 CONF_HW_RATE_INDEX_36MBPS = 10,
63 CONF_HW_RATE_INDEX_48MBPS = 11,
64 CONF_HW_RATE_INDEX_54MBPS = 12,
65 CONF_HW_RATE_INDEX_MAX = CONF_HW_RATE_INDEX_54MBPS,
66};
67
Juuso Oikarinen1b00f542010-03-18 12:26:30 +020068enum {
Juuso Oikarinenf876bb92010-03-26 12:53:11 +020069 CONF_HW_RXTX_RATE_MCS7 = 0,
70 CONF_HW_RXTX_RATE_MCS6,
71 CONF_HW_RXTX_RATE_MCS5,
72 CONF_HW_RXTX_RATE_MCS4,
73 CONF_HW_RXTX_RATE_MCS3,
74 CONF_HW_RXTX_RATE_MCS2,
75 CONF_HW_RXTX_RATE_MCS1,
76 CONF_HW_RXTX_RATE_MCS0,
77 CONF_HW_RXTX_RATE_54,
78 CONF_HW_RXTX_RATE_48,
79 CONF_HW_RXTX_RATE_36,
80 CONF_HW_RXTX_RATE_24,
81 CONF_HW_RXTX_RATE_22,
82 CONF_HW_RXTX_RATE_18,
83 CONF_HW_RXTX_RATE_12,
84 CONF_HW_RXTX_RATE_11,
85 CONF_HW_RXTX_RATE_9,
86 CONF_HW_RXTX_RATE_6,
87 CONF_HW_RXTX_RATE_5_5,
88 CONF_HW_RXTX_RATE_2,
89 CONF_HW_RXTX_RATE_1,
90 CONF_HW_RXTX_RATE_MAX,
91 CONF_HW_RXTX_RATE_UNSUPPORTED = 0xff
92};
93
94enum {
Juuso Oikarinen1b00f542010-03-18 12:26:30 +020095 CONF_SG_DISABLE = 0,
96 CONF_SG_PROTECTIVE,
97 CONF_SG_OPPORTUNISTIC
98};
99
100enum {
101 /*
Eliad Peller3be41122011-08-14 13:17:19 +0300102 * Configure the min and max time BT gains the antenna
103 * in WLAN / BT master basic rate
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200104 *
Eliad Peller3be41122011-08-14 13:17:19 +0300105 * Range: 0 - 255 (ms)
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200106 */
Eliad Peller3be41122011-08-14 13:17:19 +0300107 CONF_SG_ACL_BT_MASTER_MIN_BR = 0,
108 CONF_SG_ACL_BT_MASTER_MAX_BR,
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200109
110 /*
Eliad Peller3be41122011-08-14 13:17:19 +0300111 * Configure the min and max time BT gains the antenna
112 * in WLAN / BT slave basic rate
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200113 *
Eliad Peller3be41122011-08-14 13:17:19 +0300114 * Range: 0 - 255 (ms)
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200115 */
Eliad Peller3be41122011-08-14 13:17:19 +0300116 CONF_SG_ACL_BT_SLAVE_MIN_BR,
117 CONF_SG_ACL_BT_SLAVE_MAX_BR,
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200118
119 /*
Eliad Peller3be41122011-08-14 13:17:19 +0300120 * Configure the min and max time BT gains the antenna
121 * in WLAN / BT master EDR
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200122 *
Eliad Peller3be41122011-08-14 13:17:19 +0300123 * Range: 0 - 255 (ms)
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200124 */
Eliad Peller3be41122011-08-14 13:17:19 +0300125 CONF_SG_ACL_BT_MASTER_MIN_EDR,
126 CONF_SG_ACL_BT_MASTER_MAX_EDR,
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200127
128 /*
Eliad Peller3be41122011-08-14 13:17:19 +0300129 * Configure the min and max time BT gains the antenna
130 * in WLAN / BT slave EDR
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200131 *
Eliad Peller3be41122011-08-14 13:17:19 +0300132 * Range: 0 - 255 (ms)
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200133 */
Eliad Peller3be41122011-08-14 13:17:19 +0300134 CONF_SG_ACL_BT_SLAVE_MIN_EDR,
135 CONF_SG_ACL_BT_SLAVE_MAX_EDR,
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200136
137 /*
Eliad Peller3be41122011-08-14 13:17:19 +0300138 * The maximum time WLAN can gain the antenna
139 * in WLAN PSM / BT master/slave BR
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200140 *
Eliad Peller3be41122011-08-14 13:17:19 +0300141 * Range: 0 - 255 (ms)
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200142 */
Eliad Peller3be41122011-08-14 13:17:19 +0300143 CONF_SG_ACL_WLAN_PS_MASTER_BR,
144 CONF_SG_ACL_WLAN_PS_SLAVE_BR,
145
146 /*
147 * The maximum time WLAN can gain the antenna
148 * in WLAN PSM / BT master/slave EDR
149 *
150 * Range: 0 - 255 (ms)
151 */
152 CONF_SG_ACL_WLAN_PS_MASTER_EDR,
153 CONF_SG_ACL_WLAN_PS_SLAVE_EDR,
154
155 /* TODO: explain these values */
156 CONF_SG_ACL_WLAN_ACTIVE_MASTER_MIN_BR,
157 CONF_SG_ACL_WLAN_ACTIVE_MASTER_MAX_BR,
158 CONF_SG_ACL_WLAN_ACTIVE_SLAVE_MIN_BR,
159 CONF_SG_ACL_WLAN_ACTIVE_SLAVE_MAX_BR,
160 CONF_SG_ACL_WLAN_ACTIVE_MASTER_MIN_EDR,
161 CONF_SG_ACL_WLAN_ACTIVE_MASTER_MAX_EDR,
162 CONF_SG_ACL_WLAN_ACTIVE_SLAVE_MIN_EDR,
163 CONF_SG_ACL_WLAN_ACTIVE_SLAVE_MAX_EDR,
164
165 CONF_SG_ACL_ACTIVE_SCAN_WLAN_BR,
166 CONF_SG_ACL_ACTIVE_SCAN_WLAN_EDR,
167 CONF_SG_ACL_PASSIVE_SCAN_BT_BR,
168 CONF_SG_ACL_PASSIVE_SCAN_WLAN_BR,
169 CONF_SG_ACL_PASSIVE_SCAN_BT_EDR,
170 CONF_SG_ACL_PASSIVE_SCAN_WLAN_EDR,
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200171
172 /*
173 * Compensation percentage of probe requests when scan initiated
174 * during BT voice/ACL link.
175 *
176 * Range: 0 - 255 (%)
177 */
178 CONF_SG_AUTO_SCAN_PROBE_REQ,
179
180 /*
181 * Compensation percentage of probe requests when active scan initiated
182 * during BT voice
183 *
184 * Range: 0 - 255 (%)
185 */
186 CONF_SG_ACTIVE_SCAN_DURATION_FACTOR_HV3,
187
188 /*
Eliad Peller3be41122011-08-14 13:17:19 +0300189 * Compensation percentage of WLAN active scan window if initiated
190 * during BT A2DP
191 *
192 * Range: 0 - 1000 (%)
193 */
194 CONF_SG_ACTIVE_SCAN_DURATION_FACTOR_A2DP,
195
196 /*
197 * Compensation percentage of WLAN passive scan window if initiated
198 * during BT A2DP BR
199 *
200 * Range: 0 - 1000 (%)
201 */
202 CONF_SG_PASSIVE_SCAN_DURATION_FACTOR_A2DP_BR,
203
204 /*
205 * Compensation percentage of WLAN passive scan window if initiated
206 * during BT A2DP EDR
207 *
208 * Range: 0 - 1000 (%)
209 */
210 CONF_SG_PASSIVE_SCAN_DURATION_FACTOR_A2DP_EDR,
211
212 /*
213 * Compensation percentage of WLAN passive scan window if initiated
214 * during BT voice
215 *
216 * Range: 0 - 1000 (%)
217 */
218 CONF_SG_PASSIVE_SCAN_DURATION_FACTOR_HV3,
219
220 /* TODO: explain these values */
221 CONF_SG_CONSECUTIVE_HV3_IN_PASSIVE_SCAN,
222 CONF_SG_BCN_HV3_COLLISION_THRESH_IN_PASSIVE_SCAN,
223 CONF_SG_TX_RX_PROTECTION_BWIDTH_IN_PASSIVE_SCAN,
224
225 /*
226 * Defines whether the SG will force WLAN host to enter/exit PSM
227 *
228 * Range: 1 - SG can force, 0 - host handles PSM
229 */
230 CONF_SG_STA_FORCE_PS_IN_BT_SCO,
231
232 /*
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200233 * Defines antenna configuration (single/dual antenna)
234 *
235 * Range: 0 - single antenna, 1 - dual antenna
236 */
237 CONF_SG_ANTENNA_CONFIGURATION,
238
239 /*
Eliad Peller3be41122011-08-14 13:17:19 +0300240 * The threshold (percent) of max consecutive beacon misses before
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200241 * increasing priority of beacon reception.
242 *
243 * Range: 0 - 100 (%)
244 */
245 CONF_SG_BEACON_MISS_PERCENT,
246
247 /*
Eliad Peller3be41122011-08-14 13:17:19 +0300248 * Protection time of the DHCP procedure.
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200249 *
Eliad Peller3be41122011-08-14 13:17:19 +0300250 * Range: 0 - 100000 (ms)
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200251 */
Eliad Peller3be41122011-08-14 13:17:19 +0300252 CONF_SG_DHCP_TIME,
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200253
254 /*
255 * RX guard time before the beginning of a new BT voice frame during
256 * which no new WLAN trigger frame is transmitted.
257 *
258 * Range: 0 - 100000 (us)
259 */
260 CONF_SG_RXT,
261
262 /*
263 * TX guard time before the beginning of a new BT voice frame during
264 * which no new WLAN frame is transmitted.
265 *
266 * Range: 0 - 100000 (us)
267 */
268
269 CONF_SG_TXT,
270
271 /*
272 * Enable adaptive RXT/TXT algorithm. If disabled, the host values
273 * will be utilized.
274 *
275 * Range: 0 - disable, 1 - enable
276 */
277 CONF_SG_ADAPTIVE_RXT_TXT,
278
Eliad Peller3be41122011-08-14 13:17:19 +0300279 /* TODO: explain this value */
280 CONF_SG_GENERAL_USAGE_BIT_MAP,
281
282 /*
283 * Number of consecutive BT voice frames not interrupted by WLAN
284 *
285 * Range: 0 - 100
286 */
287 CONF_SG_HV3_MAX_SERVED,
288
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200289 /*
290 * The used WLAN legacy service period during active BT ACL link
291 *
292 * Range: 0 - 255 (ms)
293 */
294 CONF_SG_PS_POLL_TIMEOUT,
295
296 /*
297 * The used WLAN UPSD service period during active BT ACL link
298 *
299 * Range: 0 - 255 (ms)
300 */
301 CONF_SG_UPSD_TIMEOUT,
302
Eliad Peller3be41122011-08-14 13:17:19 +0300303 CONF_SG_CONSECUTIVE_CTS_THRESHOLD,
304 CONF_SG_STA_RX_WINDOW_AFTER_DTIM,
305 CONF_SG_STA_CONNECTION_PROTECTION_TIME,
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200306
Eliad Peller3be41122011-08-14 13:17:19 +0300307 /* AP params */
308 CONF_AP_BEACON_MISS_TX,
309 CONF_AP_RX_WINDOW_AFTER_BEACON,
310 CONF_AP_BEACON_WINDOW_INTERVAL,
311 CONF_AP_CONNECTION_PROTECTION_TIME,
312 CONF_AP_BT_ACL_VAL_BT_SERVE_TIME,
313 CONF_AP_BT_ACL_VAL_WL_SERVE_TIME,
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200314
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200315 CONF_SG_TEMP_PARAM_1,
316 CONF_SG_TEMP_PARAM_2,
317 CONF_SG_TEMP_PARAM_3,
318 CONF_SG_TEMP_PARAM_4,
319 CONF_SG_TEMP_PARAM_5,
Arik Nemtsov801f8702011-04-18 14:15:20 +0300320 CONF_SG_TEMP_PARAM_6,
321 CONF_SG_TEMP_PARAM_7,
322 CONF_SG_TEMP_PARAM_8,
323 CONF_SG_TEMP_PARAM_9,
324 CONF_SG_TEMP_PARAM_10,
325
Eliad Peller3be41122011-08-14 13:17:19 +0300326 CONF_SG_PARAMS_MAX,
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200327 CONF_SG_PARAMS_ALL = 0xff
328};
329
Juuso Oikarinen2b60100b2009-10-13 12:47:39 +0300330struct conf_sg_settings {
Eliad Peller3be41122011-08-14 13:17:19 +0300331 u32 params[CONF_SG_PARAMS_MAX];
Juuso Oikarinen1b00f542010-03-18 12:26:30 +0200332 u8 state;
Juuso Oikarinen2b60100b2009-10-13 12:47:39 +0300333};
334
Juuso Oikarinen8793f9b2009-10-13 12:47:40 +0300335enum conf_rx_queue_type {
336 CONF_RX_QUEUE_TYPE_LOW_PRIORITY, /* All except the high priority */
337 CONF_RX_QUEUE_TYPE_HIGH_PRIORITY, /* Management and voice packets */
338};
339
340struct conf_rx_settings {
341 /*
342 * The maximum amount of time, in TU, before the
343 * firmware discards the MSDU.
344 *
345 * Range: 0 - 0xFFFFFFFF
346 */
347 u32 rx_msdu_life_time;
348
349 /*
350 * Packet detection threshold in the PHY.
351 *
352 * FIXME: details unknown.
353 */
354 u32 packet_detection_threshold;
355
356 /*
357 * The longest time the STA will wait to receive traffic from the AP
358 * after a PS-poll has been transmitted.
359 *
360 * Range: 0 - 200000
361 */
362 u16 ps_poll_timeout;
363 /*
364 * The longest time the STA will wait to receive traffic from the AP
365 * after a frame has been sent from an UPSD enabled queue.
366 *
367 * Range: 0 - 200000
368 */
369 u16 upsd_timeout;
370
371 /*
372 * The number of octets in an MPDU, below which an RTS/CTS
373 * handshake is not performed.
374 *
375 * Range: 0 - 4096
376 */
377 u16 rts_threshold;
378
379 /*
380 * The RX Clear Channel Assessment threshold in the PHY
381 * (the energy threshold).
382 *
383 * Range: ENABLE_ENERGY_D == 0x140A
384 * DISABLE_ENERGY_D == 0xFFEF
385 */
386 u16 rx_cca_threshold;
387
388 /*
389 * Occupied Rx mem-blocks number which requires interrupting the host
390 * (0 = no buffering, 0xffff = disabled).
391 *
392 * Range: u16
393 */
394 u16 irq_blk_threshold;
395
396 /*
397 * Rx packets number which requires interrupting the host
398 * (0 = no buffering).
399 *
400 * Range: u16
401 */
402 u16 irq_pkt_threshold;
403
404 /*
405 * Max time in msec the FW may delay RX-Complete interrupt.
406 *
407 * Range: 1 - 100
408 */
409 u16 irq_timeout;
410
411 /*
412 * The RX queue type.
413 *
414 * Range: RX_QUEUE_TYPE_RX_LOW_PRIORITY, RX_QUEUE_TYPE_RX_HIGH_PRIORITY,
415 */
416 u8 queue_type;
417};
418
Juuso Oikarinen45b531a2009-10-13 12:47:41 +0300419#define CONF_TX_MAX_RATE_CLASSES 8
420
421#define CONF_TX_RATE_MASK_UNSPECIFIED 0
Juuso Oikarinena6fe2312009-12-11 15:40:58 +0200422#define CONF_TX_RATE_MASK_BASIC (CONF_HW_BIT_RATE_1MBPS | \
423 CONF_HW_BIT_RATE_2MBPS)
Juuso Oikarinen45b531a2009-10-13 12:47:41 +0300424#define CONF_TX_RATE_RETRY_LIMIT 10
425
Arik Nemtsov1e05a812010-10-16 17:44:51 +0200426/*
Lucas De Marchi25985ed2011-03-30 22:57:33 -0300427 * Rates supported for data packets when operating as AP. Note the absence
Arik Nemtsov1e05a812010-10-16 17:44:51 +0200428 * of the 22Mbps rate. There is a FW limitation on 12 rates so we must drop
429 * one. The rate dropped is not mandatory under any operating mode.
430 */
431#define CONF_TX_AP_ENABLED_RATES (CONF_HW_BIT_RATE_1MBPS | \
432 CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS | \
433 CONF_HW_BIT_RATE_6MBPS | CONF_HW_BIT_RATE_9MBPS | \
434 CONF_HW_BIT_RATE_11MBPS | CONF_HW_BIT_RATE_12MBPS | \
435 CONF_HW_BIT_RATE_18MBPS | CONF_HW_BIT_RATE_24MBPS | \
436 CONF_HW_BIT_RATE_36MBPS | CONF_HW_BIT_RATE_48MBPS | \
437 CONF_HW_BIT_RATE_54MBPS)
438
Arik Nemtsov70f47422011-04-18 14:15:25 +0300439#define CONF_TX_OFDM_RATES (CONF_HW_BIT_RATE_6MBPS | \
440 CONF_HW_BIT_RATE_12MBPS | CONF_HW_BIT_RATE_24MBPS | \
441 CONF_HW_BIT_RATE_36MBPS | CONF_HW_BIT_RATE_48MBPS | \
442 CONF_HW_BIT_RATE_54MBPS)
443
444
Arik Nemtsov1e05a812010-10-16 17:44:51 +0200445/*
446 * Default rates for management traffic when operating in AP mode. This
447 * should be configured according to the basic rate set of the AP
448 */
449#define CONF_TX_AP_DEFAULT_MGMT_RATES (CONF_HW_BIT_RATE_1MBPS | \
450 CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS)
451
Eliad Pellercb5ae052011-04-07 15:52:05 +0300452/*
453 * Default rates for working as IBSS. use 11b rates
454 */
455#define CONF_TX_IBSS_DEFAULT_RATES (CONF_HW_BIT_RATE_1MBPS | \
456 CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS | \
457 CONF_HW_BIT_RATE_11MBPS);
458
Juuso Oikarinen45b531a2009-10-13 12:47:41 +0300459struct conf_tx_rate_class {
460
461 /*
462 * The rates enabled for this rate class.
463 *
464 * Range: CONF_HW_BIT_RATE_* bit mask
465 */
466 u32 enabled_rates;
467
468 /*
469 * The dot11 short retry limit used for TX retries.
470 *
471 * Range: u8
472 */
473 u8 short_retry_limit;
474
475 /*
476 * The dot11 long retry limit used for TX retries.
477 *
478 * Range: u8
479 */
480 u8 long_retry_limit;
481
482 /*
483 * Flags controlling the attributes of TX transmission.
484 *
485 * Range: bit 0: Truncate - when set, FW attempts to send a frame stop
486 * when the total valid per-rate attempts have
487 * been exhausted; otherwise transmissions
488 * will continue at the lowest available rate
489 * until the appropriate one of the
490 * short_retry_limit, long_retry_limit,
491 * dot11_max_transmit_msdu_life_time, or
492 * max_tx_life_time, is exhausted.
493 * 1: Preamble Override - indicates if the preamble type
494 * should be used in TX.
495 * 2: Preamble Type - the type of the preamble to be used by
496 * the policy (0 - long preamble, 1 - short preamble.
497 */
498 u8 aflags;
499};
500
501#define CONF_TX_MAX_AC_COUNT 4
502
503/* Slot number setting to start transmission at PIFS interval */
504#define CONF_TX_AIFS_PIFS 1
505/* Slot number setting to start transmission at DIFS interval normal
506 * DCF access */
507#define CONF_TX_AIFS_DIFS 2
508
509
510enum conf_tx_ac {
511 CONF_TX_AC_BE = 0, /* best effort / legacy */
512 CONF_TX_AC_BK = 1, /* background */
513 CONF_TX_AC_VI = 2, /* video */
514 CONF_TX_AC_VO = 3, /* voice */
Lucas De Marchi25985ed2011-03-30 22:57:33 -0300515 CONF_TX_AC_CTS2SELF = 4, /* fictitious AC, follows AC_VO */
Juuso Oikarinen45b531a2009-10-13 12:47:41 +0300516 CONF_TX_AC_ANY_TID = 0x1f
517};
518
519struct conf_tx_ac_category {
520 /*
521 * The AC class identifier.
522 *
523 * Range: enum conf_tx_ac
524 */
525 u8 ac;
526
527 /*
528 * The contention window minimum size (in slots) for the access
529 * class.
530 *
531 * Range: u8
532 */
533 u8 cw_min;
534
535 /*
536 * The contention window maximum size (in slots) for the access
537 * class.
538 *
539 * Range: u8
540 */
541 u16 cw_max;
542
543 /*
544 * The AIF value (in slots) for the access class.
545 *
546 * Range: u8
547 */
548 u8 aifsn;
549
550 /*
551 * The TX Op Limit (in microseconds) for the access class.
552 *
553 * Range: u16
554 */
555 u16 tx_op_limit;
556};
557
Juuso Oikarinen9987a9d2010-09-01 11:31:12 +0200558#define CONF_TX_MAX_TID_COUNT 8
Juuso Oikarinen45b531a2009-10-13 12:47:41 +0300559
Arik Nemtsov0f9c8252011-08-17 10:45:49 +0300560/* Allow TX BA on all TIDs but 6,7. These are currently reserved in the FW */
561#define CONF_TX_BA_ENABLED_TID_BITMAP 0x3F
562
Juuso Oikarinen45b531a2009-10-13 12:47:41 +0300563enum {
564 CONF_CHANNEL_TYPE_DCF = 0, /* DC/LEGACY*/
565 CONF_CHANNEL_TYPE_EDCF = 1, /* EDCA*/
566 CONF_CHANNEL_TYPE_HCCA = 2, /* HCCA*/
567};
568
569enum {
570 CONF_PS_SCHEME_LEGACY = 0,
571 CONF_PS_SCHEME_UPSD_TRIGGER = 1,
572 CONF_PS_SCHEME_LEGACY_PSPOLL = 2,
573 CONF_PS_SCHEME_SAPSD = 3,
574};
575
576enum {
577 CONF_ACK_POLICY_LEGACY = 0,
578 CONF_ACK_POLICY_NO_ACK = 1,
579 CONF_ACK_POLICY_BLOCK = 2,
580};
581
582
583struct conf_tx_tid {
584 u8 queue_id;
585 u8 channel_type;
586 u8 tsid;
587 u8 ps_scheme;
588 u8 ack_policy;
589 u32 apsd_conf[2];
590};
591
592struct conf_tx_settings {
593 /*
594 * The TX ED value for TELEC Enable/Disable.
595 *
596 * Range: 0, 1
597 */
598 u8 tx_energy_detection;
599
600 /*
601 * Configuration for rate classes for TX (currently only one
Arik Nemtsov1e05a812010-10-16 17:44:51 +0200602 * rate class supported). Used in non-AP mode.
Juuso Oikarinen45b531a2009-10-13 12:47:41 +0300603 */
Arik Nemtsov1e05a812010-10-16 17:44:51 +0200604 struct conf_tx_rate_class sta_rc_conf;
Juuso Oikarinen45b531a2009-10-13 12:47:41 +0300605
606 /*
607 * Configuration for access categories for TX rate control.
608 */
609 u8 ac_conf_count;
610 struct conf_tx_ac_category ac_conf[CONF_TX_MAX_AC_COUNT];
611
612 /*
Luciano Coelho25eaea302011-05-02 12:37:33 +0300613 * AP-mode - allow this number of TX retries to a station before an
Arik Nemtsov79b223f2010-10-16 17:52:59 +0200614 * event is triggered from FW.
Arik Nemtsov3618f302011-06-26 10:36:03 +0300615 * In AP-mode the hlids of unreachable stations are given in the
616 * "sta_tx_retry_exceeded" member in the event mailbox.
Arik Nemtsov79b223f2010-10-16 17:52:59 +0200617 */
Arik Nemtsov3618f302011-06-26 10:36:03 +0300618 u8 max_tx_retries;
619
620 /*
621 * AP-mode - after this number of seconds a connected station is
622 * considered inactive.
623 */
624 u16 ap_aging_period;
Arik Nemtsov79b223f2010-10-16 17:52:59 +0200625
626 /*
Juuso Oikarinen45b531a2009-10-13 12:47:41 +0300627 * Configuration for TID parameters.
628 */
629 u8 tid_conf_count;
630 struct conf_tx_tid tid_conf[CONF_TX_MAX_TID_COUNT];
631
632 /*
633 * The TX fragmentation threshold.
634 *
635 * Range: u16
636 */
637 u16 frag_threshold;
638
639 /*
640 * Max time in msec the FW may delay frame TX-Complete interrupt.
641 *
642 * Range: u16
643 */
644 u16 tx_compl_timeout;
645
646 /*
647 * Completed TX packet count which requires to issue the TX-Complete
648 * interrupt.
649 *
650 * Range: u16
651 */
652 u16 tx_compl_threshold;
653
Juuso Oikarinenebba60c2010-04-01 11:38:20 +0300654 /*
655 * The rate used for control messages and scanning on the 2.4GHz band
656 *
657 * Range: CONF_HW_BIT_RATE_* bit mask
658 */
659 u32 basic_rate;
660
661 /*
662 * The rate used for control messages and scanning on the 5GHz band
663 *
664 * Range: CONF_HW_BIT_RATE_* bit mask
665 */
666 u32 basic_rate_5;
Arik Nemtsov1e05a812010-10-16 17:44:51 +0200667
668 /*
669 * TX retry limits for templates
670 */
671 u8 tmpl_short_retry_limit;
672 u8 tmpl_long_retry_limit;
Juuso Oikarinen45b531a2009-10-13 12:47:41 +0300673};
674
Juuso Oikarinen51f2be22009-10-13 12:47:42 +0300675enum {
676 CONF_WAKE_UP_EVENT_BEACON = 0x01, /* Wake on every Beacon*/
677 CONF_WAKE_UP_EVENT_DTIM = 0x02, /* Wake on every DTIM*/
678 CONF_WAKE_UP_EVENT_N_DTIM = 0x04, /* Wake every Nth DTIM */
679 CONF_WAKE_UP_EVENT_N_BEACONS = 0x08, /* Wake every Nth beacon */
680 CONF_WAKE_UP_EVENT_BITS_MASK = 0x0F
681};
682
683#define CONF_MAX_BCN_FILT_IE_COUNT 32
684
685#define CONF_BCN_RULE_PASS_ON_CHANGE BIT(0)
686#define CONF_BCN_RULE_PASS_ON_APPEARANCE BIT(1)
687
688#define CONF_BCN_IE_OUI_LEN 3
689#define CONF_BCN_IE_VER_LEN 2
690
691struct conf_bcn_filt_rule {
692 /*
693 * IE number to which to associate a rule.
694 *
695 * Range: u8
696 */
697 u8 ie;
698
699 /*
700 * Rule to associate with the specific ie.
701 *
702 * Range: CONF_BCN_RULE_PASS_ON_*
703 */
704 u8 rule;
705
706 /*
707 * OUI for the vendor specifie IE (221)
708 */
709 u8 oui[CONF_BCN_IE_OUI_LEN];
710
711 /*
712 * Type for the vendor specifie IE (221)
713 */
714 u8 type;
715
716 /*
717 * Version for the vendor specifie IE (221)
718 */
719 u8 version[CONF_BCN_IE_VER_LEN];
720};
721
722#define CONF_MAX_RSSI_SNR_TRIGGERS 8
723
724enum {
725 CONF_TRIG_METRIC_RSSI_BEACON = 0,
726 CONF_TRIG_METRIC_RSSI_DATA,
727 CONF_TRIG_METRIC_SNR_BEACON,
728 CONF_TRIG_METRIC_SNR_DATA
729};
730
731enum {
732 CONF_TRIG_EVENT_TYPE_LEVEL = 0,
733 CONF_TRIG_EVENT_TYPE_EDGE
734};
735
736enum {
737 CONF_TRIG_EVENT_DIR_LOW = 0,
738 CONF_TRIG_EVENT_DIR_HIGH,
739 CONF_TRIG_EVENT_DIR_BIDIR
740};
741
Juuso Oikarinen51f2be22009-10-13 12:47:42 +0300742struct conf_sig_weights {
743
744 /*
745 * RSSI from beacons average weight.
746 *
747 * Range: u8
748 */
749 u8 rssi_bcn_avg_weight;
750
751 /*
752 * RSSI from data average weight.
753 *
754 * Range: u8
755 */
756 u8 rssi_pkt_avg_weight;
757
758 /*
759 * SNR from beacons average weight.
760 *
761 * Range: u8
762 */
763 u8 snr_bcn_avg_weight;
764
765 /*
766 * SNR from data average weight.
767 *
768 * Range: u8
769 */
770 u8 snr_pkt_avg_weight;
771};
772
773enum conf_bcn_filt_mode {
774 CONF_BCN_FILT_MODE_DISABLED = 0,
775 CONF_BCN_FILT_MODE_ENABLED = 1
776};
777
Juuso Oikarinen11f70f92009-10-13 12:47:46 +0300778enum conf_bet_mode {
779 CONF_BET_MODE_DISABLE = 0,
780 CONF_BET_MODE_ENABLE = 1,
781};
782
Juuso Oikarinen51f2be22009-10-13 12:47:42 +0300783struct conf_conn_settings {
784 /*
785 * Firmware wakeup conditions configuration. The host may set only
786 * one bit.
787 *
788 * Range: CONF_WAKE_UP_EVENT_*
789 */
790 u8 wake_up_event;
791
792 /*
793 * Listen interval for beacons or Dtims.
794 *
795 * Range: 0 for beacon and Dtim wakeup
796 * 1-10 for x Dtims
797 * 1-255 for x beacons
798 */
799 u8 listen_interval;
800
801 /*
802 * Enable or disable the beacon filtering.
803 *
804 * Range: CONF_BCN_FILT_MODE_*
805 */
806 enum conf_bcn_filt_mode bcn_filt_mode;
807
808 /*
809 * Configure Beacon filter pass-thru rules.
810 */
811 u8 bcn_filt_ie_count;
812 struct conf_bcn_filt_rule bcn_filt_ie[CONF_MAX_BCN_FILT_IE_COUNT];
813
814 /*
Eliad Peller3be41122011-08-14 13:17:19 +0300815 * The number of consecutive beacons to lose, before the firmware
Juuso Oikarinen51f2be22009-10-13 12:47:42 +0300816 * becomes out of synch.
817 *
818 * Range: u32
819 */
820 u32 synch_fail_thold;
821
822 /*
823 * After out-of-synch, the number of TU's to wait without a further
824 * received beacon (or probe response) before issuing the BSS_EVENT_LOSE
825 * event.
826 *
827 * Range: u32
828 */
829 u32 bss_lose_timeout;
830
831 /*
832 * Beacon receive timeout.
833 *
834 * Range: u32
835 */
836 u32 beacon_rx_timeout;
837
838 /*
839 * Broadcast receive timeout.
840 *
841 * Range: u32
842 */
843 u32 broadcast_timeout;
844
845 /*
846 * Enable/disable reception of broadcast packets in power save mode
847 *
848 * Range: 1 - enable, 0 - disable
849 */
850 u8 rx_broadcast_in_ps;
851
852 /*
Eliad Peller3be41122011-08-14 13:17:19 +0300853 * Consecutive PS Poll failures before sending event to driver
Juuso Oikarinen51f2be22009-10-13 12:47:42 +0300854 *
855 * Range: u8
856 */
857 u8 ps_poll_threshold;
858
859 /*
Juuso Oikarinen90494a92010-07-08 17:50:00 +0300860 * PS Poll failure recovery ACTIVE period length
861 *
862 * Range: u32 (ms)
863 */
864 u32 ps_poll_recovery_period;
865
866 /*
Juuso Oikarinen51f2be22009-10-13 12:47:42 +0300867 * Configuration of signal average weights.
868 */
869 struct conf_sig_weights sig_weights;
Juuso Oikarinen11f70f92009-10-13 12:47:46 +0300870
871 /*
872 * Specifies if beacon early termination procedure is enabled or
873 * disabled.
874 *
875 * Range: CONF_BET_MODE_*
876 */
877 u8 bet_enable;
878
879 /*
880 * Specifies the maximum number of consecutive beacons that may be
881 * early terminated. After this number is reached at least one full
882 * beacon must be correctly received in FW before beacon ET
883 * resumes.
884 *
885 * Range 0 - 255
886 */
887 u8 bet_max_consecutive;
Juuso Oikarinen19ad0712009-11-02 20:22:11 +0200888
889 /*
890 * Specifies the maximum number of times to try PSM entry if it fails
891 * (if sending the appropriate null-func message fails.)
892 *
893 * Range 0 - 255
894 */
895 u8 psm_entry_retries;
Juuso Oikarinenc1899552010-03-26 12:53:32 +0200896
897 /*
Eliad Pelleree608332011-02-02 09:59:34 +0200898 * Specifies the maximum number of times to try PSM exit if it fails
899 * (if sending the appropriate null-func message fails.)
900 *
901 * Range 0 - 255
902 */
903 u8 psm_exit_retries;
904
905 /*
Juuso Oikarinen8eab7b42010-09-24 03:10:11 +0200906 * Specifies the maximum number of times to try transmit the PSM entry
907 * null-func frame for each PSM entry attempt
908 *
909 * Range 0 - 255
910 */
911 u8 psm_entry_nullfunc_retries;
912
913 /*
914 * Specifies the time to linger in active mode after successfully
915 * transmitting the PSM entry null-func frame.
916 *
917 * Range 0 - 255 TU's
918 */
919 u8 psm_entry_hangover_period;
920
921 /*
Juuso Oikarinenc1899552010-03-26 12:53:32 +0200922 *
923 * Specifies the interval of the connection keep-alive null-func
924 * frame in ms.
925 *
926 * Range: 1000 - 3600000
927 */
928 u32 keep_alive_interval;
Juuso Oikarinen50c500a2010-04-01 11:38:22 +0300929
930 /*
931 * Maximum listen interval supported by the driver in units of beacons.
932 *
933 * Range: u16
934 */
935 u8 max_listen_interval;
Juuso Oikarinen51f2be22009-10-13 12:47:42 +0300936};
937
Juuso Oikarinen47fab7d2009-10-13 12:47:43 +0300938enum {
939 CONF_REF_CLK_19_2_E,
940 CONF_REF_CLK_26_E,
941 CONF_REF_CLK_38_4_E,
Shahar Levi5aa42342011-03-06 16:32:07 +0200942 CONF_REF_CLK_52_E,
943 CONF_REF_CLK_38_4_M_XTAL,
944 CONF_REF_CLK_26_M_XTAL,
Juuso Oikarinen47fab7d2009-10-13 12:47:43 +0300945};
946
Teemu Paasikivi1ebec3d2009-10-13 12:47:48 +0300947enum single_dual_band_enum {
948 CONF_SINGLE_BAND,
949 CONF_DUAL_BAND
950};
951
Juuso Oikarinen47fab7d2009-10-13 12:47:43 +0300952#define CONF_RSSI_AND_PROCESS_COMPENSATION_SIZE 15
953#define CONF_NUMBER_OF_SUB_BANDS_5 7
954#define CONF_NUMBER_OF_RATE_GROUPS 6
955#define CONF_NUMBER_OF_CHANNELS_2_4 14
956#define CONF_NUMBER_OF_CHANNELS_5 35
957
Luciano Coelho6e92b412009-12-11 15:40:50 +0200958struct conf_itrim_settings {
959 /* enable dco itrim */
960 u8 enable;
961
962 /* moderation timeout in microsecs from the last TX */
963 u32 timeout;
964};
965
Juuso Oikarinen38ad2d82009-12-11 15:41:08 +0200966struct conf_pm_config_settings {
967 /*
968 * Host clock settling time
969 *
970 * Range: 0 - 30000 us
971 */
972 u32 host_clk_settling_time;
973
974 /*
975 * Host fast wakeup support
976 *
977 * Range: true, false
978 */
979 bool host_fast_wakeup_support;
980};
981
Juuso Oikarinen00236aed2010-04-09 11:07:30 +0300982struct conf_roam_trigger_settings {
983 /*
984 * The minimum interval between two trigger events.
985 *
986 * Range: 0 - 60000 ms
987 */
988 u16 trigger_pacing;
989
990 /*
991 * The weight for rssi/beacon average calculation
992 *
993 * Range: 0 - 255
994 */
995 u8 avg_weight_rssi_beacon;
996
997 /*
998 * The weight for rssi/data frame average calculation
999 *
1000 * Range: 0 - 255
1001 */
1002 u8 avg_weight_rssi_data;
1003
1004 /*
1005 * The weight for snr/beacon average calculation
1006 *
1007 * Range: 0 - 255
1008 */
1009 u8 avg_weight_snr_beacon;
1010
1011 /*
1012 * The weight for snr/data frame average calculation
1013 *
1014 * Range: 0 - 255
1015 */
1016 u8 avg_weight_snr_data;
1017};
1018
Juuso Oikarinenbea39d62010-09-21 08:14:31 +02001019struct conf_scan_settings {
1020 /*
1021 * The minimum time to wait on each channel for active scans
1022 *
Juuso Oikarinenea45b2c2011-01-24 07:01:54 +01001023 * Range: u32 tu/1000
Juuso Oikarinenbea39d62010-09-21 08:14:31 +02001024 */
Juuso Oikarinenea45b2c2011-01-24 07:01:54 +01001025 u32 min_dwell_time_active;
Juuso Oikarinenbea39d62010-09-21 08:14:31 +02001026
1027 /*
1028 * The maximum time to wait on each channel for active scans
1029 *
Juuso Oikarinenea45b2c2011-01-24 07:01:54 +01001030 * Range: u32 tu/1000
Juuso Oikarinenbea39d62010-09-21 08:14:31 +02001031 */
Juuso Oikarinenea45b2c2011-01-24 07:01:54 +01001032 u32 max_dwell_time_active;
1033
1034 /*
1035 * The minimum time to wait on each channel for passive scans
1036 *
1037 * Range: u32 tu/1000
1038 */
1039 u32 min_dwell_time_passive;
Juuso Oikarinenbea39d62010-09-21 08:14:31 +02001040
1041 /*
1042 * The maximum time to wait on each channel for passive scans
1043 *
Juuso Oikarinenea45b2c2011-01-24 07:01:54 +01001044 * Range: u32 tu/1000
Juuso Oikarinenbea39d62010-09-21 08:14:31 +02001045 */
Juuso Oikarinenea45b2c2011-01-24 07:01:54 +01001046 u32 max_dwell_time_passive;
Juuso Oikarinenbea39d62010-09-21 08:14:31 +02001047
1048 /*
1049 * Number of probe requests to transmit on each active scan channel
1050 *
1051 * Range: u8
1052 */
1053 u16 num_probe_reqs;
1054
1055};
1056
Luciano Coelho3a9d60e2011-05-10 14:06:31 +03001057struct conf_sched_scan_settings {
1058 /* minimum time to wait on the channel for active scans (in TUs) */
1059 u16 min_dwell_time_active;
1060
1061 /* maximum time to wait on the channel for active scans (in TUs) */
1062 u16 max_dwell_time_active;
1063
1064 /* time to wait on the channel for passive scans (in TUs) */
1065 u32 dwell_time_passive;
1066
Luciano Coelho50a66d72011-05-27 15:34:47 +03001067 /* time to wait on the channel for DFS scans (in TUs) */
1068 u32 dwell_time_dfs;
1069
Luciano Coelho3a9d60e2011-05-10 14:06:31 +03001070 /* number of probe requests to send on each channel in active scans */
1071 u8 num_probe_reqs;
1072
1073 /* RSSI threshold to be used for filtering */
1074 s8 rssi_threshold;
1075
1076 /* SNR threshold to be used for filtering */
1077 s8 snr_threshold;
1078};
1079
Juuso Oikarinen644a4862010-10-05 13:11:56 +02001080/* these are number of channels on the band divided by two, rounded up */
1081#define CONF_TX_PWR_COMPENSATION_LEN_2 7
1082#define CONF_TX_PWR_COMPENSATION_LEN_5 18
1083
1084struct conf_rf_settings {
1085 /*
1086 * Per channel power compensation for 2.4GHz
1087 *
1088 * Range: s8
1089 */
1090 u8 tx_per_channel_power_compensation_2[CONF_TX_PWR_COMPENSATION_LEN_2];
1091
1092 /*
1093 * Per channel power compensation for 5GHz
1094 *
1095 * Range: s8
1096 */
1097 u8 tx_per_channel_power_compensation_5[CONF_TX_PWR_COMPENSATION_LEN_5];
1098};
1099
Levi, Shahar4b7fac72011-01-23 07:27:22 +01001100struct conf_ht_setting {
Arik Nemtsov0f9c8252011-08-17 10:45:49 +03001101 u8 rx_ba_win_size;
1102 u8 tx_ba_win_size;
Levi, Shahar4b7fac72011-01-23 07:27:22 +01001103 u16 inactivity_timeout;
Arik Nemtsov0f9c8252011-08-17 10:45:49 +03001104
1105 /* bitmap of enabled TIDs for TX BA sessions */
1106 u8 tx_ba_tid_bitmap;
Levi, Shahar4b7fac72011-01-23 07:27:22 +01001107};
1108
Eliad Pellerc8bde242011-02-02 09:59:35 +02001109struct conf_memory_settings {
Eliad Pellerfe5ef092011-02-02 09:59:36 +02001110 /* Number of stations supported in IBSS mode */
1111 u8 num_stations;
1112
1113 /* Number of ssid profiles used in IBSS mode */
1114 u8 ssid_profiles;
1115
1116 /* Number of memory buffers allocated to rx pool */
1117 u8 rx_block_num;
1118
1119 /* Minimum number of blocks allocated to tx pool */
1120 u8 tx_min_block_num;
1121
Eliad Pellerc8bde242011-02-02 09:59:35 +02001122 /* Disable/Enable dynamic memory */
1123 u8 dynamic_memory;
1124
1125 /*
1126 * Minimum required free tx memory blocks in order to assure optimum
Lucas De Marchi25985ed2011-03-30 22:57:33 -03001127 * performance
Eliad Pellerc8bde242011-02-02 09:59:35 +02001128 *
1129 * Range: 0-120
1130 */
1131 u8 min_req_tx_blocks;
1132
1133 /*
1134 * Minimum required free rx memory blocks in order to assure optimum
Lucas De Marchi25985ed2011-03-30 22:57:33 -03001135 * performance
Eliad Pellerc8bde242011-02-02 09:59:35 +02001136 *
1137 * Range: 0-120
1138 */
1139 u8 min_req_rx_blocks;
1140
1141 /*
1142 * Minimum number of mem blocks (free+used) guaranteed for TX
1143 *
1144 * Range: 0-120
1145 */
1146 u8 tx_min;
1147};
1148
Shahar Leviff868432011-04-11 15:41:46 +03001149struct conf_fm_coex {
1150 u8 enable;
1151 u8 swallow_period;
1152 u8 n_divider_fref_set_1;
1153 u8 n_divider_fref_set_2;
1154 u16 m_divider_fref_set_1;
1155 u16 m_divider_fref_set_2;
1156 u32 coex_pll_stabilization_time;
1157 u16 ldo_stabilization_time;
1158 u8 fm_disturbed_band_margin;
1159 u8 swallow_clk_diff;
1160};
1161
Eliad Pellerf84673d2011-05-15 11:10:28 +03001162struct conf_rx_streaming_settings {
1163 /*
1164 * RX Streaming duration (in msec) from last tx/rx
1165 *
1166 * Range: u32
1167 */
1168 u32 duration;
1169
1170 /*
1171 * Bitmap of tids to be polled during RX streaming.
1172 * (Note: it doesn't look like it really matters)
1173 *
1174 * Range: 0x1-0xff
1175 */
1176 u8 queues;
1177
1178 /*
1179 * RX Streaming interval.
1180 * (Note:this value is also used as the rx streaming timeout)
1181 * Range: 0 (disabled), 10 - 100
1182 */
1183 u8 interval;
Eliad Peller77ddaa12011-05-15 11:10:29 +03001184
1185 /*
1186 * enable rx streaming also when there is no coex activity
1187 */
1188 u8 always;
Eliad Pellerf84673d2011-05-15 11:10:28 +03001189};
1190
Ido Yariv95dac04f2011-06-06 14:57:06 +03001191struct conf_fwlog {
1192 /* Continuous or on-demand */
1193 u8 mode;
1194
1195 /*
1196 * Number of memory blocks dedicated for the FW logger
1197 *
1198 * Range: 1-3, or 0 to disable the FW logger
1199 */
1200 u8 mem_blocks;
1201
1202 /* Minimum log level threshold */
1203 u8 severity;
1204
1205 /* Include/exclude timestamps from the log messages */
1206 u8 timestamp;
1207
1208 /* See enum wl1271_fwlogger_output */
1209 u8 output;
1210
1211 /* Regulates the frequency of log messages */
1212 u8 threshold;
1213};
1214
Eliad Pellerfa6ad9f2011-08-14 13:17:14 +03001215#define ACX_RATE_MGMT_NUM_OF_RATES 13
1216struct conf_rate_policy_settings {
1217 u16 rate_retry_score;
1218 u16 per_add;
1219 u16 per_th1;
1220 u16 per_th2;
1221 u16 max_per;
1222 u8 inverse_curiosity_factor;
1223 u8 tx_fail_low_th;
1224 u8 tx_fail_high_th;
1225 u8 per_alpha_shift;
1226 u8 per_add_shift;
1227 u8 per_beta1_shift;
1228 u8 per_beta2_shift;
1229 u8 rate_check_up;
1230 u8 rate_check_down;
1231 u8 rate_retry_policy[ACX_RATE_MGMT_NUM_OF_RATES];
1232};
1233
Juuso Oikarinen2b60100b2009-10-13 12:47:39 +03001234struct conf_drv_settings {
1235 struct conf_sg_settings sg;
Juuso Oikarinen8793f9b2009-10-13 12:47:40 +03001236 struct conf_rx_settings rx;
Juuso Oikarinen45b531a2009-10-13 12:47:41 +03001237 struct conf_tx_settings tx;
Juuso Oikarinen51f2be22009-10-13 12:47:42 +03001238 struct conf_conn_settings conn;
Luciano Coelho6e92b412009-12-11 15:40:50 +02001239 struct conf_itrim_settings itrim;
Juuso Oikarinen38ad2d82009-12-11 15:41:08 +02001240 struct conf_pm_config_settings pm_config;
Juuso Oikarinen00236aed2010-04-09 11:07:30 +03001241 struct conf_roam_trigger_settings roam_trigger;
Juuso Oikarinenbea39d62010-09-21 08:14:31 +02001242 struct conf_scan_settings scan;
Luciano Coelho3a9d60e2011-05-10 14:06:31 +03001243 struct conf_sched_scan_settings sched_scan;
Juuso Oikarinen644a4862010-10-05 13:11:56 +02001244 struct conf_rf_settings rf;
Levi, Shahar4b7fac72011-01-23 07:27:22 +01001245 struct conf_ht_setting ht;
Shahar Levi13b107d2011-03-06 16:32:12 +02001246 struct conf_memory_settings mem_wl127x;
1247 struct conf_memory_settings mem_wl128x;
Shahar Leviff868432011-04-11 15:41:46 +03001248 struct conf_fm_coex fm_coex;
Eliad Pellerf84673d2011-05-15 11:10:28 +03001249 struct conf_rx_streaming_settings rx_streaming;
Ido Yariv95dac04f2011-06-06 14:57:06 +03001250 struct conf_fwlog fwlog;
Eliad Pellerfa6ad9f2011-08-14 13:17:14 +03001251 struct conf_rate_policy_settings rate;
Luciano Coelhoafb7d3c2011-04-01 20:48:02 +03001252 u8 hci_io_ds;
Juuso Oikarinen2b60100b2009-10-13 12:47:39 +03001253};
1254
1255#endif