Lines Matching refs:cmd

88 			      struct iwl_tof_responder_config_cmd_v9 *cmd)  in iwl_mvm_ftm_responder_set_ndp()  argument
94 cmd->r2i_ndp_params = IWL_MVM_FTM_R2I_MAX_REP | in iwl_mvm_ftm_responder_set_ndp()
97 cmd->i2r_ndp_params = IWL_MVM_FTM_I2R_MAX_REP | in iwl_mvm_ftm_responder_set_ndp()
100 cmd->cmd_valid_fields |= in iwl_mvm_ftm_responder_set_ndp()
117 struct iwl_tof_responder_config_cmd_v9 cmd = { in iwl_mvm_ftm_responder_cmd() local
133 cmd.cmd_valid_fields |= in iwl_mvm_ftm_responder_cmd()
136 cmd.bss_color = 1; in iwl_mvm_ftm_responder_cmd()
137 cmd.min_time_between_msr = in iwl_mvm_ftm_responder_cmd()
139 cmd.max_time_between_msr = in iwl_mvm_ftm_responder_cmd()
148 iwl_mvm_ftm_responder_set_ndp(mvm, &cmd); in iwl_mvm_ftm_responder_cmd()
151 err = iwl_mvm_ftm_responder_set_bw_v2(chandef, &cmd.format_bw, in iwl_mvm_ftm_responder_cmd()
152 &cmd.ctrl_ch_position, in iwl_mvm_ftm_responder_cmd()
155 err = iwl_mvm_ftm_responder_set_bw_v1(chandef, &cmd.format_bw, in iwl_mvm_ftm_responder_cmd()
156 &cmd.ctrl_ch_position); in iwl_mvm_ftm_responder_cmd()
163 memcpy(cmd.bssid, vif->addr, ETH_ALEN); in iwl_mvm_ftm_responder_cmd()
165 return iwl_mvm_send_cmd_pdu(mvm, cmd_id, 0, cmd_size, &cmd); in iwl_mvm_ftm_responder_cmd()
173 struct iwl_tof_responder_dyn_config_cmd_v2 cmd = { in iwl_mvm_ftm_responder_dyn_cfg_v2() local
180 .data[0] = &cmd, in iwl_mvm_ftm_responder_dyn_cfg_v2()
181 .len[0] = sizeof(cmd), in iwl_mvm_ftm_responder_dyn_cfg_v2()
219 struct iwl_tof_responder_dyn_config_cmd cmd; in iwl_mvm_ftm_responder_dyn_cfg_v3() local
222 .data[0] = &cmd, in iwl_mvm_ftm_responder_dyn_cfg_v3()
223 .len[0] = sizeof(cmd), in iwl_mvm_ftm_responder_dyn_cfg_v3()
230 cmd.valid_flags = 0; in iwl_mvm_ftm_responder_dyn_cfg_v3()
233 if (params->lci_len + 2 > sizeof(cmd.lci_buf) || in iwl_mvm_ftm_responder_dyn_cfg_v3()
234 params->civicloc_len + 2 > sizeof(cmd.civic_buf)) { in iwl_mvm_ftm_responder_dyn_cfg_v3()
241 cmd.lci_buf[0] = WLAN_EID_MEASURE_REPORT; in iwl_mvm_ftm_responder_dyn_cfg_v3()
242 cmd.lci_buf[1] = params->lci_len; in iwl_mvm_ftm_responder_dyn_cfg_v3()
243 memcpy(cmd.lci_buf + 2, params->lci, params->lci_len); in iwl_mvm_ftm_responder_dyn_cfg_v3()
244 cmd.lci_len = params->lci_len + 2; in iwl_mvm_ftm_responder_dyn_cfg_v3()
246 cmd.civic_buf[0] = WLAN_EID_MEASURE_REPORT; in iwl_mvm_ftm_responder_dyn_cfg_v3()
247 cmd.civic_buf[1] = params->civicloc_len; in iwl_mvm_ftm_responder_dyn_cfg_v3()
248 memcpy(cmd.civic_buf + 2, params->civicloc, in iwl_mvm_ftm_responder_dyn_cfg_v3()
250 cmd.civic_len = params->civicloc_len + 2; in iwl_mvm_ftm_responder_dyn_cfg_v3()
252 cmd.valid_flags |= IWL_RESPONDER_DYN_CFG_VALID_LCI | in iwl_mvm_ftm_responder_dyn_cfg_v3()
263 cmd.cipher = hltk_data->cipher; in iwl_mvm_ftm_responder_dyn_cfg_v3()
264 memcpy(cmd.addr, hltk_data->addr, sizeof(cmd.addr)); in iwl_mvm_ftm_responder_dyn_cfg_v3()
265 memcpy(cmd.hltk_buf, hltk_data->hltk, sizeof(cmd.hltk_buf)); in iwl_mvm_ftm_responder_dyn_cfg_v3()
266 cmd.valid_flags |= IWL_RESPONDER_DYN_CFG_VALID_PASN_STA; in iwl_mvm_ftm_responder_dyn_cfg_v3()