Lines Matching defs:cmd
28 /* MAIN WMI cmd track */
195 /* 10.X WMI cmd track */
364 /* 10.2.4 WMI cmd track */
534 /* 10.4 WMI cmd track */
1815 u32 cmd = 0;
1820 cmd |= SM(cmd_id, WMI_CMD_HDR_CMD_ID);
1823 cmd_hdr->cmd_id = __cpu_to_le32(cmd);
1951 struct wmi_mgmt_tx_cmd *cmd;
1973 len = sizeof(cmd->hdr) + msdu->len;
2001 cmd = (struct wmi_mgmt_tx_cmd *)skb->data;
2003 cmd->hdr.vdev_id = __cpu_to_le32(vdev_id);
2004 cmd->hdr.tx_rate = 0;
2005 cmd->hdr.tx_power = 0;
2006 cmd->hdr.buf_len = __cpu_to_le32(buf_len);
2008 ether_addr_copy(cmd->hdr.peer_macaddr.addr, ieee80211_get_DA(hdr));
2009 memcpy(cmd->buf, msdu->data, msdu->len);
4128 "sending wmi radar found cmd pri_min %d pri_max %d width_min %d width_max %d sidx_min %d sidx_max %d\n",
6418 struct wmi_pdev_set_base_macaddr_cmd *cmd;
6421 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
6425 cmd = (struct wmi_pdev_set_base_macaddr_cmd *)skb->data;
6426 ether_addr_copy(cmd->mac_addr.addr, macaddr);
6438 struct wmi_pdev_set_regdomain_cmd *cmd;
6441 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
6445 cmd = (struct wmi_pdev_set_regdomain_cmd *)skb->data;
6446 cmd->reg_domain = __cpu_to_le32(rd);
6447 cmd->reg_domain_2G = __cpu_to_le32(rd2g);
6448 cmd->reg_domain_5G = __cpu_to_le32(rd5g);
6449 cmd->conformance_test_limit_2G = __cpu_to_le32(ctl2g);
6450 cmd->conformance_test_limit_5G = __cpu_to_le32(ctl5g);
6463 struct wmi_pdev_set_regdomain_cmd_10x *cmd;
6466 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
6470 cmd = (struct wmi_pdev_set_regdomain_cmd_10x *)skb->data;
6471 cmd->reg_domain = __cpu_to_le32(rd);
6472 cmd->reg_domain_2G = __cpu_to_le32(rd2g);
6473 cmd->reg_domain_5G = __cpu_to_le32(rd5g);
6474 cmd->conformance_test_limit_2G = __cpu_to_le32(ctl2g);
6475 cmd->conformance_test_limit_5G = __cpu_to_le32(ctl5g);
6476 cmd->dfs_domain = __cpu_to_le32(dfs_reg);
6487 struct wmi_pdev_suspend_cmd *cmd;
6490 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
6494 cmd = (struct wmi_pdev_suspend_cmd *)skb->data;
6495 cmd->suspend_opt = __cpu_to_le32(suspend_opt);
6515 struct wmi_pdev_set_param_cmd *cmd;
6524 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
6528 cmd = (struct wmi_pdev_set_param_cmd *)skb->data;
6529 cmd->param_id = __cpu_to_le32(id);
6530 cmd->param_value = __cpu_to_le32(value);
6561 struct wmi_init_cmd *cmd;
6616 buf = ath10k_wmi_alloc_skb(ar, struct_size(cmd, mem_chunks.items,
6621 cmd = (struct wmi_init_cmd *)buf->data;
6623 memcpy(&cmd->resource_config, &config, sizeof(config));
6624 ath10k_wmi_put_host_mem_chunks(ar, &cmd->mem_chunks);
6632 struct wmi_init_cmd_10x *cmd;
6679 buf = ath10k_wmi_alloc_skb(ar, struct_size(cmd, mem_chunks.items,
6684 cmd = (struct wmi_init_cmd_10x *)buf->data;
6686 memcpy(&cmd->resource_config, &config, sizeof(config));
6687 ath10k_wmi_put_host_mem_chunks(ar, &cmd->mem_chunks);
6695 struct wmi_init_cmd_10_2 *cmd;
6750 buf = ath10k_wmi_alloc_skb(ar, struct_size(cmd, mem_chunks.items,
6755 cmd = (struct wmi_init_cmd_10_2 *)buf->data;
6769 cmd->resource_config.feature_mask = __cpu_to_le32(features);
6771 memcpy(&cmd->resource_config.common, &config, sizeof(config));
6772 ath10k_wmi_put_host_mem_chunks(ar, &cmd->mem_chunks);
6780 struct wmi_init_cmd_10_4 *cmd;
6844 buf = ath10k_wmi_alloc_skb(ar, struct_size(cmd, mem_chunks.items,
6849 cmd = (struct wmi_init_cmd_10_4 *)buf->data;
6850 memcpy(&cmd->resource_config, &config, sizeof(config));
6851 ath10k_wmi_put_host_mem_chunks(ar, &cmd->mem_chunks);
6997 struct wmi_start_scan_cmd *cmd;
7006 len = sizeof(*cmd) + ath10k_wmi_start_scan_tlvs_len(arg);
7011 cmd = (struct wmi_start_scan_cmd *)skb->data;
7013 ath10k_wmi_put_start_scan_common(&cmd->common, arg);
7014 ath10k_wmi_put_start_scan_tlvs(&cmd->tlvs, arg);
7016 cmd->burst_duration_ms = __cpu_to_le32(0);
7026 struct wmi_10x_start_scan_cmd *cmd;
7035 len = sizeof(*cmd) + ath10k_wmi_start_scan_tlvs_len(arg);
7040 cmd = (struct wmi_10x_start_scan_cmd *)skb->data;
7042 ath10k_wmi_put_start_scan_common(&cmd->common, arg);
7043 ath10k_wmi_put_start_scan_tlvs(&cmd->tlvs, arg);
7079 struct wmi_stop_scan_cmd *cmd;
7089 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7099 cmd = (struct wmi_stop_scan_cmd *)skb->data;
7100 cmd->req_type = __cpu_to_le32(arg->req_type);
7101 cmd->vdev_id = __cpu_to_le32(arg->u.vdev_id);
7102 cmd->scan_id = __cpu_to_le32(scan_id);
7103 cmd->scan_req_id = __cpu_to_le32(req_id);
7117 struct wmi_vdev_create_cmd *cmd;
7120 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7124 cmd = (struct wmi_vdev_create_cmd *)skb->data;
7125 cmd->vdev_id = __cpu_to_le32(vdev_id);
7126 cmd->vdev_type = __cpu_to_le32(type);
7127 cmd->vdev_subtype = __cpu_to_le32(subtype);
7128 ether_addr_copy(cmd->vdev_macaddr.addr, macaddr);
7139 struct wmi_vdev_delete_cmd *cmd;
7142 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7146 cmd = (struct wmi_vdev_delete_cmd *)skb->data;
7147 cmd->vdev_id = __cpu_to_le32(vdev_id);
7159 struct wmi_vdev_start_request_cmd *cmd;
7166 if (WARN_ON(arg->ssid_len > sizeof(cmd->ssid.ssid)))
7174 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7183 cmd = (struct wmi_vdev_start_request_cmd *)skb->data;
7184 cmd->vdev_id = __cpu_to_le32(arg->vdev_id);
7185 cmd->disable_hw_ack = __cpu_to_le32(arg->disable_hw_ack);
7186 cmd->beacon_interval = __cpu_to_le32(arg->bcn_intval);
7187 cmd->dtim_period = __cpu_to_le32(arg->dtim_period);
7188 cmd->flags = __cpu_to_le32(flags);
7189 cmd->bcn_tx_rate = __cpu_to_le32(arg->bcn_tx_rate);
7190 cmd->bcn_tx_power = __cpu_to_le32(arg->bcn_tx_power);
7193 cmd->ssid.ssid_len = __cpu_to_le32(arg->ssid_len);
7194 memcpy(cmd->ssid.ssid, arg->ssid, arg->ssid_len);
7197 ath10k_wmi_put_wmi_channel(ar, &cmd->chan, &arg->channel);
7203 cmd->chan.flags, arg->channel.max_power);
7211 struct wmi_vdev_stop_cmd *cmd;
7214 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7218 cmd = (struct wmi_vdev_stop_cmd *)skb->data;
7219 cmd->vdev_id = __cpu_to_le32(vdev_id);
7229 struct wmi_vdev_up_cmd *cmd;
7232 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7236 cmd = (struct wmi_vdev_up_cmd *)skb->data;
7237 cmd->vdev_id = __cpu_to_le32(vdev_id);
7238 cmd->vdev_assoc_id = __cpu_to_le32(aid);
7239 ether_addr_copy(cmd->vdev_bssid.addr, bssid);
7250 struct wmi_vdev_down_cmd *cmd;
7253 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7257 cmd = (struct wmi_vdev_down_cmd *)skb->data;
7258 cmd->vdev_id = __cpu_to_le32(vdev_id);
7269 struct wmi_vdev_set_param_cmd *cmd;
7279 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7283 cmd = (struct wmi_vdev_set_param_cmd *)skb->data;
7284 cmd->vdev_id = __cpu_to_le32(vdev_id);
7285 cmd->param_id = __cpu_to_le32(param_id);
7286 cmd->param_value = __cpu_to_le32(param_value);
7298 struct wmi_vdev_install_key_cmd *cmd;
7306 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd) + arg->key_len);
7310 cmd = (struct wmi_vdev_install_key_cmd *)skb->data;
7311 cmd->vdev_id = __cpu_to_le32(arg->vdev_id);
7312 cmd->key_idx = __cpu_to_le32(arg->key_idx);
7313 cmd->key_flags = __cpu_to_le32(arg->key_flags);
7314 cmd->key_cipher = __cpu_to_le32(arg->key_cipher);
7315 cmd->key_len = __cpu_to_le32(arg->key_len);
7316 cmd->key_txmic_len = __cpu_to_le32(arg->key_txmic_len);
7317 cmd->key_rxmic_len = __cpu_to_le32(arg->key_rxmic_len);
7320 ether_addr_copy(cmd->peer_macaddr.addr, arg->macaddr);
7322 memcpy(cmd->key_data, arg->key_data, arg->key_len);
7334 struct wmi_vdev_spectral_conf_cmd *cmd;
7337 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7341 cmd = (struct wmi_vdev_spectral_conf_cmd *)skb->data;
7342 cmd->vdev_id = __cpu_to_le32(arg->vdev_id);
7343 cmd->scan_count = __cpu_to_le32(arg->scan_count);
7344 cmd->scan_period = __cpu_to_le32(arg->scan_period);
7345 cmd->scan_priority = __cpu_to_le32(arg->scan_priority);
7346 cmd->scan_fft_size = __cpu_to_le32(arg->scan_fft_size);
7347 cmd->scan_gc_ena = __cpu_to_le32(arg->scan_gc_ena);
7348 cmd->scan_restart_ena = __cpu_to_le32(arg->scan_restart_ena);
7349 cmd->scan_noise_floor_ref = __cpu_to_le32(arg->scan_noise_floor_ref);
7350 cmd->scan_init_delay = __cpu_to_le32(arg->scan_init_delay);
7351 cmd->scan_nb_tone_thr = __cpu_to_le32(arg->scan_nb_tone_thr);
7352 cmd->scan_str_bin_thr = __cpu_to_le32(arg->scan_str_bin_thr);
7353 cmd->scan_wb_rpt_mode = __cpu_to_le32(arg->scan_wb_rpt_mode);
7354 cmd->scan_rssi_rpt_mode = __cpu_to_le32(arg->scan_rssi_rpt_mode);
7355 cmd->scan_rssi_thr = __cpu_to_le32(arg->scan_rssi_thr);
7356 cmd->scan_pwr_format = __cpu_to_le32(arg->scan_pwr_format);
7357 cmd->scan_rpt_mode = __cpu_to_le32(arg->scan_rpt_mode);
7358 cmd->scan_bin_scale = __cpu_to_le32(arg->scan_bin_scale);
7359 cmd->scan_dbm_adj = __cpu_to_le32(arg->scan_dbm_adj);
7360 cmd->scan_chn_mask = __cpu_to_le32(arg->scan_chn_mask);
7369 struct wmi_vdev_spectral_enable_cmd *cmd;
7372 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7376 cmd = (struct wmi_vdev_spectral_enable_cmd *)skb->data;
7377 cmd->vdev_id = __cpu_to_le32(vdev_id);
7378 cmd->trigger_cmd = __cpu_to_le32(trigger);
7379 cmd->enable_cmd = __cpu_to_le32(enable);
7389 struct wmi_peer_create_cmd *cmd;
7392 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7396 cmd = (struct wmi_peer_create_cmd *)skb->data;
7397 cmd->vdev_id = __cpu_to_le32(vdev_id);
7398 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr);
7399 cmd->peer_type = __cpu_to_le32(peer_type);
7411 struct wmi_peer_delete_cmd *cmd;
7414 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7418 cmd = (struct wmi_peer_delete_cmd *)skb->data;
7419 cmd->vdev_id = __cpu_to_le32(vdev_id);
7420 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr);
7432 struct wmi_peer_flush_tids_cmd *cmd;
7435 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7439 cmd = (struct wmi_peer_flush_tids_cmd *)skb->data;
7440 cmd->vdev_id = __cpu_to_le32(vdev_id);
7441 cmd->peer_tid_bitmap = __cpu_to_le32(tid_bitmap);
7442 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr);
7456 struct wmi_peer_set_param_cmd *cmd;
7459 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7463 cmd = (struct wmi_peer_set_param_cmd *)skb->data;
7464 cmd->vdev_id = __cpu_to_le32(vdev_id);
7465 cmd->param_id = __cpu_to_le32(param_id);
7466 cmd->param_value = __cpu_to_le32(param_value);
7467 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr);
7479 struct wmi_sta_powersave_mode_cmd *cmd;
7482 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7486 cmd = (struct wmi_sta_powersave_mode_cmd *)skb->data;
7487 cmd->vdev_id = __cpu_to_le32(vdev_id);
7488 cmd->sta_ps_mode = __cpu_to_le32(psmode);
7501 struct wmi_sta_powersave_param_cmd *cmd;
7504 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7508 cmd = (struct wmi_sta_powersave_param_cmd *)skb->data;
7509 cmd->vdev_id = __cpu_to_le32(vdev_id);
7510 cmd->param_id = __cpu_to_le32(param_id);
7511 cmd->param_value = __cpu_to_le32(value);
7523 struct wmi_ap_ps_peer_cmd *cmd;
7529 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7533 cmd = (struct wmi_ap_ps_peer_cmd *)skb->data;
7534 cmd->vdev_id = __cpu_to_le32(vdev_id);
7535 cmd->param_id = __cpu_to_le32(param_id);
7536 cmd->param_value = __cpu_to_le32(value);
7537 ether_addr_copy(cmd->peer_macaddr.addr, mac);
7549 struct wmi_scan_chan_list_cmd *cmd;
7555 skb = ath10k_wmi_alloc_skb(ar, struct_size(cmd, chan_info, arg->n_channels));
7559 cmd = (struct wmi_scan_chan_list_cmd *)skb->data;
7560 cmd->num_scan_chans = __cpu_to_le32(arg->n_channels);
7564 ci = &cmd->chan_info[i];
7576 struct wmi_common_peer_assoc_complete_cmd *cmd = buf;
7578 cmd->vdev_id = __cpu_to_le32(arg->vdev_id);
7579 cmd->peer_new_assoc = __cpu_to_le32(arg->peer_reassoc ? 0 : 1);
7580 cmd->peer_associd = __cpu_to_le32(arg->peer_aid);
7581 cmd->peer_flags = __cpu_to_le32(arg->peer_flags);
7582 cmd->peer_caps = __cpu_to_le32(arg->peer_caps);
7583 cmd->peer_listen_intval = __cpu_to_le32(arg->peer_listen_intval);
7584 cmd->peer_ht_caps = __cpu_to_le32(arg->peer_ht_caps);
7585 cmd->peer_max_mpdu = __cpu_to_le32(arg->peer_max_mpdu);
7586 cmd->peer_mpdu_density = __cpu_to_le32(arg->peer_mpdu_density);
7587 cmd->peer_rate_caps = __cpu_to_le32(arg->peer_rate_caps);
7588 cmd->peer_nss = __cpu_to_le32(arg->peer_num_spatial_streams);
7589 cmd->peer_vht_caps = __cpu_to_le32(arg->peer_vht_caps);
7590 cmd->peer_phymode = __cpu_to_le32(arg->peer_phymode);
7592 ether_addr_copy(cmd->peer_macaddr.addr, arg->addr);
7594 cmd->peer_legacy_rates.num_rates =
7596 memcpy(cmd->peer_legacy_rates.rates, arg->peer_legacy_rates.rates,
7599 cmd->peer_ht_rates.num_rates =
7601 memcpy(cmd->peer_ht_rates.rates, arg->peer_ht_rates.rates,
7604 cmd->peer_vht_rates.rx_max_rate =
7606 cmd->peer_vht_rates.rx_mcs_set =
7608 cmd->peer_vht_rates.tx_max_rate =
7610 cmd->peer_vht_rates.tx_mcs_set =
7618 struct wmi_main_peer_assoc_complete_cmd *cmd = buf;
7621 memset(cmd->peer_ht_info, 0, sizeof(cmd->peer_ht_info));
7635 struct wmi_10_2_peer_assoc_complete_cmd *cmd = buf;
7647 cmd->info0 = __cpu_to_le32(info0);
7654 struct wmi_10_4_peer_assoc_complete_cmd *cmd = buf;
7657 cmd->peer_bw_rxnss_override =
7791 struct wmi_pdev_chan_info_req_cmd *cmd;
7794 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7798 cmd = (struct wmi_pdev_chan_info_req_cmd *)skb->data;
7799 cmd->type = __cpu_to_le32(type);
7813 struct wmi_bcn_tx_ref_cmd *cmd;
7818 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7825 cmd = (struct wmi_bcn_tx_ref_cmd *)skb->data;
7826 cmd->vdev_id = __cpu_to_le32(vdev_id);
7827 cmd->data_len = __cpu_to_le32(bcn_len);
7828 cmd->data_ptr = __cpu_to_le32(bcn_paddr);
7829 cmd->msdu_id = 0;
7830 cmd->frame_control = __cpu_to_le32(fc);
7831 cmd->flags = 0;
7832 cmd->antenna_mask = __cpu_to_le32(WMI_BCN_TX_REF_DEF_ANTENNA);
7835 cmd->flags |= __cpu_to_le32(WMI_BCN_TX_REF_FLAG_DTIM_ZERO);
7838 cmd->flags |= __cpu_to_le32(WMI_BCN_TX_REF_FLAG_DELIVER_CAB);
7858 struct wmi_pdev_set_wmm_params *cmd;
7861 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7865 cmd = (struct wmi_pdev_set_wmm_params *)skb->data;
7866 ath10k_wmi_set_wmm_param(&cmd->ac_be, &arg->ac_be);
7867 ath10k_wmi_set_wmm_param(&cmd->ac_bk, &arg->ac_bk);
7868 ath10k_wmi_set_wmm_param(&cmd->ac_vi, &arg->ac_vi);
7869 ath10k_wmi_set_wmm_param(&cmd->ac_vo, &arg->ac_vo);
7878 struct wmi_request_stats_cmd *cmd;
7881 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7885 cmd = (struct wmi_request_stats_cmd *)skb->data;
7886 cmd->stats_id = __cpu_to_le32(stats_mask);
7897 struct wmi_force_fw_hang_cmd *cmd;
7900 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7904 cmd = (struct wmi_force_fw_hang_cmd *)skb->data;
7905 cmd->type = __cpu_to_le32(type);
7906 cmd->delay_ms = __cpu_to_le32(delay_ms);
7917 struct wmi_dbglog_cfg_cmd *cmd;
7921 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7925 cmd = (struct wmi_dbglog_cfg_cmd *)skb->data;
7937 cmd->module_enable = __cpu_to_le32(module_enable);
7938 cmd->module_valid = __cpu_to_le32(~0);
7939 cmd->config_enable = __cpu_to_le32(cfg);
7940 cmd->config_valid = __cpu_to_le32(ATH10K_DBGLOG_CFG_LOG_LVL_MASK);
7944 __le32_to_cpu(cmd->module_enable),
7945 __le32_to_cpu(cmd->module_valid),
7946 __le32_to_cpu(cmd->config_enable),
7947 __le32_to_cpu(cmd->config_valid));
7955 struct wmi_10_4_dbglog_cfg_cmd *cmd;
7959 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
7963 cmd = (struct wmi_10_4_dbglog_cfg_cmd *)skb->data;
7975 cmd->module_enable = __cpu_to_le64(module_enable);
7976 cmd->module_valid = __cpu_to_le64(~0);
7977 cmd->config_enable = __cpu_to_le32(cfg);
7978 cmd->config_valid = __cpu_to_le32(ATH10K_DBGLOG_CFG_LOG_LVL_MASK);
7982 __le64_to_cpu(cmd->module_enable),
7983 __le64_to_cpu(cmd->module_valid),
7984 __le32_to_cpu(cmd->config_enable),
7985 __le32_to_cpu(cmd->config_valid));
7992 struct wmi_pdev_pktlog_enable_cmd *cmd;
7995 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
8001 cmd = (struct wmi_pdev_pktlog_enable_cmd *)skb->data;
8002 cmd->ev_bitmap = __cpu_to_le32(ev_bitmap);
8027 struct wmi_pdev_set_quiet_cmd *cmd;
8030 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
8034 cmd = (struct wmi_pdev_set_quiet_cmd *)skb->data;
8035 cmd->period = __cpu_to_le32(period);
8036 cmd->duration = __cpu_to_le32(duration);
8037 cmd->next_start = __cpu_to_le32(next_offset);
8038 cmd->enabled = __cpu_to_le32(enabled);
8050 struct wmi_addba_clear_resp_cmd *cmd;
8056 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
8060 cmd = (struct wmi_addba_clear_resp_cmd *)skb->data;
8061 cmd->vdev_id = __cpu_to_le32(vdev_id);
8062 ether_addr_copy(cmd->peer_macaddr.addr, mac);
8074 struct wmi_addba_send_cmd *cmd;
8080 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
8084 cmd = (struct wmi_addba_send_cmd *)skb->data;
8085 cmd->vdev_id = __cpu_to_le32(vdev_id);
8086 ether_addr_copy(cmd->peer_macaddr.addr, mac);
8087 cmd->tid = __cpu_to_le32(tid);
8088 cmd->buffersize = __cpu_to_le32(buf_size);
8100 struct wmi_addba_setresponse_cmd *cmd;
8106 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
8110 cmd = (struct wmi_addba_setresponse_cmd *)skb->data;
8111 cmd->vdev_id = __cpu_to_le32(vdev_id);
8112 ether_addr_copy(cmd->peer_macaddr.addr, mac);
8113 cmd->tid = __cpu_to_le32(tid);
8114 cmd->statuscode = __cpu_to_le32(status);
8126 struct wmi_delba_send_cmd *cmd;
8132 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
8136 cmd = (struct wmi_delba_send_cmd *)skb->data;
8137 cmd->vdev_id = __cpu_to_le32(vdev_id);
8138 ether_addr_copy(cmd->peer_macaddr.addr, mac);
8139 cmd->tid = __cpu_to_le32(tid);
8140 cmd->initiator = __cpu_to_le32(initiator);
8141 cmd->reasoncode = __cpu_to_le32(reason);
8152 struct wmi_pdev_get_tpc_config_cmd *cmd;
8155 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
8159 cmd = (struct wmi_pdev_get_tpc_config_cmd *)skb->data;
8160 cmd->param = __cpu_to_le32(param);
8565 struct wmi_pdev_set_adaptive_cca_params *cmd;
8568 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
8572 cmd = (struct wmi_pdev_set_adaptive_cca_params *)skb->data;
8573 cmd->enable = __cpu_to_le32(enable);
8574 cmd->cca_detect_level = __cpu_to_le32(detect_level);
8575 cmd->cca_detect_margin = __cpu_to_le32(detect_margin);
8811 struct wmi_ext_resource_config_10_4_cmd *cmd;
8815 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
8822 cmd = (struct wmi_ext_resource_config_10_4_cmd *)skb->data;
8823 cmd->host_platform_config = __cpu_to_le32(type);
8824 cmd->fw_feature_bitmap = __cpu_to_le32(fw_feature_bitmap);
8825 cmd->wlan_gpio_priority = __cpu_to_le32(ar->coex_gpio_pin);
8826 cmd->coex_version = __cpu_to_le32(WMI_NO_COEX_VERSION_SUPPORT);
8827 cmd->coex_gpio_pin1 = __cpu_to_le32(-1);
8828 cmd->coex_gpio_pin2 = __cpu_to_le32(-1);
8829 cmd->coex_gpio_pin3 = __cpu_to_le32(-1);
8830 cmd->num_tdls_vdevs = __cpu_to_le32(TARGET_10_4_NUM_TDLS_VDEVS);
8831 cmd->num_tdls_conn_table_entries = __cpu_to_le32(20);
8832 cmd->max_tdls_concurrent_sleep_sta = __cpu_to_le32(num_tdls_sleep_sta);
8833 cmd->max_tdls_concurrent_buffer_sta =
8846 struct wmi_10_4_tdls_set_state_cmd *cmd;
8850 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
8861 cmd = (struct wmi_10_4_tdls_set_state_cmd *)skb->data;
8862 cmd->vdev_id = __cpu_to_le32(vdev_id);
8863 cmd->state = __cpu_to_le32(state);
8864 cmd->notification_interval_ms = __cpu_to_le32(5000);
8865 cmd->tx_discovery_threshold = __cpu_to_le32(100);
8866 cmd->tx_teardown_threshold = __cpu_to_le32(5);
8867 cmd->rssi_teardown_threshold = __cpu_to_le32(-75);
8868 cmd->rssi_delta = __cpu_to_le32(-20);
8869 cmd->tdls_options = __cpu_to_le32(options);
8870 cmd->tdls_peer_traffic_ind_window = __cpu_to_le32(2);
8871 cmd->tdls_peer_traffic_response_timeout_ms = __cpu_to_le32(5000);
8872 cmd->tdls_puapsd_mask = __cpu_to_le32(0xf);
8873 cmd->tdls_puapsd_inactivity_time_ms = __cpu_to_le32(0);
8874 cmd->tdls_puapsd_rx_frame_threshold = __cpu_to_le32(10);
8875 cmd->teardown_notification_ms = __cpu_to_le32(10);
8876 cmd->tdls_peer_kickout_threshold = __cpu_to_le32(96);
8904 struct wmi_pdev_get_tpc_table_cmd *cmd;
8907 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
8911 cmd = (struct wmi_pdev_get_tpc_table_cmd *)skb->data;
8912 cmd->param = __cpu_to_le32(param);
8925 struct wmi_10_4_tdls_peer_update_cmd *cmd;
8933 /* tdls peer update cmd has place holder for one channel*/
8936 len = sizeof(*cmd) + chan_len * sizeof(*chan);
8942 memset(skb->data, 0, sizeof(*cmd));
8944 cmd = (struct wmi_10_4_tdls_peer_update_cmd *)skb->data;
8945 cmd->vdev_id = __cpu_to_le32(arg->vdev_id);
8946 ether_addr_copy(cmd->peer_macaddr.addr, arg->addr);
8947 cmd->peer_state = __cpu_to_le32(arg->peer_state);
8952 peer_cap = &cmd->peer_capab;
8983 struct wmi_radar_found_info *cmd;
8986 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
8990 cmd = (struct wmi_radar_found_info *)skb->data;
8991 cmd->pri_min = __cpu_to_le32(arg->pri_min);
8992 cmd->pri_max = __cpu_to_le32(arg->pri_max);
8993 cmd->width_min = __cpu_to_le32(arg->width_min);
8994 cmd->width_max = __cpu_to_le32(arg->width_max);
8995 cmd->sidx_min = __cpu_to_le32(arg->sidx_min);
8996 cmd->sidx_max = __cpu_to_le32(arg->sidx_max);
9009 struct wmi_peer_per_tid_cfg_cmd *cmd;
9012 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
9016 memset(skb->data, 0, sizeof(*cmd));
9018 cmd = (struct wmi_peer_per_tid_cfg_cmd *)skb->data;
9019 cmd->vdev_id = cpu_to_le32(arg->vdev_id);
9020 ether_addr_copy(cmd->peer_macaddr.addr, arg->peer_macaddr.addr);
9021 cmd->tid = cpu_to_le32(arg->tid);
9022 cmd->ack_policy = cpu_to_le32(arg->ack_policy);
9023 cmd->aggr_control = cpu_to_le32(arg->aggr_control);
9024 cmd->rate_control = cpu_to_le32(arg->rate_ctrl);
9025 cmd->retry_count = cpu_to_le32(arg->retry_count);
9026 cmd->rcode_flags = cpu_to_le32(arg->rcode_flags);
9027 cmd->ext_tid_cfg_bitmap = cpu_to_le32(arg->ext_tid_cfg_bitmap);
9028 cmd->rtscts_ctrl = cpu_to_le32(arg->rtscts_ctrl);
9041 struct wmi_echo_cmd *cmd;
9044 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
9048 cmd = (struct wmi_echo_cmd *)skb->data;
9049 cmd->value = cpu_to_le32(value);
9084 struct wmi_pdev_bb_timing_cfg_cmd *cmd;
9087 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
9091 cmd = (struct wmi_pdev_bb_timing_cfg_cmd *)skb->data;
9092 cmd->bb_tx_timing = __cpu_to_le32(arg->bb_tx_timing);
9093 cmd->bb_xpa_timing = __cpu_to_le32(arg->bb_xpa_timing);
9464 ar->wmi.cmd = &wmi_10_4_cmd_map;
9472 ar->wmi.cmd = &wmi_10_2_4_cmd_map;
9481 ar->wmi.cmd = &wmi_10_2_cmd_map;
9490 ar->wmi.cmd = &wmi_10x_cmd_map;
9499 ar->wmi.cmd = &wmi_cmd_map;