Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
0002 /*
0003  * Copyright (C) 2012-2014, 2018-2022 Intel Corporation
0004  * Copyright (C) 2016-2017 Intel Deutschland GmbH
0005  */
0006 #ifndef __iwl_fw_api_tx_h__
0007 #define __iwl_fw_api_tx_h__
0008 #include <linux/ieee80211.h>
0009 
0010 /**
0011  * enum iwl_tx_flags - bitmasks for tx_flags in TX command
0012  * @TX_CMD_FLG_PROT_REQUIRE: use RTS or CTS-to-self to protect the frame
0013  * @TX_CMD_FLG_WRITE_TX_POWER: update current tx power value in the mgmt frame
0014  * @TX_CMD_FLG_ACK: expect ACK from receiving station
0015  * @TX_CMD_FLG_STA_RATE: use RS table with initial index from the TX command.
0016  *  Otherwise, use rate_n_flags from the TX command
0017  * @TX_CMD_FLG_BAR: this frame is a BA request, immediate BAR is expected
0018  *  Must set TX_CMD_FLG_ACK with this flag.
0019  * @TX_CMD_FLG_TXOP_PROT: TXOP protection requested
0020  * @TX_CMD_FLG_VHT_NDPA: mark frame is NDPA for VHT beamformer sequence
0021  * @TX_CMD_FLG_HT_NDPA: mark frame is NDPA for HT beamformer sequence
0022  * @TX_CMD_FLG_CSI_FDBK2HOST: mark to send feedback to host (only if good CRC)
0023  * @TX_CMD_FLG_BT_PRIO_MASK: BT priority value
0024  * @TX_CMD_FLG_BT_PRIO_POS: the position of the BT priority (bit 11 is ignored
0025  *  on old firmwares).
0026  * @TX_CMD_FLG_BT_DIS: disable BT priority for this frame
0027  * @TX_CMD_FLG_SEQ_CTL: set if FW should override the sequence control.
0028  *  Should be set for mgmt, non-QOS data, mcast, bcast and in scan command
0029  * @TX_CMD_FLG_MORE_FRAG: this frame is non-last MPDU
0030  * @TX_CMD_FLG_TSF: FW should calculate and insert TSF in the frame
0031  *  Should be set for beacons and probe responses
0032  * @TX_CMD_FLG_CALIB: activate PA TX power calibrations
0033  * @TX_CMD_FLG_KEEP_SEQ_CTL: if seq_ctl is set, don't increase inner seq count
0034  * @TX_CMD_FLG_MH_PAD: driver inserted 2 byte padding after MAC header.
0035  *  Should be set for 26/30 length MAC headers
0036  * @TX_CMD_FLG_RESP_TO_DRV: zero this if the response should go only to FW
0037  * @TX_CMD_FLG_TKIP_MIC_DONE: FW already performed TKIP MIC calculation
0038  * @TX_CMD_FLG_DUR: disable duration overwriting used in PS-Poll Assoc-id
0039  * @TX_CMD_FLG_FW_DROP: FW should mark frame to be dropped
0040  * @TX_CMD_FLG_EXEC_PAPD: execute PAPD
0041  * @TX_CMD_FLG_PAPD_TYPE: 0 for reference power, 1 for nominal power
0042  * @TX_CMD_FLG_HCCA_CHUNK: mark start of TSPEC chunk
0043  */
0044 enum iwl_tx_flags {
0045     TX_CMD_FLG_PROT_REQUIRE     = BIT(0),
0046     TX_CMD_FLG_WRITE_TX_POWER   = BIT(1),
0047     TX_CMD_FLG_ACK          = BIT(3),
0048     TX_CMD_FLG_STA_RATE     = BIT(4),
0049     TX_CMD_FLG_BAR          = BIT(6),
0050     TX_CMD_FLG_TXOP_PROT        = BIT(7),
0051     TX_CMD_FLG_VHT_NDPA     = BIT(8),
0052     TX_CMD_FLG_HT_NDPA      = BIT(9),
0053     TX_CMD_FLG_CSI_FDBK2HOST    = BIT(10),
0054     TX_CMD_FLG_BT_PRIO_POS      = 11,
0055     TX_CMD_FLG_BT_PRIO_MASK     = BIT(11) | BIT(12),
0056     TX_CMD_FLG_BT_DIS       = BIT(12),
0057     TX_CMD_FLG_SEQ_CTL      = BIT(13),
0058     TX_CMD_FLG_MORE_FRAG        = BIT(14),
0059     TX_CMD_FLG_TSF          = BIT(16),
0060     TX_CMD_FLG_CALIB        = BIT(17),
0061     TX_CMD_FLG_KEEP_SEQ_CTL     = BIT(18),
0062     TX_CMD_FLG_MH_PAD       = BIT(20),
0063     TX_CMD_FLG_RESP_TO_DRV      = BIT(21),
0064     TX_CMD_FLG_TKIP_MIC_DONE    = BIT(23),
0065     TX_CMD_FLG_DUR          = BIT(25),
0066     TX_CMD_FLG_FW_DROP      = BIT(26),
0067     TX_CMD_FLG_EXEC_PAPD        = BIT(27),
0068     TX_CMD_FLG_PAPD_TYPE        = BIT(28),
0069     TX_CMD_FLG_HCCA_CHUNK       = BIT(31)
0070 }; /* TX_FLAGS_BITS_API_S_VER_1 */
0071 
0072 /**
0073  * enum iwl_tx_cmd_flags - bitmasks for tx_flags in TX command for 22000
0074  * @IWL_TX_FLAGS_CMD_RATE: use rate from the TX command
0075  * @IWL_TX_FLAGS_ENCRYPT_DIS: frame should not be encrypted, even if it belongs
0076  *  to a secured STA
0077  * @IWL_TX_FLAGS_HIGH_PRI: high priority frame (like EAPOL) - can affect rate
0078  *  selection, retry limits and BT kill
0079  */
0080 enum iwl_tx_cmd_flags {
0081     IWL_TX_FLAGS_CMD_RATE       = BIT(0),
0082     IWL_TX_FLAGS_ENCRYPT_DIS    = BIT(1),
0083     IWL_TX_FLAGS_HIGH_PRI       = BIT(2),
0084     /* Use these flags only from
0085      * TX_FLAGS_BITS_API_S_VER_4 and above */
0086     IWL_TX_FLAGS_RTS        = BIT(3),
0087     IWL_TX_FLAGS_CTS        = BIT(4),
0088 }; /* TX_FLAGS_BITS_API_S_VER_3 */
0089 
0090 /**
0091  * enum iwl_tx_pm_timeouts - pm timeout values in TX command
0092  * @PM_FRAME_NONE: no need to suspend sleep mode
0093  * @PM_FRAME_MGMT: fw suspend sleep mode for 100TU
0094  * @PM_FRAME_ASSOC: fw suspend sleep mode for 10sec
0095  */
0096 enum iwl_tx_pm_timeouts {
0097     PM_FRAME_NONE       = 0,
0098     PM_FRAME_MGMT       = 2,
0099     PM_FRAME_ASSOC      = 3,
0100 };
0101 
0102 #define TX_CMD_SEC_MSK          0x07
0103 #define TX_CMD_SEC_WEP_KEY_IDX_POS  6
0104 #define TX_CMD_SEC_WEP_KEY_IDX_MSK  0xc0
0105 
0106 /**
0107  * enum iwl_tx_cmd_sec_ctrl - bitmasks for security control in TX command
0108  * @TX_CMD_SEC_WEP: WEP encryption algorithm.
0109  * @TX_CMD_SEC_CCM: CCM encryption algorithm.
0110  * @TX_CMD_SEC_TKIP: TKIP encryption algorithm.
0111  * @TX_CMD_SEC_EXT: extended cipher algorithm.
0112  * @TX_CMD_SEC_GCMP: GCMP encryption algorithm.
0113  * @TX_CMD_SEC_KEY128: set for 104 bits WEP key.
0114  * @TX_CMD_SEC_KEY_FROM_TABLE: for a non-WEP key, set if the key should be taken
0115  *  from the table instead of from the TX command.
0116  *  If the key is taken from the key table its index should be given by the
0117  *  first byte of the TX command key field.
0118  */
0119 enum iwl_tx_cmd_sec_ctrl {
0120     TX_CMD_SEC_WEP          = 0x01,
0121     TX_CMD_SEC_CCM          = 0x02,
0122     TX_CMD_SEC_TKIP         = 0x03,
0123     TX_CMD_SEC_EXT          = 0x04,
0124     TX_CMD_SEC_GCMP         = 0x05,
0125     TX_CMD_SEC_KEY128       = 0x08,
0126     TX_CMD_SEC_KEY_FROM_TABLE   = 0x10,
0127 };
0128 
0129 /*
0130  * TX command Frame life time in us - to be written in pm_frame_timeout
0131  */
0132 #define TX_CMD_LIFE_TIME_INFINITE   0xFFFFFFFF
0133 #define TX_CMD_LIFE_TIME_DEFAULT    2000000 /* 2000 ms*/
0134 #define TX_CMD_LIFE_TIME_PROBE_RESP 40000 /* 40 ms */
0135 #define TX_CMD_LIFE_TIME_EXPIRED_FRAME  0
0136 
0137 /*
0138  * TID for non QoS frames - to be written in tid_tspec
0139  */
0140 #define IWL_TID_NON_QOS 0
0141 
0142 /*
0143  * Limits on the retransmissions - to be written in {data,rts}_retry_limit
0144  */
0145 #define IWL_DEFAULT_TX_RETRY            15
0146 #define IWL_MGMT_DFAULT_RETRY_LIMIT     3
0147 #define IWL_RTS_DFAULT_RETRY_LIMIT      60
0148 #define IWL_BAR_DFAULT_RETRY_LIMIT      60
0149 #define IWL_LOW_RETRY_LIMIT         7
0150 
0151 /**
0152  * enum iwl_tx_offload_assist_flags_pos -  set %iwl_tx_cmd offload_assist values
0153  * @TX_CMD_OFFLD_IP_HDR: offset to start of IP header (in words)
0154  *  from mac header end. For normal case it is 4 words for SNAP.
0155  *  note: tx_cmd, mac header and pad are not counted in the offset.
0156  *  This is used to help the offload in case there is tunneling such as
0157  *  IPv6 in IPv4, in such case the ip header offset should point to the
0158  *  inner ip header and IPv4 checksum of the external header should be
0159  *  calculated by driver.
0160  * @TX_CMD_OFFLD_L4_EN: enable TCP/UDP checksum
0161  * @TX_CMD_OFFLD_L3_EN: enable IP header checksum
0162  * @TX_CMD_OFFLD_MH_SIZE: size of the mac header in words. Includes the IV
0163  *  field. Doesn't include the pad.
0164  * @TX_CMD_OFFLD_PAD: mark 2-byte pad was inserted after the mac header for
0165  *  alignment
0166  * @TX_CMD_OFFLD_AMSDU: mark TX command is A-MSDU
0167  */
0168 enum iwl_tx_offload_assist_flags_pos {
0169     TX_CMD_OFFLD_IP_HDR =       0,
0170     TX_CMD_OFFLD_L4_EN =        6,
0171     TX_CMD_OFFLD_L3_EN =        7,
0172     TX_CMD_OFFLD_MH_SIZE =      8,
0173     TX_CMD_OFFLD_PAD =      13,
0174     TX_CMD_OFFLD_AMSDU =        14,
0175 };
0176 
0177 #define IWL_TX_CMD_OFFLD_MH_MASK    0x1f
0178 #define IWL_TX_CMD_OFFLD_IP_HDR_MASK    0x3f
0179 
0180 enum iwl_tx_offload_assist_bz {
0181     IWL_TX_CMD_OFFLD_BZ_RESULT_OFFS     = 0x000003ff,
0182     IWL_TX_CMD_OFFLD_BZ_START_OFFS      = 0x001ff800,
0183     IWL_TX_CMD_OFFLD_BZ_MH_LEN      = 0x07c00000,
0184     IWL_TX_CMD_OFFLD_BZ_MH_PAD      = 0x08000000,
0185     IWL_TX_CMD_OFFLD_BZ_AMSDU       = 0x10000000,
0186     IWL_TX_CMD_OFFLD_BZ_ZERO2ONES       = 0x20000000,
0187     IWL_TX_CMD_OFFLD_BZ_ENABLE_CSUM     = 0x40000000,
0188     IWL_TX_CMD_OFFLD_BZ_PARTIAL_CSUM    = 0x80000000,
0189 };
0190 
0191 /* TODO: complete documentation for try_cnt and btkill_cnt */
0192 /**
0193  * struct iwl_tx_cmd - TX command struct to FW
0194  * ( TX_CMD = 0x1c )
0195  * @len: in bytes of the payload, see below for details
0196  * @offload_assist: TX offload configuration
0197  * @tx_flags: combination of TX_CMD_FLG_*, see &enum iwl_tx_flags
0198  * @scratch: scratch buffer used by the device
0199  * @rate_n_flags: rate for *all* Tx attempts, if TX_CMD_FLG_STA_RATE_MSK is
0200  *  cleared. Combination of RATE_MCS_*
0201  * @sta_id: index of destination station in FW station table
0202  * @sec_ctl: security control, TX_CMD_SEC_*
0203  * @initial_rate_index: index into the the rate table for initial TX attempt.
0204  *  Applied if TX_CMD_FLG_STA_RATE_MSK is set, normally 0 for data frames.
0205  * @reserved2: reserved
0206  * @key: security key
0207  * @reserved3: reserved
0208  * @life_time: frame life time (usecs??)
0209  * @dram_lsb_ptr: Physical address of scratch area in the command (try_cnt +
0210  *  btkill_cnd + reserved), first 32 bits. "0" disables usage.
0211  * @dram_msb_ptr: upper bits of the scratch physical address
0212  * @rts_retry_limit: max attempts for RTS
0213  * @data_retry_limit: max attempts to send the data packet
0214  * @tid_tspec: TID/tspec
0215  * @pm_frame_timeout: PM TX frame timeout
0216  * @reserved4: reserved
0217  * @payload: payload (same as @hdr)
0218  * @hdr: 802.11 header (same as @payload)
0219  *
0220  * The byte count (both len and next_frame_len) includes MAC header
0221  * (24/26/30/32 bytes)
0222  * + 2 bytes pad if 26/30 header size
0223  * + 8 byte IV for CCM or TKIP (not used for WEP)
0224  * + Data payload
0225  * + 8-byte MIC (not used for CCM/WEP)
0226  * It does not include post-MAC padding, i.e.,
0227  * MIC (CCM) 8 bytes, ICV (WEP/TKIP/CKIP) 4 bytes, CRC 4 bytes.
0228  * Range of len: 14-2342 bytes.
0229  *
0230  * After the struct fields the MAC header is placed, plus any padding,
0231  * and then the actial payload.
0232  */
0233 struct iwl_tx_cmd {
0234     __le16 len;
0235     __le16 offload_assist;
0236     __le32 tx_flags;
0237     struct {
0238         u8 try_cnt;
0239         u8 btkill_cnt;
0240         __le16 reserved;
0241     } scratch; /* DRAM_SCRATCH_API_U_VER_1 */
0242     __le32 rate_n_flags;
0243     u8 sta_id;
0244     u8 sec_ctl;
0245     u8 initial_rate_index;
0246     u8 reserved2;
0247     u8 key[16];
0248     __le32 reserved3;
0249     __le32 life_time;
0250     __le32 dram_lsb_ptr;
0251     u8 dram_msb_ptr;
0252     u8 rts_retry_limit;
0253     u8 data_retry_limit;
0254     u8 tid_tspec;
0255     __le16 pm_frame_timeout;
0256     __le16 reserved4;
0257     union {
0258         DECLARE_FLEX_ARRAY(u8, payload);
0259         DECLARE_FLEX_ARRAY(struct ieee80211_hdr, hdr);
0260     };
0261 } __packed; /* TX_CMD_API_S_VER_6 */
0262 
0263 struct iwl_dram_sec_info {
0264     __le32 pn_low;
0265     __le16 pn_high;
0266     __le16 aux_info;
0267 } __packed; /* DRAM_SEC_INFO_API_S_VER_1 */
0268 
0269 /**
0270  * struct iwl_tx_cmd_gen2 - TX command struct to FW for 22000 devices
0271  * ( TX_CMD = 0x1c )
0272  * @len: in bytes of the payload, see below for details
0273  * @offload_assist: TX offload configuration
0274  * @flags: combination of &enum iwl_tx_cmd_flags
0275  * @dram_info: FW internal DRAM storage
0276  * @rate_n_flags: rate for *all* Tx attempts, if TX_CMD_FLG_STA_RATE_MSK is
0277  *  cleared. Combination of RATE_MCS_*
0278  * @hdr: 802.11 header
0279  */
0280 struct iwl_tx_cmd_gen2 {
0281     __le16 len;
0282     __le16 offload_assist;
0283     __le32 flags;
0284     struct iwl_dram_sec_info dram_info;
0285     __le32 rate_n_flags;
0286     struct ieee80211_hdr hdr[];
0287 } __packed; /* TX_CMD_API_S_VER_7,
0288            TX_CMD_API_S_VER_9 */
0289 
0290 /**
0291  * struct iwl_tx_cmd_gen3 - TX command struct to FW for AX210+ devices
0292  * ( TX_CMD = 0x1c )
0293  * @len: in bytes of the payload, see below for details
0294  * @flags: combination of &enum iwl_tx_cmd_flags
0295  * @offload_assist: TX offload configuration
0296  * @dram_info: FW internal DRAM storage
0297  * @rate_n_flags: rate for *all* Tx attempts, if TX_CMD_FLG_STA_RATE_MSK is
0298  *  cleared. Combination of RATE_MCS_*
0299  * @reserved: reserved
0300  * @hdr: 802.11 header
0301  */
0302 struct iwl_tx_cmd_gen3 {
0303     __le16 len;
0304     __le16 flags;
0305     __le32 offload_assist;
0306     struct iwl_dram_sec_info dram_info;
0307     __le32 rate_n_flags;
0308     u8 reserved[8];
0309     struct ieee80211_hdr hdr[];
0310 } __packed; /* TX_CMD_API_S_VER_8,
0311            TX_CMD_API_S_VER_10 */
0312 
0313 /*
0314  * TX response related data
0315  */
0316 
0317 /*
0318  * enum iwl_tx_status - status that is returned by the fw after attempts to Tx
0319  * @TX_STATUS_SUCCESS:
0320  * @TX_STATUS_DIRECT_DONE:
0321  * @TX_STATUS_POSTPONE_DELAY:
0322  * @TX_STATUS_POSTPONE_FEW_BYTES:
0323  * @TX_STATUS_POSTPONE_BT_PRIO:
0324  * @TX_STATUS_POSTPONE_QUIET_PERIOD:
0325  * @TX_STATUS_POSTPONE_CALC_TTAK:
0326  * @TX_STATUS_FAIL_INTERNAL_CROSSED_RETRY:
0327  * @TX_STATUS_FAIL_SHORT_LIMIT:
0328  * @TX_STATUS_FAIL_LONG_LIMIT:
0329  * @TX_STATUS_FAIL_UNDERRUN:
0330  * @TX_STATUS_FAIL_DRAIN_FLOW:
0331  * @TX_STATUS_FAIL_RFKILL_FLUSH:
0332  * @TX_STATUS_FAIL_LIFE_EXPIRE:
0333  * @TX_STATUS_FAIL_DEST_PS:
0334  * @TX_STATUS_FAIL_HOST_ABORTED:
0335  * @TX_STATUS_FAIL_BT_RETRY:
0336  * @TX_STATUS_FAIL_STA_INVALID:
0337  * @TX_TATUS_FAIL_FRAG_DROPPED:
0338  * @TX_STATUS_FAIL_TID_DISABLE:
0339  * @TX_STATUS_FAIL_FIFO_FLUSHED:
0340  * @TX_STATUS_FAIL_SMALL_CF_POLL:
0341  * @TX_STATUS_FAIL_FW_DROP:
0342  * @TX_STATUS_FAIL_STA_COLOR_MISMATCH: mismatch between color of Tx cmd and
0343  *  STA table
0344  * @TX_FRAME_STATUS_INTERNAL_ABORT:
0345  * @TX_MODE_MSK:
0346  * @TX_MODE_NO_BURST:
0347  * @TX_MODE_IN_BURST_SEQ:
0348  * @TX_MODE_FIRST_IN_BURST:
0349  * @TX_QUEUE_NUM_MSK:
0350  *
0351  * Valid only if frame_count =1
0352  * TODO: complete documentation
0353  */
0354 enum iwl_tx_status {
0355     TX_STATUS_MSK = 0x000000ff,
0356     TX_STATUS_SUCCESS = 0x01,
0357     TX_STATUS_DIRECT_DONE = 0x02,
0358     /* postpone TX */
0359     TX_STATUS_POSTPONE_DELAY = 0x40,
0360     TX_STATUS_POSTPONE_FEW_BYTES = 0x41,
0361     TX_STATUS_POSTPONE_BT_PRIO = 0x42,
0362     TX_STATUS_POSTPONE_QUIET_PERIOD = 0x43,
0363     TX_STATUS_POSTPONE_CALC_TTAK = 0x44,
0364     /* abort TX */
0365     TX_STATUS_FAIL_INTERNAL_CROSSED_RETRY = 0x81,
0366     TX_STATUS_FAIL_SHORT_LIMIT = 0x82,
0367     TX_STATUS_FAIL_LONG_LIMIT = 0x83,
0368     TX_STATUS_FAIL_UNDERRUN = 0x84,
0369     TX_STATUS_FAIL_DRAIN_FLOW = 0x85,
0370     TX_STATUS_FAIL_RFKILL_FLUSH = 0x86,
0371     TX_STATUS_FAIL_LIFE_EXPIRE = 0x87,
0372     TX_STATUS_FAIL_DEST_PS = 0x88,
0373     TX_STATUS_FAIL_HOST_ABORTED = 0x89,
0374     TX_STATUS_FAIL_BT_RETRY = 0x8a,
0375     TX_STATUS_FAIL_STA_INVALID = 0x8b,
0376     TX_STATUS_FAIL_FRAG_DROPPED = 0x8c,
0377     TX_STATUS_FAIL_TID_DISABLE = 0x8d,
0378     TX_STATUS_FAIL_FIFO_FLUSHED = 0x8e,
0379     TX_STATUS_FAIL_SMALL_CF_POLL = 0x8f,
0380     TX_STATUS_FAIL_FW_DROP = 0x90,
0381     TX_STATUS_FAIL_STA_COLOR_MISMATCH = 0x91,
0382     TX_STATUS_INTERNAL_ABORT = 0x92,
0383     TX_MODE_MSK = 0x00000f00,
0384     TX_MODE_NO_BURST = 0x00000000,
0385     TX_MODE_IN_BURST_SEQ = 0x00000100,
0386     TX_MODE_FIRST_IN_BURST = 0x00000200,
0387     TX_QUEUE_NUM_MSK = 0x0001f000,
0388     TX_NARROW_BW_MSK = 0x00060000,
0389     TX_NARROW_BW_1DIV2 = 0x00020000,
0390     TX_NARROW_BW_1DIV4 = 0x00040000,
0391     TX_NARROW_BW_1DIV8 = 0x00060000,
0392 };
0393 
0394 /*
0395  * enum iwl_tx_agg_status - TX aggregation status
0396  * @AGG_TX_STATE_STATUS_MSK:
0397  * @AGG_TX_STATE_TRANSMITTED:
0398  * @AGG_TX_STATE_UNDERRUN:
0399  * @AGG_TX_STATE_BT_PRIO:
0400  * @AGG_TX_STATE_FEW_BYTES:
0401  * @AGG_TX_STATE_ABORT:
0402  * @AGG_TX_STATE_TX_ON_AIR_DROP: TX_ON_AIR signal drop without underrun or
0403  *  BT detection
0404  * @AGG_TX_STATE_LAST_SENT_TRY_CNT:
0405  * @AGG_TX_STATE_LAST_SENT_BT_KILL:
0406  * @AGG_TX_STATE_SCD_QUERY:
0407  * @AGG_TX_STATE_TEST_BAD_CRC32:
0408  * @AGG_TX_STATE_RESPONSE:
0409  * @AGG_TX_STATE_DUMP_TX:
0410  * @AGG_TX_STATE_DELAY_TX:
0411  * @AGG_TX_STATE_TRY_CNT_MSK: Retry count for 1st frame in aggregation (retries
0412  *  occur if tx failed for this frame when it was a member of a previous
0413  *  aggregation block). If rate scaling is used, retry count indicates the
0414  *  rate table entry used for all frames in the new agg.
0415  * @AGG_TX_STATE_SEQ_NUM_MSK: Command ID and sequence number of Tx command for
0416  *  this frame
0417  *
0418  * TODO: complete documentation
0419  */
0420 enum iwl_tx_agg_status {
0421     AGG_TX_STATE_STATUS_MSK = 0x00fff,
0422     AGG_TX_STATE_TRANSMITTED = 0x000,
0423     AGG_TX_STATE_UNDERRUN = 0x001,
0424     AGG_TX_STATE_BT_PRIO = 0x002,
0425     AGG_TX_STATE_FEW_BYTES = 0x004,
0426     AGG_TX_STATE_ABORT = 0x008,
0427     AGG_TX_STATE_TX_ON_AIR_DROP = 0x010,
0428     AGG_TX_STATE_LAST_SENT_TRY_CNT = 0x020,
0429     AGG_TX_STATE_LAST_SENT_BT_KILL = 0x040,
0430     AGG_TX_STATE_SCD_QUERY = 0x080,
0431     AGG_TX_STATE_TEST_BAD_CRC32 = 0x0100,
0432     AGG_TX_STATE_RESPONSE = 0x1ff,
0433     AGG_TX_STATE_DUMP_TX = 0x200,
0434     AGG_TX_STATE_DELAY_TX = 0x400,
0435     AGG_TX_STATE_TRY_CNT_POS = 12,
0436     AGG_TX_STATE_TRY_CNT_MSK = 0xf << AGG_TX_STATE_TRY_CNT_POS,
0437 };
0438 
0439 /*
0440  * The mask below describes a status where we are absolutely sure that the MPDU
0441  * wasn't sent. For BA/Underrun we cannot be that sure. All we know that we've
0442  * written the bytes to the TXE, but we know nothing about what the DSP did.
0443  */
0444 #define AGG_TX_STAT_FRAME_NOT_SENT (AGG_TX_STATE_FEW_BYTES | \
0445                     AGG_TX_STATE_ABORT | \
0446                     AGG_TX_STATE_SCD_QUERY)
0447 
0448 /*
0449  * REPLY_TX = 0x1c (response)
0450  *
0451  * This response may be in one of two slightly different formats, indicated
0452  * by the frame_count field:
0453  *
0454  * 1)   No aggregation (frame_count == 1).  This reports Tx results for a single
0455  *  frame. Multiple attempts, at various bit rates, may have been made for
0456  *  this frame.
0457  *
0458  * 2)   Aggregation (frame_count > 1).  This reports Tx results for two or more
0459  *  frames that used block-acknowledge.  All frames were transmitted at
0460  *  same rate. Rate scaling may have been used if first frame in this new
0461  *  agg block failed in previous agg block(s).
0462  *
0463  *  Note that, for aggregation, ACK (block-ack) status is not delivered
0464  *  here; block-ack has not been received by the time the device records
0465  *  this status.
0466  *  This status relates to reasons the tx might have been blocked or aborted
0467  *  within the device, rather than whether it was received successfully by
0468  *  the destination station.
0469  */
0470 
0471 /**
0472  * struct agg_tx_status - per packet TX aggregation status
0473  * @status: See &enum iwl_tx_agg_status
0474  * @sequence: Sequence # for this frame's Tx cmd (not SSN!)
0475  */
0476 struct agg_tx_status {
0477     __le16 status;
0478     __le16 sequence;
0479 } __packed;
0480 
0481 /*
0482  * definitions for initial rate index field
0483  * bits [3:0] initial rate index
0484  * bits [6:4] rate table color, used for the initial rate
0485  * bit-7 invalid rate indication
0486  */
0487 #define TX_RES_INIT_RATE_INDEX_MSK 0x0f
0488 #define TX_RES_RATE_TABLE_COLOR_POS 4
0489 #define TX_RES_RATE_TABLE_COLOR_MSK 0x70
0490 #define TX_RES_INV_RATE_INDEX_MSK 0x80
0491 #define TX_RES_RATE_TABLE_COL_GET(_f) (((_f) & TX_RES_RATE_TABLE_COLOR_MSK) >>\
0492                        TX_RES_RATE_TABLE_COLOR_POS)
0493 
0494 #define IWL_MVM_TX_RES_GET_TID(_ra_tid) ((_ra_tid) & 0x0f)
0495 #define IWL_MVM_TX_RES_GET_RA(_ra_tid) ((_ra_tid) >> 4)
0496 
0497 /**
0498  * struct iwl_mvm_tx_resp_v3 - notifies that fw is TXing a packet
0499  * ( REPLY_TX = 0x1c )
0500  * @frame_count: 1 no aggregation, >1 aggregation
0501  * @bt_kill_count: num of times blocked by bluetooth (unused for agg)
0502  * @failure_rts: num of failures due to unsuccessful RTS
0503  * @failure_frame: num failures due to no ACK (unused for agg)
0504  * @initial_rate: for non-agg: rate of the successful Tx. For agg: rate of the
0505  *  Tx of all the batch. RATE_MCS_*
0506  * @wireless_media_time: for non-agg: RTS + CTS + frame tx attempts time + ACK.
0507  *  for agg: RTS + CTS + aggregation tx time + block-ack time.
0508  *  in usec.
0509  * @pa_status: tx power info
0510  * @pa_integ_res_a: tx power info
0511  * @pa_integ_res_b: tx power info
0512  * @pa_integ_res_c: tx power info
0513  * @measurement_req_id: tx power info
0514  * @reduced_tpc: transmit power reduction used
0515  * @reserved: reserved
0516  * @tfd_info: TFD information set by the FH
0517  * @seq_ctl: sequence control from the Tx cmd
0518  * @byte_cnt: byte count from the Tx cmd
0519  * @tlc_info: TLC rate info
0520  * @ra_tid: bits [3:0] = ra, bits [7:4] = tid
0521  * @frame_ctrl: frame control
0522  * @status: for non-agg:  frame status TX_STATUS_*
0523  *  for agg: status of 1st frame, AGG_TX_STATE_*; other frame status fields
0524  *  follow this one, up to frame_count. Length in @frame_count.
0525  *
0526  * After the array of statuses comes the SSN of the SCD. Look at
0527  * %iwl_mvm_get_scd_ssn for more details.
0528  */
0529 struct iwl_mvm_tx_resp_v3 {
0530     u8 frame_count;
0531     u8 bt_kill_count;
0532     u8 failure_rts;
0533     u8 failure_frame;
0534     __le32 initial_rate;
0535     __le16 wireless_media_time;
0536 
0537     u8 pa_status;
0538     u8 pa_integ_res_a[3];
0539     u8 pa_integ_res_b[3];
0540     u8 pa_integ_res_c[3];
0541     __le16 measurement_req_id;
0542     u8 reduced_tpc;
0543     u8 reserved;
0544 
0545     __le32 tfd_info;
0546     __le16 seq_ctl;
0547     __le16 byte_cnt;
0548     u8 tlc_info;
0549     u8 ra_tid;
0550     __le16 frame_ctrl;
0551     struct agg_tx_status status[];
0552 } __packed; /* TX_RSP_API_S_VER_3 */
0553 
0554 /**
0555  * struct iwl_mvm_tx_resp - notifies that fw is TXing a packet
0556  * ( REPLY_TX = 0x1c )
0557  * @frame_count: 1 no aggregation, >1 aggregation
0558  * @bt_kill_count: num of times blocked by bluetooth (unused for agg)
0559  * @failure_rts: num of failures due to unsuccessful RTS
0560  * @failure_frame: num failures due to no ACK (unused for agg)
0561  * @initial_rate: for non-agg: rate of the successful Tx. For agg: rate of the
0562  *  Tx of all the batch. RATE_MCS_*
0563  * @wireless_media_time: for non-agg: RTS + CTS + frame tx attempts time + ACK.
0564  *  for agg: RTS + CTS + aggregation tx time + block-ack time.
0565  *  in usec.
0566  * @pa_status: tx power info
0567  * @pa_integ_res_a: tx power info
0568  * @pa_integ_res_b: tx power info
0569  * @pa_integ_res_c: tx power info
0570  * @measurement_req_id: tx power info
0571  * @reduced_tpc: transmit power reduction used
0572  * @reserved: reserved
0573  * @tfd_info: TFD information set by the FH
0574  * @seq_ctl: sequence control from the Tx cmd
0575  * @byte_cnt: byte count from the Tx cmd
0576  * @tlc_info: TLC rate info
0577  * @ra_tid: bits [3:0] = ra, bits [7:4] = tid
0578  * @frame_ctrl: frame control
0579  * @tx_queue: TX queue for this response
0580  * @reserved2: reserved for padding/alignment
0581  * @status: for non-agg:  frame status TX_STATUS_*
0582  *  For version 6 TX response isn't received for aggregation at all.
0583  *
0584  * After the array of statuses comes the SSN of the SCD. Look at
0585  * %iwl_mvm_get_scd_ssn for more details.
0586  */
0587 struct iwl_mvm_tx_resp {
0588     u8 frame_count;
0589     u8 bt_kill_count;
0590     u8 failure_rts;
0591     u8 failure_frame;
0592     __le32 initial_rate;
0593     __le16 wireless_media_time;
0594 
0595     u8 pa_status;
0596     u8 pa_integ_res_a[3];
0597     u8 pa_integ_res_b[3];
0598     u8 pa_integ_res_c[3];
0599     __le16 measurement_req_id;
0600     u8 reduced_tpc;
0601     u8 reserved;
0602 
0603     __le32 tfd_info;
0604     __le16 seq_ctl;
0605     __le16 byte_cnt;
0606     u8 tlc_info;
0607     u8 ra_tid;
0608     __le16 frame_ctrl;
0609     __le16 tx_queue;
0610     __le16 reserved2;
0611     struct agg_tx_status status;
0612 } __packed; /* TX_RSP_API_S_VER_6,
0613            TX_RSP_API_S_VER_7 */
0614 
0615 /**
0616  * struct iwl_mvm_ba_notif - notifies about reception of BA
0617  * ( BA_NOTIF = 0xc5 )
0618  * @sta_addr: MAC address
0619  * @reserved: reserved
0620  * @sta_id: Index of recipient (BA-sending) station in fw's station table
0621  * @tid: tid of the session
0622  * @seq_ctl: sequence control field
0623  * @bitmap: the bitmap of the BA notification as seen in the air
0624  * @scd_flow: the tx queue this BA relates to
0625  * @scd_ssn: the index of the last contiguously sent packet
0626  * @txed: number of Txed frames in this batch
0627  * @txed_2_done: number of Acked frames in this batch
0628  * @reduced_txp: power reduced according to TPC. This is the actual value and
0629  *  not a copy from the LQ command. Thus, if not the first rate was used
0630  *  for Tx-ing then this value will be set to 0 by FW.
0631  * @reserved1: reserved
0632  */
0633 struct iwl_mvm_ba_notif {
0634     u8 sta_addr[ETH_ALEN];
0635     __le16 reserved;
0636 
0637     u8 sta_id;
0638     u8 tid;
0639     __le16 seq_ctl;
0640     __le64 bitmap;
0641     __le16 scd_flow;
0642     __le16 scd_ssn;
0643     u8 txed;
0644     u8 txed_2_done;
0645     u8 reduced_txp;
0646     u8 reserved1;
0647 } __packed;
0648 
0649 /**
0650  * struct iwl_mvm_compressed_ba_tfd - progress of a TFD queue
0651  * @q_num: TFD queue number
0652  * @tfd_index: Index of first un-acked frame in the  TFD queue
0653  * @scd_queue: For debug only - the physical queue the TFD queue is bound to
0654  * @tid: TID of the queue (0-7)
0655  * @reserved: reserved for alignment
0656  */
0657 struct iwl_mvm_compressed_ba_tfd {
0658     __le16 q_num;
0659     __le16 tfd_index;
0660     u8 scd_queue;
0661     u8 tid;
0662     u8 reserved[2];
0663 } __packed; /* COMPRESSED_BA_TFD_API_S_VER_1 */
0664 
0665 /**
0666  * struct iwl_mvm_compressed_ba_ratid - progress of a RA TID queue
0667  * @q_num: RA TID queue number
0668  * @tid: TID of the queue
0669  * @ssn: BA window current SSN
0670  */
0671 struct iwl_mvm_compressed_ba_ratid {
0672     u8 q_num;
0673     u8 tid;
0674     __le16 ssn;
0675 } __packed; /* COMPRESSED_BA_RATID_API_S_VER_1 */
0676 
0677 /*
0678  * enum iwl_mvm_ba_resp_flags - TX aggregation status
0679  * @IWL_MVM_BA_RESP_TX_AGG: generated due to BA
0680  * @IWL_MVM_BA_RESP_TX_BAR: generated due to BA after BAR
0681  * @IWL_MVM_BA_RESP_TX_AGG_FAIL: aggregation didn't receive BA
0682  * @IWL_MVM_BA_RESP_TX_UNDERRUN: aggregation got underrun
0683  * @IWL_MVM_BA_RESP_TX_BT_KILL: aggregation got BT-kill
0684  * @IWL_MVM_BA_RESP_TX_DSP_TIMEOUT: aggregation didn't finish within the
0685  *  expected time
0686  */
0687 enum iwl_mvm_ba_resp_flags {
0688     IWL_MVM_BA_RESP_TX_AGG,
0689     IWL_MVM_BA_RESP_TX_BAR,
0690     IWL_MVM_BA_RESP_TX_AGG_FAIL,
0691     IWL_MVM_BA_RESP_TX_UNDERRUN,
0692     IWL_MVM_BA_RESP_TX_BT_KILL,
0693     IWL_MVM_BA_RESP_TX_DSP_TIMEOUT
0694 };
0695 
0696 /**
0697  * struct iwl_mvm_compressed_ba_notif - notifies about reception of BA
0698  * ( BA_NOTIF = 0xc5 )
0699  * @flags: status flag, see the &iwl_mvm_ba_resp_flags
0700  * @sta_id: Index of recipient (BA-sending) station in fw's station table
0701  * @reduced_txp: power reduced according to TPC. This is the actual value and
0702  *  not a copy from the LQ command. Thus, if not the first rate was used
0703  *  for Tx-ing then this value will be set to 0 by FW.
0704  * @tlc_rate_info: TLC rate info, initial rate index, TLC table color
0705  * @retry_cnt: retry count
0706  * @query_byte_cnt: SCD query byte count
0707  * @query_frame_cnt: SCD query frame count
0708  * @txed: number of frames sent in the aggregation (all-TIDs)
0709  * @done: number of frames that were Acked by the BA (all-TIDs)
0710  * @reserved: reserved (for alignment)
0711  * @wireless_time: Wireless-media time
0712  * @tx_rate: the rate the aggregation was sent at
0713  * @tfd_cnt: number of TFD-Q elements
0714  * @ra_tid_cnt: number of RATID-Q elements
0715  * @tfd: array of TFD queue status updates. See &iwl_mvm_compressed_ba_tfd
0716  *  for details. Length in @tfd_cnt.
0717  * @ra_tid: array of RA-TID queue status updates. For debug purposes only. See
0718  *  &iwl_mvm_compressed_ba_ratid for more details. Length in @ra_tid_cnt.
0719  */
0720 struct iwl_mvm_compressed_ba_notif {
0721     __le32 flags;
0722     u8 sta_id;
0723     u8 reduced_txp;
0724     u8 tlc_rate_info;
0725     u8 retry_cnt;
0726     __le32 query_byte_cnt;
0727     __le16 query_frame_cnt;
0728     __le16 txed;
0729     __le16 done;
0730     __le16 reserved;
0731     __le32 wireless_time;
0732     __le32 tx_rate;
0733     __le16 tfd_cnt;
0734     __le16 ra_tid_cnt;
0735     union {
0736         DECLARE_FLEX_ARRAY(struct iwl_mvm_compressed_ba_ratid, ra_tid);
0737         DECLARE_FLEX_ARRAY(struct iwl_mvm_compressed_ba_tfd, tfd);
0738     };
0739 } __packed; /* COMPRESSED_BA_RES_API_S_VER_4,
0740            COMPRESSED_BA_RES_API_S_VER_5 */
0741 
0742 /**
0743  * struct iwl_mac_beacon_cmd_v6 - beacon template command
0744  * @tx: the tx commands associated with the beacon frame
0745  * @template_id: currently equal to the mac context id of the coresponding
0746  *  mac.
0747  * @tim_idx: the offset of the tim IE in the beacon
0748  * @tim_size: the length of the tim IE
0749  * @frame: the template of the beacon frame
0750  */
0751 struct iwl_mac_beacon_cmd_v6 {
0752     struct iwl_tx_cmd tx;
0753     __le32 template_id;
0754     __le32 tim_idx;
0755     __le32 tim_size;
0756     struct ieee80211_hdr frame[];
0757 } __packed; /* BEACON_TEMPLATE_CMD_API_S_VER_6 */
0758 
0759 /**
0760  * struct iwl_mac_beacon_cmd_v7 - beacon template command with offloaded CSA
0761  * @tx: the tx commands associated with the beacon frame
0762  * @template_id: currently equal to the mac context id of the coresponding
0763  *  mac.
0764  * @tim_idx: the offset of the tim IE in the beacon
0765  * @tim_size: the length of the tim IE
0766  * @ecsa_offset: offset to the ECSA IE if present
0767  * @csa_offset: offset to the CSA IE if present
0768  * @frame: the template of the beacon frame
0769  */
0770 struct iwl_mac_beacon_cmd_v7 {
0771     struct iwl_tx_cmd tx;
0772     __le32 template_id;
0773     __le32 tim_idx;
0774     __le32 tim_size;
0775     __le32 ecsa_offset;
0776     __le32 csa_offset;
0777     struct ieee80211_hdr frame[];
0778 } __packed; /* BEACON_TEMPLATE_CMD_API_S_VER_7 */
0779 
0780 /* Bit flags for BEACON_TEMPLATE_CMD_API until version 10 */
0781 enum iwl_mac_beacon_flags_v1 {
0782     IWL_MAC_BEACON_CCK_V1   = BIT(8),
0783     IWL_MAC_BEACON_ANT_A_V1 = BIT(9),
0784     IWL_MAC_BEACON_ANT_B_V1 = BIT(10),
0785     IWL_MAC_BEACON_FILS_V1  = BIT(12),
0786 };
0787 
0788 /* Bit flags for BEACON_TEMPLATE_CMD_API version 11 and above */
0789 enum iwl_mac_beacon_flags {
0790     IWL_MAC_BEACON_CCK  = BIT(5),
0791     IWL_MAC_BEACON_ANT_A    = BIT(6),
0792     IWL_MAC_BEACON_ANT_B    = BIT(7),
0793     IWL_MAC_BEACON_FILS = BIT(8),
0794 };
0795 
0796 /**
0797  * struct iwl_mac_beacon_cmd - beacon template command with offloaded CSA
0798  * @byte_cnt: byte count of the beacon frame.
0799  * @flags: least significant byte for rate code. The most significant byte
0800  *  is &enum iwl_mac_beacon_flags.
0801  * @short_ssid: Short SSID
0802  * @reserved: reserved
0803  * @template_id: currently equal to the mac context id of the coresponding mac.
0804  * @tim_idx: the offset of the tim IE in the beacon
0805  * @tim_size: the length of the tim IE
0806  * @ecsa_offset: offset to the ECSA IE if present
0807  * @csa_offset: offset to the CSA IE if present
0808  * @frame: the template of the beacon frame
0809  */
0810 struct iwl_mac_beacon_cmd {
0811     __le16 byte_cnt;
0812     __le16 flags;
0813     __le32 short_ssid;
0814     __le32 reserved;
0815     __le32 template_id;
0816     __le32 tim_idx;
0817     __le32 tim_size;
0818     __le32 ecsa_offset;
0819     __le32 csa_offset;
0820     struct ieee80211_hdr frame[];
0821 } __packed; /* BEACON_TEMPLATE_CMD_API_S_VER_10,
0822            BEACON_TEMPLATE_CMD_API_S_VER_11,
0823            BEACON_TEMPLATE_CMD_API_S_VER_12 */
0824 
0825 struct iwl_beacon_notif {
0826     struct iwl_mvm_tx_resp beacon_notify_hdr;
0827     __le64 tsf;
0828     __le32 ibss_mgr_status;
0829 } __packed;
0830 
0831 /**
0832  * struct iwl_extended_beacon_notif_v5 - notifies about beacon transmission
0833  * @beacon_notify_hdr: tx response command associated with the beacon
0834  * @tsf: last beacon tsf
0835  * @ibss_mgr_status: whether IBSS is manager
0836  * @gp2: last beacon time in gp2
0837  */
0838 struct iwl_extended_beacon_notif_v5 {
0839     struct iwl_mvm_tx_resp beacon_notify_hdr;
0840     __le64 tsf;
0841     __le32 ibss_mgr_status;
0842     __le32 gp2;
0843 } __packed; /* BEACON_NTFY_API_S_VER_5 */
0844 
0845 /**
0846  * struct iwl_extended_beacon_notif - notifies about beacon transmission
0847  * @status: the status of the Tx response of the beacon
0848  * @tsf: last beacon tsf
0849  * @ibss_mgr_status: whether IBSS is manager
0850  * @gp2: last beacon time in gp2
0851  */
0852 struct iwl_extended_beacon_notif {
0853     __le32 status;
0854     __le64 tsf;
0855     __le32 ibss_mgr_status;
0856     __le32 gp2;
0857 } __packed; /* BEACON_NTFY_API_S_VER_6_ */
0858 
0859 /**
0860  * enum iwl_dump_control - dump (flush) control flags
0861  * @DUMP_TX_FIFO_FLUSH: Dump MSDUs until the the FIFO is empty
0862  *  and the TFD queues are empty.
0863  */
0864 enum iwl_dump_control {
0865     DUMP_TX_FIFO_FLUSH  = BIT(1),
0866 };
0867 
0868 /**
0869  * struct iwl_tx_path_flush_cmd -- queue/FIFO flush command
0870  * @queues_ctl: bitmap of queues to flush
0871  * @flush_ctl: control flags
0872  * @reserved: reserved
0873  */
0874 struct iwl_tx_path_flush_cmd_v1 {
0875     __le32 queues_ctl;
0876     __le16 flush_ctl;
0877     __le16 reserved;
0878 } __packed; /* TX_PATH_FLUSH_CMD_API_S_VER_1 */
0879 
0880 /**
0881  * struct iwl_tx_path_flush_cmd -- queue/FIFO flush command
0882  * @sta_id: station ID to flush
0883  * @tid_mask: TID mask to flush
0884  * @reserved: reserved
0885  */
0886 struct iwl_tx_path_flush_cmd {
0887     __le32 sta_id;
0888     __le16 tid_mask;
0889     __le16 reserved;
0890 } __packed; /* TX_PATH_FLUSH_CMD_API_S_VER_2 */
0891 
0892 #define IWL_TX_FLUSH_QUEUE_RSP 16
0893 
0894 /**
0895  * struct iwl_flush_queue_info - virtual flush queue info
0896  * @queue_num: virtual queue id
0897  * @read_before_flush: read pointer before flush
0898  * @read_after_flush: read pointer after flush
0899  */
0900 struct iwl_flush_queue_info {
0901     __le16 tid;
0902     __le16 queue_num;
0903     __le16 read_before_flush;
0904     __le16 read_after_flush;
0905 } __packed; /* TFDQ_FLUSH_INFO_API_S_VER_1 */
0906 
0907 /**
0908  * struct iwl_tx_path_flush_cmd_rsp -- queue/FIFO flush command response
0909  * @num_flushed_queues: number of queues in queues array
0910  * @queues: all flushed queues
0911  */
0912 struct iwl_tx_path_flush_cmd_rsp {
0913     __le16 sta_id;
0914     __le16 num_flushed_queues;
0915     struct iwl_flush_queue_info queues[IWL_TX_FLUSH_QUEUE_RSP];
0916 } __packed; /* TX_PATH_FLUSH_CMD_RSP_API_S_VER_1 */
0917 
0918 /* Available options for the SCD_QUEUE_CFG HCMD */
0919 enum iwl_scd_cfg_actions {
0920     SCD_CFG_DISABLE_QUEUE       = 0x0,
0921     SCD_CFG_ENABLE_QUEUE        = 0x1,
0922     SCD_CFG_UPDATE_QUEUE_TID    = 0x2,
0923 };
0924 
0925 /**
0926  * struct iwl_scd_txq_cfg_cmd - New txq hw scheduler config command
0927  * @token: unused
0928  * @sta_id: station id
0929  * @tid: TID
0930  * @scd_queue: scheduler queue to confiug
0931  * @action: 1 queue enable, 0 queue disable, 2 change txq's tid owner
0932  *  Value is one of &enum iwl_scd_cfg_actions options
0933  * @aggregate: 1 aggregated queue, 0 otherwise
0934  * @tx_fifo: &enum iwl_mvm_tx_fifo
0935  * @window: BA window size
0936  * @ssn: SSN for the BA agreement
0937  * @reserved: reserved
0938  */
0939 struct iwl_scd_txq_cfg_cmd {
0940     u8 token;
0941     u8 sta_id;
0942     u8 tid;
0943     u8 scd_queue;
0944     u8 action;
0945     u8 aggregate;
0946     u8 tx_fifo;
0947     u8 window;
0948     __le16 ssn;
0949     __le16 reserved;
0950 } __packed; /* SCD_QUEUE_CFG_CMD_API_S_VER_1 */
0951 
0952 /**
0953  * struct iwl_scd_txq_cfg_rsp
0954  * @token: taken from the command
0955  * @sta_id: station id from the command
0956  * @tid: tid from the command
0957  * @scd_queue: scd_queue from the command
0958  */
0959 struct iwl_scd_txq_cfg_rsp {
0960     u8 token;
0961     u8 sta_id;
0962     u8 tid;
0963     u8 scd_queue;
0964 } __packed; /* SCD_QUEUE_CFG_RSP_API_S_VER_1 */
0965 
0966 #endif /* __iwl_fw_api_tx_h__ */