Lines Matching refs:tx_cmd
77 struct iwl_tx_cmd *tx_cmd, in iwl_mvm_set_tx_cmd() argument
82 u32 tx_flags = le32_to_cpu(tx_cmd->tx_flags); in iwl_mvm_set_tx_cmd()
101 tx_cmd->tid_tspec = qc[0] & 0xf; in iwl_mvm_set_tx_cmd()
104 tx_cmd->tid_tspec = IWL_TID_NON_QOS; in iwl_mvm_set_tx_cmd()
112 ac = tid_to_mac80211_ac[tx_cmd->tid_tspec]; in iwl_mvm_set_tx_cmd()
118 tx_cmd->pm_frame_timeout = cpu_to_le16(3); in iwl_mvm_set_tx_cmd()
120 tx_cmd->pm_frame_timeout = cpu_to_le16(2); in iwl_mvm_set_tx_cmd()
127 tx_cmd->pm_frame_timeout = cpu_to_le16(2); in iwl_mvm_set_tx_cmd()
129 tx_cmd->pm_frame_timeout = 0; in iwl_mvm_set_tx_cmd()
141 tx_cmd->tx_flags = cpu_to_le32(tx_flags); in iwl_mvm_set_tx_cmd()
143 tx_cmd->len = cpu_to_le16((u16)skb->len); in iwl_mvm_set_tx_cmd()
144 tx_cmd->next_frame_len = 0; in iwl_mvm_set_tx_cmd()
145 tx_cmd->life_time = cpu_to_le32(TX_CMD_LIFE_TIME_INFINITE); in iwl_mvm_set_tx_cmd()
146 tx_cmd->sta_id = sta_id; in iwl_mvm_set_tx_cmd()
153 struct iwl_tx_cmd *tx_cmd, in iwl_mvm_set_tx_cmd_rate() argument
163 tx_cmd->rts_retry_limit = IWL_RTS_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
167 tx_cmd->data_retry_limit = IWL_MGMT_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
168 tx_cmd->rts_retry_limit = in iwl_mvm_set_tx_cmd_rate()
169 min(tx_cmd->data_retry_limit, tx_cmd->rts_retry_limit); in iwl_mvm_set_tx_cmd_rate()
171 tx_cmd->data_retry_limit = IWL_BAR_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
173 tx_cmd->data_retry_limit = IWL_DEFAULT_TX_RETRY; in iwl_mvm_set_tx_cmd_rate()
182 tx_cmd->initial_rate_index = 0; in iwl_mvm_set_tx_cmd_rate()
183 tx_cmd->tx_flags |= cpu_to_le32(TX_CMD_FLG_STA_RATE); in iwl_mvm_set_tx_cmd_rate()
186 tx_cmd->tx_flags |= in iwl_mvm_set_tx_cmd_rate()
227 tx_cmd->rate_n_flags = cpu_to_le32((u32)rate_plcp | rate_flags); in iwl_mvm_set_tx_cmd_rate()
235 struct iwl_tx_cmd *tx_cmd, in iwl_mvm_set_tx_cmd_crypto() argument
242 tx_cmd->sec_ctl = TX_CMD_SEC_CCM; in iwl_mvm_set_tx_cmd_crypto()
243 memcpy(tx_cmd->key, keyconf->key, keyconf->keylen); in iwl_mvm_set_tx_cmd_crypto()
245 tx_cmd->tx_flags |= cpu_to_le32(TX_CMD_FLG_CCMP_AGG); in iwl_mvm_set_tx_cmd_crypto()
249 tx_cmd->sec_ctl = TX_CMD_SEC_TKIP; in iwl_mvm_set_tx_cmd_crypto()
250 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); in iwl_mvm_set_tx_cmd_crypto()
254 tx_cmd->sec_ctl |= TX_CMD_SEC_KEY128; in iwl_mvm_set_tx_cmd_crypto()
257 tx_cmd->sec_ctl |= TX_CMD_SEC_WEP | in iwl_mvm_set_tx_cmd_crypto()
261 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); in iwl_mvm_set_tx_cmd_crypto()
264 tx_cmd->sec_ctl |= TX_CMD_SEC_EXT; in iwl_mvm_set_tx_cmd_crypto()
278 struct iwl_tx_cmd *tx_cmd; in iwl_mvm_set_tx_params() local
287 tx_cmd = (struct iwl_tx_cmd *)dev_cmd->payload; in iwl_mvm_set_tx_params()
290 iwl_mvm_set_tx_cmd_crypto(mvm, info, tx_cmd, skb); in iwl_mvm_set_tx_params()
292 iwl_mvm_set_tx_cmd(mvm, skb, tx_cmd, info, sta_id); in iwl_mvm_set_tx_params()
294 iwl_mvm_set_tx_cmd_rate(mvm, tx_cmd, info, sta, hdr->frame_control); in iwl_mvm_set_tx_params()
309 struct iwl_tx_cmd *tx_cmd; in iwl_mvm_tx_skb_non_sta() local
352 tx_cmd = (struct iwl_tx_cmd *)dev_cmd->payload; in iwl_mvm_tx_skb_non_sta()
355 memcpy(tx_cmd->hdr, hdr, ieee80211_hdrlen(hdr->frame_control)); in iwl_mvm_tx_skb_non_sta()
384 struct iwl_tx_cmd *tx_cmd; in iwl_mvm_tx_skb() local
404 tx_cmd = (struct iwl_tx_cmd *)dev_cmd->payload; in iwl_mvm_tx_skb()
432 memcpy(tx_cmd->hdr, hdr, ieee80211_hdrlen(fc)); in iwl_mvm_tx_skb()