2 * This file is part of wl1271
4 * Copyright (C) 2009 Nokia Corporation
6 * Contact: Luciano Coelho <luciano.coelho@nokia.com>
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.
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.
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
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)
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
,
69 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
,
87 CONF_HW_RXTX_RATE_5_5
,
90 CONF_HW_RXTX_RATE_MAX
,
91 CONF_HW_RXTX_RATE_UNSUPPORTED
= 0xff
102 * Configure the min and max time BT gains the antenna
103 * in WLAN / BT master basic rate
105 * Range: 0 - 255 (ms)
107 CONF_SG_ACL_BT_MASTER_MIN_BR
= 0,
108 CONF_SG_ACL_BT_MASTER_MAX_BR
,
111 * Configure the min and max time BT gains the antenna
112 * in WLAN / BT slave basic rate
114 * Range: 0 - 255 (ms)
116 CONF_SG_ACL_BT_SLAVE_MIN_BR
,
117 CONF_SG_ACL_BT_SLAVE_MAX_BR
,
120 * Configure the min and max time BT gains the antenna
121 * in WLAN / BT master EDR
123 * Range: 0 - 255 (ms)
125 CONF_SG_ACL_BT_MASTER_MIN_EDR
,
126 CONF_SG_ACL_BT_MASTER_MAX_EDR
,
129 * Configure the min and max time BT gains the antenna
130 * in WLAN / BT slave EDR
132 * Range: 0 - 255 (ms)
134 CONF_SG_ACL_BT_SLAVE_MIN_EDR
,
135 CONF_SG_ACL_BT_SLAVE_MAX_EDR
,
138 * The maximum time WLAN can gain the antenna
139 * in WLAN PSM / BT master/slave BR
141 * Range: 0 - 255 (ms)
143 CONF_SG_ACL_WLAN_PS_MASTER_BR
,
144 CONF_SG_ACL_WLAN_PS_SLAVE_BR
,
147 * The maximum time WLAN can gain the antenna
148 * in WLAN PSM / BT master/slave EDR
150 * Range: 0 - 255 (ms)
152 CONF_SG_ACL_WLAN_PS_MASTER_EDR
,
153 CONF_SG_ACL_WLAN_PS_SLAVE_EDR
,
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
,
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
,
173 * Compensation percentage of probe requests when scan initiated
174 * during BT voice/ACL link.
178 CONF_SG_AUTO_SCAN_PROBE_REQ
,
181 * Compensation percentage of probe requests when active scan initiated
186 CONF_SG_ACTIVE_SCAN_DURATION_FACTOR_HV3
,
189 * Compensation percentage of WLAN active scan window if initiated
192 * Range: 0 - 1000 (%)
194 CONF_SG_ACTIVE_SCAN_DURATION_FACTOR_A2DP
,
197 * Compensation percentage of WLAN passive scan window if initiated
200 * Range: 0 - 1000 (%)
202 CONF_SG_PASSIVE_SCAN_DURATION_FACTOR_A2DP_BR
,
205 * Compensation percentage of WLAN passive scan window if initiated
208 * Range: 0 - 1000 (%)
210 CONF_SG_PASSIVE_SCAN_DURATION_FACTOR_A2DP_EDR
,
213 * Compensation percentage of WLAN passive scan window if initiated
216 * Range: 0 - 1000 (%)
218 CONF_SG_PASSIVE_SCAN_DURATION_FACTOR_HV3
,
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
,
226 * Defines whether the SG will force WLAN host to enter/exit PSM
228 * Range: 1 - SG can force, 0 - host handles PSM
230 CONF_SG_STA_FORCE_PS_IN_BT_SCO
,
233 * Defines antenna configuration (single/dual antenna)
235 * Range: 0 - single antenna, 1 - dual antenna
237 CONF_SG_ANTENNA_CONFIGURATION
,
240 * The threshold (percent) of max consecutive beacon misses before
241 * increasing priority of beacon reception.
245 CONF_SG_BEACON_MISS_PERCENT
,
248 * Protection time of the DHCP procedure.
250 * Range: 0 - 100000 (ms)
255 * RX guard time before the beginning of a new BT voice frame during
256 * which no new WLAN trigger frame is transmitted.
258 * Range: 0 - 100000 (us)
263 * TX guard time before the beginning of a new BT voice frame during
264 * which no new WLAN frame is transmitted.
266 * Range: 0 - 100000 (us)
272 * Enable adaptive RXT/TXT algorithm. If disabled, the host values
275 * Range: 0 - disable, 1 - enable
277 CONF_SG_ADAPTIVE_RXT_TXT
,
279 /* TODO: explain this value */
280 CONF_SG_GENERAL_USAGE_BIT_MAP
,
283 * Number of consecutive BT voice frames not interrupted by WLAN
287 CONF_SG_HV3_MAX_SERVED
,
290 * The used WLAN legacy service period during active BT ACL link
292 * Range: 0 - 255 (ms)
294 CONF_SG_PS_POLL_TIMEOUT
,
297 * The used WLAN UPSD service period during active BT ACL link
299 * Range: 0 - 255 (ms)
301 CONF_SG_UPSD_TIMEOUT
,
303 CONF_SG_CONSECUTIVE_CTS_THRESHOLD
,
304 CONF_SG_STA_RX_WINDOW_AFTER_DTIM
,
305 CONF_SG_STA_CONNECTION_PROTECTION_TIME
,
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
,
315 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
,
320 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
,
327 CONF_SG_PARAMS_ALL
= 0xff
330 struct conf_sg_settings
{
331 u32 params
[CONF_SG_PARAMS_MAX
];
335 enum 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 */
340 struct conf_rx_settings
{
342 * The maximum amount of time, in TU, before the
343 * firmware discards the MSDU.
345 * Range: 0 - 0xFFFFFFFF
347 u32 rx_msdu_life_time
;
350 * Packet detection threshold in the PHY.
352 * FIXME: details unknown.
354 u32 packet_detection_threshold
;
357 * The longest time the STA will wait to receive traffic from the AP
358 * after a PS-poll has been transmitted.
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.
372 * The number of octets in an MPDU, below which an RTS/CTS
373 * handshake is not performed.
380 * The RX Clear Channel Assessment threshold in the PHY
381 * (the energy threshold).
383 * Range: ENABLE_ENERGY_D == 0x140A
384 * DISABLE_ENERGY_D == 0xFFEF
386 u16 rx_cca_threshold
;
389 * Occupied Rx mem-blocks number which requires interrupting the host
390 * (0 = no buffering, 0xffff = disabled).
394 u16 irq_blk_threshold
;
397 * Rx packets number which requires interrupting the host
398 * (0 = no buffering).
402 u16 irq_pkt_threshold
;
405 * Max time in msec the FW may delay RX-Complete interrupt.
414 * Range: RX_QUEUE_TYPE_RX_LOW_PRIORITY, RX_QUEUE_TYPE_RX_HIGH_PRIORITY,
419 #define CONF_TX_MAX_RATE_CLASSES 10
421 #define CONF_TX_RATE_MASK_UNSPECIFIED 0
422 #define CONF_TX_RATE_MASK_BASIC (CONF_HW_BIT_RATE_1MBPS | \
423 CONF_HW_BIT_RATE_2MBPS)
424 #define CONF_TX_RATE_RETRY_LIMIT 10
426 /* basic rates for p2p operations (probe req/resp, etc.) */
427 #define CONF_TX_RATE_MASK_BASIC_P2P (CONF_HW_BIT_RATE_6MBPS | \
428 CONF_HW_BIT_RATE_12MBPS | CONF_HW_BIT_RATE_24MBPS)
431 * Rates supported for data packets when operating as AP. Note the absence
432 * of the 22Mbps rate. There is a FW limitation on 12 rates so we must drop
433 * one. The rate dropped is not mandatory under any operating mode.
435 #define CONF_TX_AP_ENABLED_RATES (CONF_HW_BIT_RATE_1MBPS | \
436 CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS | \
437 CONF_HW_BIT_RATE_6MBPS | CONF_HW_BIT_RATE_9MBPS | \
438 CONF_HW_BIT_RATE_11MBPS | CONF_HW_BIT_RATE_12MBPS | \
439 CONF_HW_BIT_RATE_18MBPS | CONF_HW_BIT_RATE_24MBPS | \
440 CONF_HW_BIT_RATE_36MBPS | CONF_HW_BIT_RATE_48MBPS | \
441 CONF_HW_BIT_RATE_54MBPS)
443 #define CONF_TX_OFDM_RATES (CONF_HW_BIT_RATE_6MBPS | \
444 CONF_HW_BIT_RATE_12MBPS | CONF_HW_BIT_RATE_24MBPS | \
445 CONF_HW_BIT_RATE_36MBPS | CONF_HW_BIT_RATE_48MBPS | \
446 CONF_HW_BIT_RATE_54MBPS)
448 #define CONF_TX_MCS_RATES (CONF_HW_BIT_RATE_MCS_0 | \
449 CONF_HW_BIT_RATE_MCS_1 | CONF_HW_BIT_RATE_MCS_2 | \
450 CONF_HW_BIT_RATE_MCS_3 | CONF_HW_BIT_RATE_MCS_4 | \
451 CONF_HW_BIT_RATE_MCS_5 | CONF_HW_BIT_RATE_MCS_6 | \
452 CONF_HW_BIT_RATE_MCS_7)
455 * Default rates for management traffic when operating in AP mode. This
456 * should be configured according to the basic rate set of the AP
458 #define CONF_TX_AP_DEFAULT_MGMT_RATES (CONF_HW_BIT_RATE_1MBPS | \
459 CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS)
461 /* default rates for working as IBSS (11b and OFDM) */
462 #define CONF_TX_IBSS_DEFAULT_RATES (CONF_HW_BIT_RATE_1MBPS | \
463 CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS | \
464 CONF_HW_BIT_RATE_11MBPS | CONF_TX_OFDM_RATES);
466 struct conf_tx_rate_class
{
469 * The rates enabled for this rate class.
471 * Range: CONF_HW_BIT_RATE_* bit mask
476 * The dot11 short retry limit used for TX retries.
480 u8 short_retry_limit
;
483 * The dot11 long retry limit used for TX retries.
490 * Flags controlling the attributes of TX transmission.
492 * Range: bit 0: Truncate - when set, FW attempts to send a frame stop
493 * when the total valid per-rate attempts have
494 * been exhausted; otherwise transmissions
495 * will continue at the lowest available rate
496 * until the appropriate one of the
497 * short_retry_limit, long_retry_limit,
498 * dot11_max_transmit_msdu_life_time, or
499 * max_tx_life_time, is exhausted.
500 * 1: Preamble Override - indicates if the preamble type
501 * should be used in TX.
502 * 2: Preamble Type - the type of the preamble to be used by
503 * the policy (0 - long preamble, 1 - short preamble.
508 #define CONF_TX_MAX_AC_COUNT 4
510 /* Slot number setting to start transmission at PIFS interval */
511 #define CONF_TX_AIFS_PIFS 1
512 /* Slot number setting to start transmission at DIFS interval normal
514 #define CONF_TX_AIFS_DIFS 2
518 CONF_TX_AC_BE
= 0, /* best effort / legacy */
519 CONF_TX_AC_BK
= 1, /* background */
520 CONF_TX_AC_VI
= 2, /* video */
521 CONF_TX_AC_VO
= 3, /* voice */
522 CONF_TX_AC_CTS2SELF
= 4, /* fictitious AC, follows AC_VO */
523 CONF_TX_AC_ANY_TID
= 0x1f
526 struct conf_tx_ac_category
{
528 * The AC class identifier.
530 * Range: enum conf_tx_ac
535 * The contention window minimum size (in slots) for the access
543 * The contention window maximum size (in slots) for the access
551 * The AIF value (in slots) for the access class.
558 * The TX Op Limit (in microseconds) for the access class.
565 #define CONF_TX_MAX_TID_COUNT 8
567 /* Allow TX BA on all TIDs but 6,7. These are currently reserved in the FW */
568 #define CONF_TX_BA_ENABLED_TID_BITMAP 0x3F
571 CONF_CHANNEL_TYPE_DCF
= 0, /* DC/LEGACY*/
572 CONF_CHANNEL_TYPE_EDCF
= 1, /* EDCA*/
573 CONF_CHANNEL_TYPE_HCCA
= 2, /* HCCA*/
577 CONF_PS_SCHEME_LEGACY
= 0,
578 CONF_PS_SCHEME_UPSD_TRIGGER
= 1,
579 CONF_PS_SCHEME_LEGACY_PSPOLL
= 2,
580 CONF_PS_SCHEME_SAPSD
= 3,
584 CONF_ACK_POLICY_LEGACY
= 0,
585 CONF_ACK_POLICY_NO_ACK
= 1,
586 CONF_ACK_POLICY_BLOCK
= 2,
599 struct conf_tx_settings
{
601 * The TX ED value for TELEC Enable/Disable.
605 u8 tx_energy_detection
;
608 * Configuration for rate classes for TX (currently only one
609 * rate class supported). Used in non-AP mode.
611 struct conf_tx_rate_class sta_rc_conf
;
614 * Configuration for access categories for TX rate control.
617 struct conf_tx_ac_category ac_conf
[CONF_TX_MAX_AC_COUNT
];
620 * AP-mode - allow this number of TX retries to a station before an
621 * event is triggered from FW.
622 * In AP-mode the hlids of unreachable stations are given in the
623 * "sta_tx_retry_exceeded" member in the event mailbox.
628 * AP-mode - after this number of seconds a connected station is
629 * considered inactive.
634 * Configuration for TID parameters.
637 struct conf_tx_tid tid_conf
[CONF_TX_MAX_TID_COUNT
];
640 * The TX fragmentation threshold.
647 * Max time in msec the FW may delay frame TX-Complete interrupt.
651 u16 tx_compl_timeout
;
654 * Completed TX packet count which requires to issue the TX-Complete
659 u16 tx_compl_threshold
;
662 * The rate used for control messages and scanning on the 2.4GHz band
664 * Range: CONF_HW_BIT_RATE_* bit mask
669 * The rate used for control messages and scanning on the 5GHz band
671 * Range: CONF_HW_BIT_RATE_* bit mask
676 * TX retry limits for templates
678 u8 tmpl_short_retry_limit
;
679 u8 tmpl_long_retry_limit
;
683 CONF_WAKE_UP_EVENT_BEACON
= 0x01, /* Wake on every Beacon*/
684 CONF_WAKE_UP_EVENT_DTIM
= 0x02, /* Wake on every DTIM*/
685 CONF_WAKE_UP_EVENT_N_DTIM
= 0x04, /* Wake every Nth DTIM */
686 CONF_WAKE_UP_EVENT_N_BEACONS
= 0x08, /* Wake every Nth beacon */
687 CONF_WAKE_UP_EVENT_BITS_MASK
= 0x0F
690 #define CONF_MAX_BCN_FILT_IE_COUNT 32
692 #define CONF_BCN_RULE_PASS_ON_CHANGE BIT(0)
693 #define CONF_BCN_RULE_PASS_ON_APPEARANCE BIT(1)
695 #define CONF_BCN_IE_OUI_LEN 3
696 #define CONF_BCN_IE_VER_LEN 2
698 struct conf_bcn_filt_rule
{
700 * IE number to which to associate a rule.
707 * Rule to associate with the specific ie.
709 * Range: CONF_BCN_RULE_PASS_ON_*
714 * OUI for the vendor specifie IE (221)
716 u8 oui
[CONF_BCN_IE_OUI_LEN
];
719 * Type for the vendor specifie IE (221)
724 * Version for the vendor specifie IE (221)
726 u8 version
[CONF_BCN_IE_VER_LEN
];
729 #define CONF_MAX_RSSI_SNR_TRIGGERS 8
732 CONF_TRIG_METRIC_RSSI_BEACON
= 0,
733 CONF_TRIG_METRIC_RSSI_DATA
,
734 CONF_TRIG_METRIC_SNR_BEACON
,
735 CONF_TRIG_METRIC_SNR_DATA
739 CONF_TRIG_EVENT_TYPE_LEVEL
= 0,
740 CONF_TRIG_EVENT_TYPE_EDGE
744 CONF_TRIG_EVENT_DIR_LOW
= 0,
745 CONF_TRIG_EVENT_DIR_HIGH
,
746 CONF_TRIG_EVENT_DIR_BIDIR
749 struct conf_sig_weights
{
752 * RSSI from beacons average weight.
756 u8 rssi_bcn_avg_weight
;
759 * RSSI from data average weight.
763 u8 rssi_pkt_avg_weight
;
766 * SNR from beacons average weight.
770 u8 snr_bcn_avg_weight
;
773 * SNR from data average weight.
777 u8 snr_pkt_avg_weight
;
780 enum conf_bcn_filt_mode
{
781 CONF_BCN_FILT_MODE_DISABLED
= 0,
782 CONF_BCN_FILT_MODE_ENABLED
= 1
786 CONF_BET_MODE_DISABLE
= 0,
787 CONF_BET_MODE_ENABLE
= 1,
790 struct conf_conn_settings
{
792 * Firmware wakeup conditions configuration. The host may set only
795 * Range: CONF_WAKE_UP_EVENT_*
800 * Listen interval for beacons or Dtims.
802 * Range: 0 for beacon and Dtim wakeup
804 * 1-255 for x beacons
809 * Enable or disable the beacon filtering.
811 * Range: CONF_BCN_FILT_MODE_*
813 enum conf_bcn_filt_mode bcn_filt_mode
;
816 * Configure Beacon filter pass-thru rules.
818 u8 bcn_filt_ie_count
;
819 struct conf_bcn_filt_rule bcn_filt_ie
[CONF_MAX_BCN_FILT_IE_COUNT
];
822 * The number of consecutive beacons to lose, before the firmware
823 * becomes out of synch.
827 u32 synch_fail_thold
;
830 * After out-of-synch, the number of TU's to wait without a further
831 * received beacon (or probe response) before issuing the BSS_EVENT_LOSE
836 u32 bss_lose_timeout
;
839 * Beacon receive timeout.
843 u32 beacon_rx_timeout
;
846 * Broadcast receive timeout.
850 u32 broadcast_timeout
;
853 * Enable/disable reception of broadcast packets in power save mode
855 * Range: 1 - enable, 0 - disable
857 u8 rx_broadcast_in_ps
;
860 * Consecutive PS Poll failures before sending event to driver
864 u8 ps_poll_threshold
;
867 * PS Poll failure recovery ACTIVE period length
871 u32 ps_poll_recovery_period
;
874 * Configuration of signal average weights.
876 struct conf_sig_weights sig_weights
;
879 * Specifies if beacon early termination procedure is enabled or
882 * Range: CONF_BET_MODE_*
887 * Specifies the maximum number of consecutive beacons that may be
888 * early terminated. After this number is reached at least one full
889 * beacon must be correctly received in FW before beacon ET
894 u8 bet_max_consecutive
;
897 * Specifies the maximum number of times to try PSM entry if it fails
898 * (if sending the appropriate null-func message fails.)
902 u8 psm_entry_retries
;
905 * Specifies the maximum number of times to try PSM exit if it fails
906 * (if sending the appropriate null-func message fails.)
913 * Specifies the maximum number of times to try transmit the PSM entry
914 * null-func frame for each PSM entry attempt
918 u8 psm_entry_nullfunc_retries
;
922 * Specifies the interval of the connection keep-alive null-func
925 * Range: 1000 - 3600000
927 u32 keep_alive_interval
;
930 * Maximum listen interval supported by the driver in units of beacons.
934 u8 max_listen_interval
;
942 CONF_REF_CLK_38_4_M_XTAL
,
943 CONF_REF_CLK_26_M_XTAL
,
946 enum single_dual_band_enum
{
951 #define CONF_RSSI_AND_PROCESS_COMPENSATION_SIZE 15
952 #define CONF_NUMBER_OF_SUB_BANDS_5 7
953 #define CONF_NUMBER_OF_RATE_GROUPS 6
954 #define CONF_NUMBER_OF_CHANNELS_2_4 14
955 #define CONF_NUMBER_OF_CHANNELS_5 35
957 struct conf_itrim_settings
{
958 /* enable dco itrim */
961 /* moderation timeout in microsecs from the last TX */
965 struct conf_pm_config_settings
{
967 * Host clock settling time
969 * Range: 0 - 30000 us
971 u32 host_clk_settling_time
;
974 * Host fast wakeup support
978 bool host_fast_wakeup_support
;
981 struct conf_roam_trigger_settings
{
983 * The minimum interval between two trigger events.
985 * Range: 0 - 60000 ms
990 * The weight for rssi/beacon average calculation
994 u8 avg_weight_rssi_beacon
;
997 * The weight for rssi/data frame average calculation
1001 u8 avg_weight_rssi_data
;
1004 * The weight for snr/beacon average calculation
1008 u8 avg_weight_snr_beacon
;
1011 * The weight for snr/data frame average calculation
1015 u8 avg_weight_snr_data
;
1018 struct conf_scan_settings
{
1020 * The minimum time to wait on each channel for active scans
1022 * Range: u32 tu/1000
1024 u32 min_dwell_time_active
;
1027 * The maximum time to wait on each channel for active scans
1029 * Range: u32 tu/1000
1031 u32 max_dwell_time_active
;
1034 * The minimum time to wait on each channel for passive scans
1036 * Range: u32 tu/1000
1038 u32 min_dwell_time_passive
;
1041 * The maximum time to wait on each channel for passive scans
1043 * Range: u32 tu/1000
1045 u32 max_dwell_time_passive
;
1048 * Number of probe requests to transmit on each active scan channel
1056 struct conf_sched_scan_settings
{
1057 /* minimum time to wait on the channel for active scans (in TUs) */
1058 u16 min_dwell_time_active
;
1060 /* maximum time to wait on the channel for active scans (in TUs) */
1061 u16 max_dwell_time_active
;
1063 /* time to wait on the channel for passive scans (in TUs) */
1064 u32 dwell_time_passive
;
1066 /* time to wait on the channel for DFS scans (in TUs) */
1069 /* number of probe requests to send on each channel in active scans */
1072 /* RSSI threshold to be used for filtering */
1075 /* SNR threshold to be used for filtering */
1079 /* these are number of channels on the band divided by two, rounded up */
1080 #define CONF_TX_PWR_COMPENSATION_LEN_2 7
1081 #define CONF_TX_PWR_COMPENSATION_LEN_5 18
1083 struct conf_rf_settings
{
1085 * Per channel power compensation for 2.4GHz
1089 u8 tx_per_channel_power_compensation_2
[CONF_TX_PWR_COMPENSATION_LEN_2
];
1092 * Per channel power compensation for 5GHz
1096 u8 tx_per_channel_power_compensation_5
[CONF_TX_PWR_COMPENSATION_LEN_5
];
1099 struct conf_ht_setting
{
1102 u16 inactivity_timeout
;
1104 /* bitmap of enabled TIDs for TX BA sessions */
1105 u8 tx_ba_tid_bitmap
;
1108 struct conf_memory_settings
{
1109 /* Number of stations supported in IBSS mode */
1112 /* Number of ssid profiles used in IBSS mode */
1115 /* Number of memory buffers allocated to rx pool */
1118 /* Minimum number of blocks allocated to tx pool */
1119 u8 tx_min_block_num
;
1121 /* Disable/Enable dynamic memory */
1125 * Minimum required free tx memory blocks in order to assure optimum
1130 u8 min_req_tx_blocks
;
1133 * Minimum required free rx memory blocks in order to assure optimum
1138 u8 min_req_rx_blocks
;
1141 * Minimum number of mem blocks (free+used) guaranteed for TX
1148 struct conf_fm_coex
{
1151 u8 n_divider_fref_set_1
;
1152 u8 n_divider_fref_set_2
;
1153 u16 m_divider_fref_set_1
;
1154 u16 m_divider_fref_set_2
;
1155 u32 coex_pll_stabilization_time
;
1156 u16 ldo_stabilization_time
;
1157 u8 fm_disturbed_band_margin
;
1158 u8 swallow_clk_diff
;
1161 struct conf_rx_streaming_settings
{
1163 * RX Streaming duration (in msec) from last tx/rx
1170 * Bitmap of tids to be polled during RX streaming.
1171 * (Note: it doesn't look like it really matters)
1178 * RX Streaming interval.
1179 * (Note:this value is also used as the rx streaming timeout)
1180 * Range: 0 (disabled), 10 - 100
1185 * enable rx streaming also when there is no coex activity
1191 /* Continuous or on-demand */
1195 * Number of memory blocks dedicated for the FW logger
1197 * Range: 1-3, or 0 to disable the FW logger
1201 /* Minimum log level threshold */
1204 /* Include/exclude timestamps from the log messages */
1207 /* See enum wl1271_fwlogger_output */
1210 /* Regulates the frequency of log messages */
1214 #define ACX_RATE_MGMT_NUM_OF_RATES 13
1215 struct conf_rate_policy_settings
{
1216 u16 rate_retry_score
;
1221 u8 inverse_curiosity_factor
;
1230 u8 rate_retry_policy
[ACX_RATE_MGMT_NUM_OF_RATES
];
1233 struct conf_hangover_settings
{
1237 u8 early_termination_mode
;
1247 struct conf_drv_settings
{
1248 struct conf_sg_settings sg
;
1249 struct conf_rx_settings rx
;
1250 struct conf_tx_settings tx
;
1251 struct conf_conn_settings conn
;
1252 struct conf_itrim_settings itrim
;
1253 struct conf_pm_config_settings pm_config
;
1254 struct conf_roam_trigger_settings roam_trigger
;
1255 struct conf_scan_settings scan
;
1256 struct conf_sched_scan_settings sched_scan
;
1257 struct conf_rf_settings rf
;
1258 struct conf_ht_setting ht
;
1259 struct conf_memory_settings mem_wl127x
;
1260 struct conf_memory_settings mem_wl128x
;
1261 struct conf_fm_coex fm_coex
;
1262 struct conf_rx_streaming_settings rx_streaming
;
1263 struct conf_fwlog fwlog
;
1264 struct conf_rate_policy_settings rate
;
1265 struct conf_hangover_settings hangover
;