Lines Matching refs:tx_cmd

150 			struct iwl_tx_cmd *tx_cmd,
155 u32 tx_flags = le32_to_cpu(tx_cmd->tx_flags);
175 tx_cmd->tid_tspec = qc[0] & 0xf;
184 tx_cmd->tid_tspec = (control &
187 WARN_ON_ONCE(tx_cmd->tid_tspec >= IWL_MAX_TID_COUNT);
188 iwl_mvm_bar_check_trigger(mvm, bar->ra, tx_cmd->tid_tspec,
192 tx_cmd->tid_tspec = IWL_TID_NON_QOS;
194 tx_cmd->tid_tspec = IWL_MAX_TID_COUNT;
203 if (tx_cmd->tid_tspec < IWL_MAX_TID_COUNT)
204 ac = tid_to_mac80211_ac[tx_cmd->tid_tspec];
213 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_ASSOC);
215 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_NONE);
217 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_MGMT);
224 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_MGMT);
226 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_NONE);
238 tx_cmd->tx_flags = cpu_to_le32(tx_flags);
240 tx_cmd->len = cpu_to_le16((u16)skb->len);
241 tx_cmd->life_time = cpu_to_le32(TX_CMD_LIFE_TIME_INFINITE);
242 tx_cmd->sta_id = sta_id;
244 tx_cmd->offload_assist =
279 /* Get PLCP rate for tx_cmd->rate_n_flags */
407 void iwl_mvm_set_tx_cmd_rate(struct iwl_mvm *mvm, struct iwl_tx_cmd *tx_cmd,
412 tx_cmd->rts_retry_limit = IWL_RTS_DFAULT_RETRY_LIMIT;
416 tx_cmd->data_retry_limit = IWL_MGMT_DFAULT_RETRY_LIMIT;
417 tx_cmd->rts_retry_limit =
418 min(tx_cmd->data_retry_limit, tx_cmd->rts_retry_limit);
420 tx_cmd->data_retry_limit = IWL_BAR_DFAULT_RETRY_LIMIT;
422 tx_cmd->data_retry_limit = IWL_DEFAULT_TX_RETRY;
435 tx_cmd->initial_rate_index = 0;
436 tx_cmd->tx_flags |= cpu_to_le32(TX_CMD_FLG_STA_RATE);
440 tx_cmd->tx_flags |=
445 tx_cmd->rate_n_flags =
471 struct iwl_tx_cmd *tx_cmd,
482 iwl_mvm_set_tx_cmd_ccmp(info, tx_cmd);
487 tx_cmd->sec_ctl = TX_CMD_SEC_TKIP;
490 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key);
494 tx_cmd->sec_ctl |= TX_CMD_SEC_KEY128;
497 tx_cmd->sec_ctl |= TX_CMD_SEC_WEP |
501 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen);
514 tx_cmd->sec_ctl |= type | TX_CMD_SEC_KEY_FROM_TABLE;
515 tx_cmd->key[0] = keyconf->hw_key_idx;
519 tx_cmd->sec_ctl |= TX_CMD_SEC_EXT;
569 struct iwl_tx_cmd *tx_cmd;
646 tx_cmd = (struct iwl_tx_cmd *)dev_cmd->payload;
649 iwl_mvm_set_tx_cmd_crypto(mvm, info, tx_cmd, skb, hdrlen);
651 iwl_mvm_set_tx_cmd(mvm, skb, tx_cmd, info, sta_id);
653 iwl_mvm_set_tx_cmd_rate(mvm, tx_cmd, info, sta, hdr->frame_control);
656 iwl_mvm_copy_hdr(tx_cmd->hdr, hdr, hdrlen, addr3_override);
1252 struct iwl_tx_cmd *tx_cmd = (void *)dev_cmd->payload;
1256 /* update the tx_cmd hdr as it was already copied */
1257 tx_cmd->hdr->seq_ctrl = hdr->seq_ctrl;