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()
99 tx_cmd->tid_tspec = qc[0] & 0xf; in iwl_mvm_set_tx_cmd()
106 tx_cmd->tid_tspec = (control & in iwl_mvm_set_tx_cmd()
109 WARN_ON_ONCE(tx_cmd->tid_tspec >= IWL_MAX_TID_COUNT); in iwl_mvm_set_tx_cmd()
111 tx_cmd->tid_tspec = IWL_TID_NON_QOS; in iwl_mvm_set_tx_cmd()
119 if (tx_cmd->tid_tspec < IWL_MAX_TID_COUNT) in iwl_mvm_set_tx_cmd()
120 ac = tid_to_mac80211_ac[tx_cmd->tid_tspec]; in iwl_mvm_set_tx_cmd()
129 tx_cmd->pm_frame_timeout = cpu_to_le16(3); in iwl_mvm_set_tx_cmd()
131 tx_cmd->pm_frame_timeout = cpu_to_le16(2); in iwl_mvm_set_tx_cmd()
138 tx_cmd->pm_frame_timeout = cpu_to_le16(2); in iwl_mvm_set_tx_cmd()
140 tx_cmd->pm_frame_timeout = 0; in iwl_mvm_set_tx_cmd()
152 tx_cmd->tx_flags = cpu_to_le32(tx_flags); in iwl_mvm_set_tx_cmd()
154 tx_cmd->len = cpu_to_le16((u16)skb->len); in iwl_mvm_set_tx_cmd()
155 tx_cmd->next_frame_len = 0; in iwl_mvm_set_tx_cmd()
156 tx_cmd->life_time = cpu_to_le32(TX_CMD_LIFE_TIME_INFINITE); in iwl_mvm_set_tx_cmd()
157 tx_cmd->sta_id = sta_id; in iwl_mvm_set_tx_cmd()
163 void iwl_mvm_set_tx_cmd_rate(struct iwl_mvm *mvm, struct iwl_tx_cmd *tx_cmd, in iwl_mvm_set_tx_cmd_rate() argument
172 tx_cmd->rts_retry_limit = IWL_RTS_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
176 tx_cmd->data_retry_limit = IWL_MGMT_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
177 tx_cmd->rts_retry_limit = in iwl_mvm_set_tx_cmd_rate()
178 min(tx_cmd->data_retry_limit, tx_cmd->rts_retry_limit); in iwl_mvm_set_tx_cmd_rate()
180 tx_cmd->data_retry_limit = IWL_BAR_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
182 tx_cmd->data_retry_limit = IWL_DEFAULT_TX_RETRY; in iwl_mvm_set_tx_cmd_rate()
191 tx_cmd->initial_rate_index = 0; in iwl_mvm_set_tx_cmd_rate()
192 tx_cmd->tx_flags |= cpu_to_le32(TX_CMD_FLG_STA_RATE); in iwl_mvm_set_tx_cmd_rate()
195 tx_cmd->tx_flags |= in iwl_mvm_set_tx_cmd_rate()
238 tx_cmd->rate_n_flags = cpu_to_le32((u32)rate_plcp | rate_flags); in iwl_mvm_set_tx_cmd_rate()
246 struct iwl_tx_cmd *tx_cmd, in iwl_mvm_set_tx_cmd_crypto() argument
253 tx_cmd->sec_ctl = TX_CMD_SEC_CCM; in iwl_mvm_set_tx_cmd_crypto()
254 memcpy(tx_cmd->key, keyconf->key, keyconf->keylen); in iwl_mvm_set_tx_cmd_crypto()
256 tx_cmd->tx_flags |= cpu_to_le32(TX_CMD_FLG_CCMP_AGG); in iwl_mvm_set_tx_cmd_crypto()
260 tx_cmd->sec_ctl = TX_CMD_SEC_TKIP; in iwl_mvm_set_tx_cmd_crypto()
261 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); in iwl_mvm_set_tx_cmd_crypto()
265 tx_cmd->sec_ctl |= TX_CMD_SEC_KEY128; in iwl_mvm_set_tx_cmd_crypto()
268 tx_cmd->sec_ctl |= TX_CMD_SEC_WEP | in iwl_mvm_set_tx_cmd_crypto()
272 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); in iwl_mvm_set_tx_cmd_crypto()
275 tx_cmd->sec_ctl |= TX_CMD_SEC_EXT; in iwl_mvm_set_tx_cmd_crypto()
289 struct iwl_tx_cmd *tx_cmd; in iwl_mvm_set_tx_params() local
298 tx_cmd = (struct iwl_tx_cmd *)dev_cmd->payload; in iwl_mvm_set_tx_params()
301 iwl_mvm_set_tx_cmd_crypto(mvm, info, tx_cmd, skb); in iwl_mvm_set_tx_params()
303 iwl_mvm_set_tx_cmd(mvm, skb, tx_cmd, info, sta_id); in iwl_mvm_set_tx_params()
305 iwl_mvm_set_tx_cmd_rate(mvm, tx_cmd, info, sta, hdr->frame_control); in iwl_mvm_set_tx_params()
320 struct iwl_tx_cmd *tx_cmd; in iwl_mvm_tx_skb_non_sta() local
363 tx_cmd = (struct iwl_tx_cmd *)dev_cmd->payload; in iwl_mvm_tx_skb_non_sta()
366 memcpy(tx_cmd->hdr, hdr, ieee80211_hdrlen(hdr->frame_control)); in iwl_mvm_tx_skb_non_sta()
395 struct iwl_tx_cmd *tx_cmd; in iwl_mvm_tx_skb() local
415 tx_cmd = (struct iwl_tx_cmd *)dev_cmd->payload; in iwl_mvm_tx_skb()
443 memcpy(tx_cmd->hdr, hdr, ieee80211_hdrlen(fc)); in iwl_mvm_tx_skb()