1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * This file is part of wl1271
5 * Copyright (C) 2009 Nokia Corporation
7 * Contact: Luciano Coelho <luciano.coelho@nokia.com>
14 CONF_HW_BIT_RATE_1MBPS
= BIT(0),
15 CONF_HW_BIT_RATE_2MBPS
= BIT(1),
16 CONF_HW_BIT_RATE_5_5MBPS
= BIT(2),
17 CONF_HW_BIT_RATE_6MBPS
= BIT(3),
18 CONF_HW_BIT_RATE_9MBPS
= BIT(4),
19 CONF_HW_BIT_RATE_11MBPS
= BIT(5),
20 CONF_HW_BIT_RATE_12MBPS
= BIT(6),
21 CONF_HW_BIT_RATE_18MBPS
= BIT(7),
22 CONF_HW_BIT_RATE_22MBPS
= BIT(8),
23 CONF_HW_BIT_RATE_24MBPS
= BIT(9),
24 CONF_HW_BIT_RATE_36MBPS
= BIT(10),
25 CONF_HW_BIT_RATE_48MBPS
= BIT(11),
26 CONF_HW_BIT_RATE_54MBPS
= BIT(12),
27 CONF_HW_BIT_RATE_MCS_0
= BIT(13),
28 CONF_HW_BIT_RATE_MCS_1
= BIT(14),
29 CONF_HW_BIT_RATE_MCS_2
= BIT(15),
30 CONF_HW_BIT_RATE_MCS_3
= BIT(16),
31 CONF_HW_BIT_RATE_MCS_4
= BIT(17),
32 CONF_HW_BIT_RATE_MCS_5
= BIT(18),
33 CONF_HW_BIT_RATE_MCS_6
= BIT(19),
34 CONF_HW_BIT_RATE_MCS_7
= BIT(20),
35 CONF_HW_BIT_RATE_MCS_8
= BIT(21),
36 CONF_HW_BIT_RATE_MCS_9
= BIT(22),
37 CONF_HW_BIT_RATE_MCS_10
= BIT(23),
38 CONF_HW_BIT_RATE_MCS_11
= BIT(24),
39 CONF_HW_BIT_RATE_MCS_12
= BIT(25),
40 CONF_HW_BIT_RATE_MCS_13
= BIT(26),
41 CONF_HW_BIT_RATE_MCS_14
= BIT(27),
42 CONF_HW_BIT_RATE_MCS_15
= BIT(28),
46 CONF_HW_RATE_INDEX_1MBPS
= 0,
47 CONF_HW_RATE_INDEX_2MBPS
= 1,
48 CONF_HW_RATE_INDEX_5_5MBPS
= 2,
49 CONF_HW_RATE_INDEX_11MBPS
= 3,
50 CONF_HW_RATE_INDEX_6MBPS
= 4,
51 CONF_HW_RATE_INDEX_9MBPS
= 5,
52 CONF_HW_RATE_INDEX_12MBPS
= 6,
53 CONF_HW_RATE_INDEX_18MBPS
= 7,
54 CONF_HW_RATE_INDEX_24MBPS
= 8,
55 CONF_HW_RATE_INDEX_36MBPS
= 9,
56 CONF_HW_RATE_INDEX_48MBPS
= 10,
57 CONF_HW_RATE_INDEX_54MBPS
= 11,
58 CONF_HW_RATE_INDEX_MCS0
= 12,
59 CONF_HW_RATE_INDEX_MCS1
= 13,
60 CONF_HW_RATE_INDEX_MCS2
= 14,
61 CONF_HW_RATE_INDEX_MCS3
= 15,
62 CONF_HW_RATE_INDEX_MCS4
= 16,
63 CONF_HW_RATE_INDEX_MCS5
= 17,
64 CONF_HW_RATE_INDEX_MCS6
= 18,
65 CONF_HW_RATE_INDEX_MCS7
= 19,
66 CONF_HW_RATE_INDEX_MCS7_SGI
= 20,
67 CONF_HW_RATE_INDEX_MCS0_40MHZ
= 21,
68 CONF_HW_RATE_INDEX_MCS1_40MHZ
= 22,
69 CONF_HW_RATE_INDEX_MCS2_40MHZ
= 23,
70 CONF_HW_RATE_INDEX_MCS3_40MHZ
= 24,
71 CONF_HW_RATE_INDEX_MCS4_40MHZ
= 25,
72 CONF_HW_RATE_INDEX_MCS5_40MHZ
= 26,
73 CONF_HW_RATE_INDEX_MCS6_40MHZ
= 27,
74 CONF_HW_RATE_INDEX_MCS7_40MHZ
= 28,
75 CONF_HW_RATE_INDEX_MCS7_40MHZ_SGI
= 29,
77 /* MCS8+ rates overlap with 40Mhz rates */
78 CONF_HW_RATE_INDEX_MCS8
= 21,
79 CONF_HW_RATE_INDEX_MCS9
= 22,
80 CONF_HW_RATE_INDEX_MCS10
= 23,
81 CONF_HW_RATE_INDEX_MCS11
= 24,
82 CONF_HW_RATE_INDEX_MCS12
= 25,
83 CONF_HW_RATE_INDEX_MCS13
= 26,
84 CONF_HW_RATE_INDEX_MCS14
= 27,
85 CONF_HW_RATE_INDEX_MCS15
= 28,
86 CONF_HW_RATE_INDEX_MCS15_SGI
= 29,
88 CONF_HW_RATE_INDEX_MAX
= CONF_HW_RATE_INDEX_MCS7_40MHZ_SGI
,
91 #define CONF_HW_RXTX_RATE_UNSUPPORTED 0xff
99 #define WLCORE_CONF_SG_PARAMS_MAX 67
100 #define WLCORE_CONF_SG_PARAMS_ALL 0xff
102 struct conf_sg_settings
{
103 u32 params
[WLCORE_CONF_SG_PARAMS_MAX
];
107 enum conf_rx_queue_type
{
108 CONF_RX_QUEUE_TYPE_LOW_PRIORITY
, /* All except the high priority */
109 CONF_RX_QUEUE_TYPE_HIGH_PRIORITY
, /* Management and voice packets */
112 struct conf_rx_settings
{
114 * The maximum amount of time, in TU, before the
115 * firmware discards the MSDU.
117 * Range: 0 - 0xFFFFFFFF
119 u32 rx_msdu_life_time
;
122 * Packet detection threshold in the PHY.
124 * FIXME: details unknown.
126 u32 packet_detection_threshold
;
129 * The longest time the STA will wait to receive traffic from the AP
130 * after a PS-poll has been transmitted.
136 * The longest time the STA will wait to receive traffic from the AP
137 * after a frame has been sent from an UPSD enabled queue.
144 * The number of octets in an MPDU, below which an RTS/CTS
145 * handshake is not performed.
152 * The RX Clear Channel Assessment threshold in the PHY
153 * (the energy threshold).
155 * Range: ENABLE_ENERGY_D == 0x140A
156 * DISABLE_ENERGY_D == 0xFFEF
158 u16 rx_cca_threshold
;
161 * Occupied Rx mem-blocks number which requires interrupting the host
162 * (0 = no buffering, 0xffff = disabled).
166 u16 irq_blk_threshold
;
169 * Rx packets number which requires interrupting the host
170 * (0 = no buffering).
174 u16 irq_pkt_threshold
;
177 * Max time in msec the FW may delay RX-Complete interrupt.
186 * Range: RX_QUEUE_TYPE_RX_LOW_PRIORITY, RX_QUEUE_TYPE_RX_HIGH_PRIORITY,
191 #define CONF_TX_MAX_RATE_CLASSES 10
193 #define CONF_TX_RATE_MASK_UNSPECIFIED 0
194 #define CONF_TX_RATE_MASK_BASIC (CONF_HW_BIT_RATE_1MBPS | \
195 CONF_HW_BIT_RATE_2MBPS)
196 #define CONF_TX_RATE_RETRY_LIMIT 10
198 /* basic rates for p2p operations (probe req/resp, etc.) */
199 #define CONF_TX_RATE_MASK_BASIC_P2P CONF_HW_BIT_RATE_6MBPS
202 * Rates supported for data packets when operating as STA/AP. Note the absence
203 * of the 22Mbps rate. There is a FW limitation on 12 rates so we must drop
204 * one. The rate dropped is not mandatory under any operating mode.
206 #define CONF_TX_ENABLED_RATES (CONF_HW_BIT_RATE_1MBPS | \
207 CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS | \
208 CONF_HW_BIT_RATE_6MBPS | CONF_HW_BIT_RATE_9MBPS | \
209 CONF_HW_BIT_RATE_11MBPS | CONF_HW_BIT_RATE_12MBPS | \
210 CONF_HW_BIT_RATE_18MBPS | CONF_HW_BIT_RATE_24MBPS | \
211 CONF_HW_BIT_RATE_36MBPS | CONF_HW_BIT_RATE_48MBPS | \
212 CONF_HW_BIT_RATE_54MBPS)
214 #define CONF_TX_CCK_RATES (CONF_HW_BIT_RATE_1MBPS | \
215 CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS | \
216 CONF_HW_BIT_RATE_11MBPS)
218 #define CONF_TX_OFDM_RATES (CONF_HW_BIT_RATE_6MBPS | \
219 CONF_HW_BIT_RATE_12MBPS | CONF_HW_BIT_RATE_24MBPS | \
220 CONF_HW_BIT_RATE_36MBPS | CONF_HW_BIT_RATE_48MBPS | \
221 CONF_HW_BIT_RATE_54MBPS)
223 #define CONF_TX_MCS_RATES (CONF_HW_BIT_RATE_MCS_0 | \
224 CONF_HW_BIT_RATE_MCS_1 | CONF_HW_BIT_RATE_MCS_2 | \
225 CONF_HW_BIT_RATE_MCS_3 | CONF_HW_BIT_RATE_MCS_4 | \
226 CONF_HW_BIT_RATE_MCS_5 | CONF_HW_BIT_RATE_MCS_6 | \
227 CONF_HW_BIT_RATE_MCS_7)
229 #define CONF_TX_MIMO_RATES (CONF_HW_BIT_RATE_MCS_8 | \
230 CONF_HW_BIT_RATE_MCS_9 | CONF_HW_BIT_RATE_MCS_10 | \
231 CONF_HW_BIT_RATE_MCS_11 | CONF_HW_BIT_RATE_MCS_12 | \
232 CONF_HW_BIT_RATE_MCS_13 | CONF_HW_BIT_RATE_MCS_14 | \
233 CONF_HW_BIT_RATE_MCS_15)
236 * Default rates for management traffic when operating in AP mode. This
237 * should be configured according to the basic rate set of the AP
239 #define CONF_TX_AP_DEFAULT_MGMT_RATES (CONF_HW_BIT_RATE_1MBPS | \
240 CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS)
242 /* default rates for working as IBSS (11b and OFDM) */
243 #define CONF_TX_IBSS_DEFAULT_RATES (CONF_HW_BIT_RATE_1MBPS | \
244 CONF_HW_BIT_RATE_2MBPS | CONF_HW_BIT_RATE_5_5MBPS | \
245 CONF_HW_BIT_RATE_11MBPS | CONF_TX_OFDM_RATES);
247 struct conf_tx_rate_class
{
250 * The rates enabled for this rate class.
252 * Range: CONF_HW_BIT_RATE_* bit mask
257 * The dot11 short retry limit used for TX retries.
261 u8 short_retry_limit
;
264 * The dot11 long retry limit used for TX retries.
271 * Flags controlling the attributes of TX transmission.
273 * Range: bit 0: Truncate - when set, FW attempts to send a frame stop
274 * when the total valid per-rate attempts have
275 * been exhausted; otherwise transmissions
276 * will continue at the lowest available rate
277 * until the appropriate one of the
278 * short_retry_limit, long_retry_limit,
279 * dot11_max_transmit_msdu_life_time, or
280 * max_tx_life_time, is exhausted.
281 * 1: Preamble Override - indicates if the preamble type
282 * should be used in TX.
283 * 2: Preamble Type - the type of the preamble to be used by
284 * the policy (0 - long preamble, 1 - short preamble.
289 #define CONF_TX_MAX_AC_COUNT 4
291 /* Slot number setting to start transmission at PIFS interval */
292 #define CONF_TX_AIFS_PIFS 1
293 /* Slot number setting to start transmission at DIFS interval normal
295 #define CONF_TX_AIFS_DIFS 2
299 CONF_TX_AC_BE
= 0, /* best effort / legacy */
300 CONF_TX_AC_BK
= 1, /* background */
301 CONF_TX_AC_VI
= 2, /* video */
302 CONF_TX_AC_VO
= 3, /* voice */
303 CONF_TX_AC_CTS2SELF
= 4, /* fictitious AC, follows AC_VO */
304 CONF_TX_AC_ANY_TID
= 0xff
307 struct conf_tx_ac_category
{
309 * The AC class identifier.
311 * Range: enum conf_tx_ac
316 * The contention window minimum size (in slots) for the access
324 * The contention window maximum size (in slots) for the access
332 * The AIF value (in slots) for the access class.
339 * The TX Op Limit (in microseconds) for the access class.
346 #define CONF_TX_MAX_TID_COUNT 8
348 /* Allow TX BA on all TIDs but 6,7. These are currently reserved in the FW */
349 #define CONF_TX_BA_ENABLED_TID_BITMAP 0x3F
352 CONF_CHANNEL_TYPE_DCF
= 0, /* DC/LEGACY*/
353 CONF_CHANNEL_TYPE_EDCF
= 1, /* EDCA*/
354 CONF_CHANNEL_TYPE_HCCA
= 2, /* HCCA*/
358 CONF_PS_SCHEME_LEGACY
= 0,
359 CONF_PS_SCHEME_UPSD_TRIGGER
= 1,
360 CONF_PS_SCHEME_LEGACY_PSPOLL
= 2,
361 CONF_PS_SCHEME_SAPSD
= 3,
365 CONF_ACK_POLICY_LEGACY
= 0,
366 CONF_ACK_POLICY_NO_ACK
= 1,
367 CONF_ACK_POLICY_BLOCK
= 2,
380 struct conf_tx_settings
{
382 * The TX ED value for TELEC Enable/Disable.
386 u8 tx_energy_detection
;
389 * Configuration for rate classes for TX (currently only one
390 * rate class supported). Used in non-AP mode.
392 struct conf_tx_rate_class sta_rc_conf
;
395 * Configuration for access categories for TX rate control.
398 struct conf_tx_ac_category ac_conf
[CONF_TX_MAX_AC_COUNT
];
401 * AP-mode - allow this number of TX retries to a station before an
402 * event is triggered from FW.
403 * In AP-mode the hlids of unreachable stations are given in the
404 * "sta_tx_retry_exceeded" member in the event mailbox.
409 * AP-mode - after this number of seconds a connected station is
410 * considered inactive.
415 * Configuration for TID parameters.
418 struct conf_tx_tid tid_conf
[CONF_TX_MAX_TID_COUNT
];
421 * The TX fragmentation threshold.
428 * Max time in msec the FW may delay frame TX-Complete interrupt.
432 u16 tx_compl_timeout
;
435 * Completed TX packet count which requires to issue the TX-Complete
440 u16 tx_compl_threshold
;
443 * The rate used for control messages and scanning on the 2.4GHz band
445 * Range: CONF_HW_BIT_RATE_* bit mask
450 * The rate used for control messages and scanning on the 5GHz band
452 * Range: CONF_HW_BIT_RATE_* bit mask
457 * TX retry limits for templates
459 u8 tmpl_short_retry_limit
;
460 u8 tmpl_long_retry_limit
;
462 /* Time in ms for Tx watchdog timer to expire */
463 u32 tx_watchdog_timeout
;
466 * when a slow link has this much packets pending, it becomes a low
467 * priority link, scheduling-wise
472 * when a fast link has this much packets pending, it becomes a low
473 * priority link, scheduling-wise
479 CONF_WAKE_UP_EVENT_BEACON
= 0x01, /* Wake on every Beacon*/
480 CONF_WAKE_UP_EVENT_DTIM
= 0x02, /* Wake on every DTIM*/
481 CONF_WAKE_UP_EVENT_N_DTIM
= 0x04, /* Wake every Nth DTIM */
482 CONF_WAKE_UP_EVENT_N_BEACONS
= 0x08, /* Wake every Nth beacon */
483 CONF_WAKE_UP_EVENT_BITS_MASK
= 0x0F
486 #define CONF_MAX_BCN_FILT_IE_COUNT 32
488 #define CONF_BCN_RULE_PASS_ON_CHANGE BIT(0)
489 #define CONF_BCN_RULE_PASS_ON_APPEARANCE BIT(1)
491 #define CONF_BCN_IE_OUI_LEN 3
492 #define CONF_BCN_IE_VER_LEN 2
494 struct conf_bcn_filt_rule
{
496 * IE number to which to associate a rule.
503 * Rule to associate with the specific ie.
505 * Range: CONF_BCN_RULE_PASS_ON_*
510 * OUI for the vendor specifie IE (221)
512 u8 oui
[CONF_BCN_IE_OUI_LEN
];
515 * Type for the vendor specifie IE (221)
520 * Version for the vendor specifie IE (221)
522 u8 version
[CONF_BCN_IE_VER_LEN
];
525 #define CONF_MAX_RSSI_SNR_TRIGGERS 8
528 CONF_TRIG_METRIC_RSSI_BEACON
= 0,
529 CONF_TRIG_METRIC_RSSI_DATA
,
530 CONF_TRIG_METRIC_SNR_BEACON
,
531 CONF_TRIG_METRIC_SNR_DATA
535 CONF_TRIG_EVENT_TYPE_LEVEL
= 0,
536 CONF_TRIG_EVENT_TYPE_EDGE
540 CONF_TRIG_EVENT_DIR_LOW
= 0,
541 CONF_TRIG_EVENT_DIR_HIGH
,
542 CONF_TRIG_EVENT_DIR_BIDIR
545 struct conf_sig_weights
{
548 * RSSI from beacons average weight.
552 u8 rssi_bcn_avg_weight
;
555 * RSSI from data average weight.
559 u8 rssi_pkt_avg_weight
;
562 * SNR from beacons average weight.
566 u8 snr_bcn_avg_weight
;
569 * SNR from data average weight.
573 u8 snr_pkt_avg_weight
;
576 enum conf_bcn_filt_mode
{
577 CONF_BCN_FILT_MODE_DISABLED
= 0,
578 CONF_BCN_FILT_MODE_ENABLED
= 1
582 CONF_BET_MODE_DISABLE
= 0,
583 CONF_BET_MODE_ENABLE
= 1,
586 struct conf_conn_settings
{
588 * Firmware wakeup conditions configuration. The host may set only
591 * Range: CONF_WAKE_UP_EVENT_*
596 * Listen interval for beacons or Dtims.
598 * Range: 0 for beacon and Dtim wakeup
600 * 1-255 for x beacons
605 * Firmware wakeup conditions during suspend
606 * Range: CONF_WAKE_UP_EVENT_*
608 u8 suspend_wake_up_event
;
611 * Listen interval during suspend.
612 * Currently will be in DTIMs (1-10)
615 u8 suspend_listen_interval
;
618 * Enable or disable the beacon filtering.
620 * Range: CONF_BCN_FILT_MODE_*
625 * Configure Beacon filter pass-thru rules.
627 u8 bcn_filt_ie_count
;
628 struct conf_bcn_filt_rule bcn_filt_ie
[CONF_MAX_BCN_FILT_IE_COUNT
];
631 * The number of consecutive beacons to lose, before the firmware
632 * becomes out of synch.
636 u32 synch_fail_thold
;
639 * After out-of-synch, the number of TU's to wait without a further
640 * received beacon (or probe response) before issuing the BSS_EVENT_LOSE
645 u32 bss_lose_timeout
;
648 * Beacon receive timeout.
652 u32 beacon_rx_timeout
;
655 * Broadcast receive timeout.
659 u32 broadcast_timeout
;
662 * Enable/disable reception of broadcast packets in power save mode
664 * Range: 1 - enable, 0 - disable
666 u8 rx_broadcast_in_ps
;
669 * Consecutive PS Poll failures before sending event to driver
673 u8 ps_poll_threshold
;
676 * Configuration of signal average weights.
678 struct conf_sig_weights sig_weights
;
681 * Specifies if beacon early termination procedure is enabled or
684 * Range: CONF_BET_MODE_*
689 * Specifies the maximum number of consecutive beacons that may be
690 * early terminated. After this number is reached at least one full
691 * beacon must be correctly received in FW before beacon ET
696 u8 bet_max_consecutive
;
699 * Specifies the maximum number of times to try PSM entry if it fails
700 * (if sending the appropriate null-func message fails.)
704 u8 psm_entry_retries
;
707 * Specifies the maximum number of times to try PSM exit if it fails
708 * (if sending the appropriate null-func message fails.)
715 * Specifies the maximum number of times to try transmit the PSM entry
716 * null-func frame for each PSM entry attempt
720 u8 psm_entry_nullfunc_retries
;
723 * Specifies the dynamic PS timeout in ms that will be used
724 * by the FW when in AUTO_PS mode
726 u16 dynamic_ps_timeout
;
729 * Specifies whether dynamic PS should be disabled and PSM forced.
730 * This is required for certain WiFi certification tests.
736 * Specifies the interval of the connection keep-alive null-func
739 * Range: 1000 - 3600000
741 u32 keep_alive_interval
;
744 * Maximum listen interval supported by the driver in units of beacons.
748 u8 max_listen_interval
;
751 * Default sleep authorization for a new STA interface. This determines
752 * whether we can go to ELP.
757 * Default RX BA Activity filter configuration
759 u8 suspend_rx_ba_activity
;
767 CONF_REF_CLK_38_4_M_XTAL
,
768 CONF_REF_CLK_26_M_XTAL
,
771 enum single_dual_band_enum
{
776 #define CONF_RSSI_AND_PROCESS_COMPENSATION_SIZE 15
777 #define CONF_NUMBER_OF_SUB_BANDS_5 7
778 #define CONF_NUMBER_OF_RATE_GROUPS 6
779 #define CONF_NUMBER_OF_CHANNELS_2_4 14
780 #define CONF_NUMBER_OF_CHANNELS_5 35
782 struct conf_itrim_settings
{
783 /* enable dco itrim */
786 /* moderation timeout in microsecs from the last TX */
790 enum conf_fast_wakeup
{
791 CONF_FAST_WAKEUP_ENABLE
,
792 CONF_FAST_WAKEUP_DISABLE
,
795 struct conf_pm_config_settings
{
797 * Host clock settling time
799 * Range: 0 - 30000 us
801 u32 host_clk_settling_time
;
804 * Host fast wakeup support
806 * Range: enum conf_fast_wakeup
808 u8 host_fast_wakeup_support
;
811 struct conf_roam_trigger_settings
{
813 * The minimum interval between two trigger events.
815 * Range: 0 - 60000 ms
820 * The weight for rssi/beacon average calculation
824 u8 avg_weight_rssi_beacon
;
827 * The weight for rssi/data frame average calculation
831 u8 avg_weight_rssi_data
;
834 * The weight for snr/beacon average calculation
838 u8 avg_weight_snr_beacon
;
841 * The weight for snr/data frame average calculation
845 u8 avg_weight_snr_data
;
848 struct conf_scan_settings
{
850 * The minimum time to wait on each channel for active scans
851 * This value will be used whenever there's a connected interface.
855 u32 min_dwell_time_active
;
858 * The maximum time to wait on each channel for active scans
859 * This value will be currently used whenever there's a
860 * connected interface. It shouldn't exceed 30000 (~30ms) to avoid
861 * possible interference of voip traffic going on while scanning.
865 u32 max_dwell_time_active
;
867 /* The minimum time to wait on each channel for active scans
868 * when it's possible to have longer scan dwell times.
869 * Currently this is used whenever we're idle on all interfaces.
870 * Longer dwell times improve detection of networks within a
875 u32 min_dwell_time_active_long
;
877 /* The maximum time to wait on each channel for active scans
878 * when it's possible to have longer scan dwell times.
879 * See min_dwell_time_active_long
883 u32 max_dwell_time_active_long
;
885 /* time to wait on the channel for passive scans (in TU/1000) */
886 u32 dwell_time_passive
;
888 /* time to wait on the channel for DFS scans (in TU/1000) */
892 * Number of probe requests to transmit on each active scan channel
899 * Scan trigger (split scan) timeout. The FW will split the scan
900 * operation into slices of the given time and allow the FW to schedule
901 * other tasks in between.
903 * Range: u32 Microsecs
905 u32 split_scan_timeout
;
908 struct conf_sched_scan_settings
{
910 * The base time to wait on the channel for active scans (in TU/1000).
911 * The minimum dwell time is calculated according to this:
912 * min_dwell_time = base + num_of_probes_to_be_sent * delta_per_probe
913 * The maximum dwell time is calculated according to this:
914 * max_dwell_time = min_dwell_time + max_dwell_time_delta
918 /* The delta between the min dwell time and max dwell time for
919 * active scans (in TU/1000s). The max dwell time is used by the FW once
920 * traffic is detected on the channel.
922 u32 max_dwell_time_delta
;
924 /* Delta added to min dwell time per each probe in 2.4 GHz (TU/1000) */
925 u32 dwell_time_delta_per_probe
;
927 /* Delta added to min dwell time per each probe in 5 GHz (TU/1000) */
928 u32 dwell_time_delta_per_probe_5
;
930 /* time to wait on the channel for passive scans (in TU/1000) */
931 u32 dwell_time_passive
;
933 /* time to wait on the channel for DFS scans (in TU/1000) */
936 /* number of probe requests to send on each channel in active scans */
939 /* RSSI threshold to be used for filtering */
942 /* SNR threshold to be used for filtering */
946 * number of short intervals scheduled scan cycles before
947 * switching to long intervals
949 u8 num_short_intervals
;
951 /* interval between each long scheduled scan cycle (in ms) */
955 struct conf_ht_setting
{
958 u16 inactivity_timeout
;
960 /* bitmap of enabled TIDs for TX BA sessions */
964 struct conf_memory_settings
{
965 /* Number of stations supported in IBSS mode */
968 /* Number of ssid profiles used in IBSS mode */
971 /* Number of memory buffers allocated to rx pool */
974 /* Minimum number of blocks allocated to tx pool */
977 /* Disable/Enable dynamic memory */
981 * Minimum required free tx memory blocks in order to assure optimum
986 u8 min_req_tx_blocks
;
989 * Minimum required free rx memory blocks in order to assure optimum
994 u8 min_req_rx_blocks
;
997 * Minimum number of mem blocks (free+used) guaranteed for TX
1004 struct conf_fm_coex
{
1007 u8 n_divider_fref_set_1
;
1008 u8 n_divider_fref_set_2
;
1009 u16 m_divider_fref_set_1
;
1010 u16 m_divider_fref_set_2
;
1011 u32 coex_pll_stabilization_time
;
1012 u16 ldo_stabilization_time
;
1013 u8 fm_disturbed_band_margin
;
1014 u8 swallow_clk_diff
;
1017 struct conf_rx_streaming_settings
{
1019 * RX Streaming duration (in msec) from last tx/rx
1026 * Bitmap of tids to be polled during RX streaming.
1027 * (Note: it doesn't look like it really matters)
1034 * RX Streaming interval.
1035 * (Note:this value is also used as the rx streaming timeout)
1036 * Range: 0 (disabled), 10 - 100
1041 * enable rx streaming also when there is no coex activity
1046 #define CONF_FWLOG_MIN_MEM_BLOCKS 2
1047 #define CONF_FWLOG_MAX_MEM_BLOCKS 16
1050 /* Continuous or on-demand */
1054 * Number of memory blocks dedicated for the FW logger
1056 * Range: 2-16, or 0 to disable the FW logger
1060 /* Minimum log level threshold */
1063 /* Include/exclude timestamps from the log messages */
1066 /* See enum wl1271_fwlogger_output */
1069 /* Regulates the frequency of log messages */
1073 #define ACX_RATE_MGMT_NUM_OF_RATES 13
1074 struct conf_rate_policy_settings
{
1075 u16 rate_retry_score
;
1080 u8 inverse_curiosity_factor
;
1089 u8 rate_retry_policy
[ACX_RATE_MGMT_NUM_OF_RATES
];
1092 struct conf_hangover_settings
{
1096 u8 early_termination_mode
;
1106 struct conf_recovery_settings
{
1107 /* BUG() on fw recovery */
1110 /* Prevent HW recovery. FW will remain stuck. */
1115 * The conf version consists of 4 bytes. The two MSB are the wlcore
1116 * version, the two LSB are the lower driver's private conf
1119 #define WLCORE_CONF_VERSION (0x0007 << 16)
1120 #define WLCORE_CONF_MASK 0xffff0000
1121 #define WLCORE_CONF_SIZE (sizeof(struct wlcore_conf_header) + \
1122 sizeof(struct wlcore_conf))
1124 struct wlcore_conf_header
{
1130 struct wlcore_conf
{
1131 struct conf_sg_settings sg
;
1132 struct conf_rx_settings rx
;
1133 struct conf_tx_settings tx
;
1134 struct conf_conn_settings conn
;
1135 struct conf_itrim_settings itrim
;
1136 struct conf_pm_config_settings pm_config
;
1137 struct conf_roam_trigger_settings roam_trigger
;
1138 struct conf_scan_settings scan
;
1139 struct conf_sched_scan_settings sched_scan
;
1140 struct conf_ht_setting ht
;
1141 struct conf_memory_settings mem
;
1142 struct conf_fm_coex fm_coex
;
1143 struct conf_rx_streaming_settings rx_streaming
;
1144 struct conf_fwlog fwlog
;
1145 struct conf_rate_policy_settings rate
;
1146 struct conf_hangover_settings hangover
;
1147 struct conf_recovery_settings recovery
;
1150 struct wlcore_conf_file
{
1151 struct wlcore_conf_header header
;
1152 struct wlcore_conf core
;