Lines Matching refs:cmd
236 u32 cmd = 0; in ath11k_wmi_cmd_send_nowait() local
241 cmd |= FIELD_PREP(WMI_CMD_HDR_CMD_ID, cmd_id); in ath11k_wmi_cmd_send_nowait()
244 cmd_hdr->cmd_id = cmd; in ath11k_wmi_cmd_send_nowait()
572 struct wmi_mgmt_send_cmd *cmd; in ath11k_wmi_mgmt_send() local
581 len = sizeof(*cmd) + sizeof(*frame_tlv) + roundup(buf_len, 4); in ath11k_wmi_mgmt_send()
587 cmd = (struct wmi_mgmt_send_cmd *)skb->data; in ath11k_wmi_mgmt_send()
588 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_MGMT_TX_SEND_CMD) | in ath11k_wmi_mgmt_send()
589 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_mgmt_send()
590 cmd->vdev_id = vdev_id; in ath11k_wmi_mgmt_send()
591 cmd->desc_id = buf_id; in ath11k_wmi_mgmt_send()
592 cmd->chanfreq = 0; in ath11k_wmi_mgmt_send()
593 cmd->paddr_lo = lower_32_bits(ATH11K_SKB_CB(frame)->paddr); in ath11k_wmi_mgmt_send()
594 cmd->paddr_hi = upper_32_bits(ATH11K_SKB_CB(frame)->paddr); in ath11k_wmi_mgmt_send()
595 cmd->frame_len = frame->len; in ath11k_wmi_mgmt_send()
596 cmd->buf_len = buf_len; in ath11k_wmi_mgmt_send()
597 cmd->tx_params_valid = 0; in ath11k_wmi_mgmt_send()
599 frame_tlv = (struct wmi_tlv *)(skb->data + sizeof(*cmd)); in ath11k_wmi_mgmt_send()
621 struct wmi_vdev_create_cmd *cmd; in ath11k_wmi_vdev_create() local
632 len = sizeof(*cmd) + TLV_HDR_SIZE + in ath11k_wmi_vdev_create()
639 cmd = (struct wmi_vdev_create_cmd *)skb->data; in ath11k_wmi_vdev_create()
640 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_CREATE_CMD) | in ath11k_wmi_vdev_create()
641 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_create()
643 cmd->vdev_id = param->if_id; in ath11k_wmi_vdev_create()
644 cmd->vdev_type = param->type; in ath11k_wmi_vdev_create()
645 cmd->vdev_subtype = param->subtype; in ath11k_wmi_vdev_create()
646 cmd->num_cfg_txrx_streams = WMI_NUM_SUPPORTED_BAND_MAX; in ath11k_wmi_vdev_create()
647 cmd->pdev_id = param->pdev_id; in ath11k_wmi_vdev_create()
648 ether_addr_copy(cmd->vdev_macaddr.addr, macaddr); in ath11k_wmi_vdev_create()
650 ptr = skb->data + sizeof(*cmd); in ath11k_wmi_vdev_create()
697 struct wmi_vdev_delete_cmd *cmd; in ath11k_wmi_vdev_delete() local
701 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_delete()
705 cmd = (struct wmi_vdev_delete_cmd *)skb->data; in ath11k_wmi_vdev_delete()
706 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_DELETE_CMD) | in ath11k_wmi_vdev_delete()
707 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_delete()
708 cmd->vdev_id = vdev_id; in ath11k_wmi_vdev_delete()
724 struct wmi_vdev_stop_cmd *cmd; in ath11k_wmi_vdev_stop() local
728 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_stop()
732 cmd = (struct wmi_vdev_stop_cmd *)skb->data; in ath11k_wmi_vdev_stop()
734 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_STOP_CMD) | in ath11k_wmi_vdev_stop()
735 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_stop()
736 cmd->vdev_id = vdev_id; in ath11k_wmi_vdev_stop()
752 struct wmi_vdev_down_cmd *cmd; in ath11k_wmi_vdev_down() local
756 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_down()
760 cmd = (struct wmi_vdev_down_cmd *)skb->data; in ath11k_wmi_vdev_down()
762 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_DOWN_CMD) | in ath11k_wmi_vdev_down()
763 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_down()
764 cmd->vdev_id = vdev_id; in ath11k_wmi_vdev_down()
822 struct wmi_vdev_start_request_cmd *cmd; in ath11k_wmi_vdev_start() local
829 if (WARN_ON(arg->ssid_len > sizeof(cmd->ssid.ssid))) in ath11k_wmi_vdev_start()
832 len = sizeof(*cmd) + sizeof(*chan) + TLV_HDR_SIZE; in ath11k_wmi_vdev_start()
838 cmd = (struct wmi_vdev_start_request_cmd *)skb->data; in ath11k_wmi_vdev_start()
839 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_vdev_start()
841 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_start()
842 cmd->vdev_id = arg->vdev_id; in ath11k_wmi_vdev_start()
843 cmd->beacon_interval = arg->bcn_intval; in ath11k_wmi_vdev_start()
844 cmd->bcn_tx_rate = arg->bcn_tx_rate; in ath11k_wmi_vdev_start()
845 cmd->dtim_period = arg->dtim_period; in ath11k_wmi_vdev_start()
846 cmd->num_noa_descriptors = arg->num_noa_descriptors; in ath11k_wmi_vdev_start()
847 cmd->preferred_rx_streams = arg->pref_rx_streams; in ath11k_wmi_vdev_start()
848 cmd->preferred_tx_streams = arg->pref_tx_streams; in ath11k_wmi_vdev_start()
849 cmd->cac_duration_ms = arg->cac_duration_ms; in ath11k_wmi_vdev_start()
850 cmd->regdomain = arg->regdomain; in ath11k_wmi_vdev_start()
851 cmd->he_ops = arg->he_ops; in ath11k_wmi_vdev_start()
855 cmd->ssid.ssid_len = arg->ssid_len; in ath11k_wmi_vdev_start()
856 memcpy(cmd->ssid.ssid, arg->ssid, arg->ssid_len); in ath11k_wmi_vdev_start()
859 cmd->flags |= WMI_VDEV_START_HIDDEN_SSID; in ath11k_wmi_vdev_start()
861 cmd->flags |= WMI_VDEV_START_PMF_ENABLED; in ath11k_wmi_vdev_start()
864 cmd->flags |= WMI_VDEV_START_LDPC_RX_ENABLED; in ath11k_wmi_vdev_start()
866 ptr = skb->data + sizeof(*cmd); in ath11k_wmi_vdev_start()
908 struct wmi_vdev_up_cmd *cmd; in ath11k_wmi_vdev_up() local
912 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_up()
916 cmd = (struct wmi_vdev_up_cmd *)skb->data; in ath11k_wmi_vdev_up()
918 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_UP_CMD) | in ath11k_wmi_vdev_up()
919 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_up()
920 cmd->vdev_id = vdev_id; in ath11k_wmi_vdev_up()
921 cmd->vdev_assoc_id = aid; in ath11k_wmi_vdev_up()
923 ether_addr_copy(cmd->vdev_bssid.addr, bssid); in ath11k_wmi_vdev_up()
942 struct wmi_peer_create_cmd *cmd; in ath11k_wmi_send_peer_create_cmd() local
946 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_peer_create_cmd()
950 cmd = (struct wmi_peer_create_cmd *)skb->data; in ath11k_wmi_send_peer_create_cmd()
951 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PEER_CREATE_CMD) | in ath11k_wmi_send_peer_create_cmd()
952 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_peer_create_cmd()
954 ether_addr_copy(cmd->peer_macaddr.addr, param->peer_addr); in ath11k_wmi_send_peer_create_cmd()
955 cmd->peer_type = param->peer_type; in ath11k_wmi_send_peer_create_cmd()
956 cmd->vdev_id = param->vdev_id; in ath11k_wmi_send_peer_create_cmd()
975 struct wmi_peer_delete_cmd *cmd; in ath11k_wmi_send_peer_delete_cmd() local
979 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_peer_delete_cmd()
983 cmd = (struct wmi_peer_delete_cmd *)skb->data; in ath11k_wmi_send_peer_delete_cmd()
984 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PEER_DELETE_CMD) | in ath11k_wmi_send_peer_delete_cmd()
985 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_peer_delete_cmd()
987 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr); in ath11k_wmi_send_peer_delete_cmd()
988 cmd->vdev_id = vdev_id; in ath11k_wmi_send_peer_delete_cmd()
1007 struct wmi_pdev_set_regdomain_cmd *cmd; in ath11k_wmi_send_pdev_set_regdomain() local
1011 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_pdev_set_regdomain()
1015 cmd = (struct wmi_pdev_set_regdomain_cmd *)skb->data; in ath11k_wmi_send_pdev_set_regdomain()
1016 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_pdev_set_regdomain()
1018 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_pdev_set_regdomain()
1020 cmd->reg_domain = param->current_rd_in_use; in ath11k_wmi_send_pdev_set_regdomain()
1021 cmd->reg_domain_2g = param->current_rd_2g; in ath11k_wmi_send_pdev_set_regdomain()
1022 cmd->reg_domain_5g = param->current_rd_5g; in ath11k_wmi_send_pdev_set_regdomain()
1023 cmd->conformance_test_limit_2g = param->ctl_2g; in ath11k_wmi_send_pdev_set_regdomain()
1024 cmd->conformance_test_limit_5g = param->ctl_5g; in ath11k_wmi_send_pdev_set_regdomain()
1025 cmd->dfs_domain = param->dfs_domain; in ath11k_wmi_send_pdev_set_regdomain()
1026 cmd->pdev_id = param->pdev_id; in ath11k_wmi_send_pdev_set_regdomain()
1047 struct wmi_peer_set_param_cmd *cmd; in ath11k_wmi_set_peer_param() local
1051 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_set_peer_param()
1055 cmd = (struct wmi_peer_set_param_cmd *)skb->data; in ath11k_wmi_set_peer_param()
1056 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PEER_SET_PARAM_CMD) | in ath11k_wmi_set_peer_param()
1057 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_set_peer_param()
1058 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr); in ath11k_wmi_set_peer_param()
1059 cmd->vdev_id = vdev_id; in ath11k_wmi_set_peer_param()
1060 cmd->param_id = param_id; in ath11k_wmi_set_peer_param()
1061 cmd->param_value = param_val; in ath11k_wmi_set_peer_param()
1081 struct wmi_peer_flush_tids_cmd *cmd; in ath11k_wmi_send_peer_flush_tids_cmd() local
1085 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_peer_flush_tids_cmd()
1089 cmd = (struct wmi_peer_flush_tids_cmd *)skb->data; in ath11k_wmi_send_peer_flush_tids_cmd()
1090 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PEER_FLUSH_TIDS_CMD) | in ath11k_wmi_send_peer_flush_tids_cmd()
1091 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_peer_flush_tids_cmd()
1093 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr); in ath11k_wmi_send_peer_flush_tids_cmd()
1094 cmd->peer_tid_bitmap = param->peer_tid_bitmap; in ath11k_wmi_send_peer_flush_tids_cmd()
1095 cmd->vdev_id = param->vdev_id; in ath11k_wmi_send_peer_flush_tids_cmd()
1117 struct wmi_peer_reorder_queue_setup_cmd *cmd; in ath11k_wmi_peer_rx_reorder_queue_setup() local
1121 skb = ath11k_wmi_alloc_skb(ar->wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_peer_rx_reorder_queue_setup()
1125 cmd = (struct wmi_peer_reorder_queue_setup_cmd *)skb->data; in ath11k_wmi_peer_rx_reorder_queue_setup()
1126 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_peer_rx_reorder_queue_setup()
1128 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_peer_rx_reorder_queue_setup()
1130 ether_addr_copy(cmd->peer_macaddr.addr, addr); in ath11k_wmi_peer_rx_reorder_queue_setup()
1131 cmd->vdev_id = vdev_id; in ath11k_wmi_peer_rx_reorder_queue_setup()
1132 cmd->tid = tid; in ath11k_wmi_peer_rx_reorder_queue_setup()
1133 cmd->queue_ptr_lo = lower_32_bits(paddr); in ath11k_wmi_peer_rx_reorder_queue_setup()
1134 cmd->queue_ptr_hi = upper_32_bits(paddr); in ath11k_wmi_peer_rx_reorder_queue_setup()
1135 cmd->queue_no = tid; in ath11k_wmi_peer_rx_reorder_queue_setup()
1136 cmd->ba_window_size_valid = ba_window_size_valid; in ath11k_wmi_peer_rx_reorder_queue_setup()
1137 cmd->ba_window_size = ba_window_size; in ath11k_wmi_peer_rx_reorder_queue_setup()
1159 struct wmi_peer_reorder_queue_remove_cmd *cmd; in ath11k_wmi_rx_reord_queue_remove() local
1163 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_rx_reord_queue_remove()
1167 cmd = (struct wmi_peer_reorder_queue_remove_cmd *)skb->data; in ath11k_wmi_rx_reord_queue_remove()
1168 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_rx_reord_queue_remove()
1170 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_rx_reord_queue_remove()
1172 ether_addr_copy(cmd->peer_macaddr.addr, param->peer_macaddr); in ath11k_wmi_rx_reord_queue_remove()
1173 cmd->vdev_id = param->vdev_id; in ath11k_wmi_rx_reord_queue_remove()
1174 cmd->tid_mask = param->peer_tid_bitmap; in ath11k_wmi_rx_reord_queue_remove()
1195 struct wmi_pdev_set_param_cmd *cmd; in ath11k_wmi_pdev_set_param() local
1199 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_set_param()
1203 cmd = (struct wmi_pdev_set_param_cmd *)skb->data; in ath11k_wmi_pdev_set_param()
1204 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_SET_PARAM_CMD) | in ath11k_wmi_pdev_set_param()
1205 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_set_param()
1206 cmd->pdev_id = pdev_id; in ath11k_wmi_pdev_set_param()
1207 cmd->param_id = param_id; in ath11k_wmi_pdev_set_param()
1208 cmd->param_value = param_value; in ath11k_wmi_pdev_set_param()
1226 struct wmi_pdev_set_ps_mode_cmd *cmd; in ath11k_wmi_pdev_set_ps_mode() local
1230 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_set_ps_mode()
1234 cmd = (struct wmi_pdev_set_ps_mode_cmd *)skb->data; in ath11k_wmi_pdev_set_ps_mode()
1235 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_STA_POWERSAVE_MODE_CMD) | in ath11k_wmi_pdev_set_ps_mode()
1236 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_set_ps_mode()
1237 cmd->vdev_id = vdev_id; in ath11k_wmi_pdev_set_ps_mode()
1238 cmd->sta_ps_mode = enable; in ath11k_wmi_pdev_set_ps_mode()
1257 struct wmi_pdev_suspend_cmd *cmd; in ath11k_wmi_pdev_suspend() local
1261 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_suspend()
1265 cmd = (struct wmi_pdev_suspend_cmd *)skb->data; in ath11k_wmi_pdev_suspend()
1267 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_SUSPEND_CMD) | in ath11k_wmi_pdev_suspend()
1268 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_suspend()
1270 cmd->suspend_opt = suspend_opt; in ath11k_wmi_pdev_suspend()
1271 cmd->pdev_id = pdev_id; in ath11k_wmi_pdev_suspend()
1288 struct wmi_pdev_resume_cmd *cmd; in ath11k_wmi_pdev_resume() local
1292 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_resume()
1296 cmd = (struct wmi_pdev_resume_cmd *)skb->data; in ath11k_wmi_pdev_resume()
1298 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_RESUME_CMD) | in ath11k_wmi_pdev_resume()
1299 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_resume()
1300 cmd->pdev_id = pdev_id; in ath11k_wmi_pdev_resume()
1322 struct wmi_pdev_bss_chan_info_req_cmd *cmd; in ath11k_wmi_pdev_bss_chan_info_request() local
1326 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_bss_chan_info_request()
1330 cmd = (struct wmi_pdev_bss_chan_info_req_cmd *)skb->data; in ath11k_wmi_pdev_bss_chan_info_request()
1332 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_pdev_bss_chan_info_request()
1334 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_bss_chan_info_request()
1335 cmd->req_type = type; in ath11k_wmi_pdev_bss_chan_info_request()
1336 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_pdev_bss_chan_info_request()
1356 struct wmi_ap_ps_peer_cmd *cmd; in ath11k_wmi_send_set_ap_ps_param_cmd() local
1360 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_set_ap_ps_param_cmd()
1364 cmd = (struct wmi_ap_ps_peer_cmd *)skb->data; in ath11k_wmi_send_set_ap_ps_param_cmd()
1365 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_AP_PS_PEER_CMD) | in ath11k_wmi_send_set_ap_ps_param_cmd()
1366 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_set_ap_ps_param_cmd()
1368 cmd->vdev_id = param->vdev_id; in ath11k_wmi_send_set_ap_ps_param_cmd()
1369 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr); in ath11k_wmi_send_set_ap_ps_param_cmd()
1370 cmd->param = param->param; in ath11k_wmi_send_set_ap_ps_param_cmd()
1371 cmd->value = param->value; in ath11k_wmi_send_set_ap_ps_param_cmd()
1391 struct wmi_sta_powersave_param_cmd *cmd; in ath11k_wmi_set_sta_ps_param() local
1395 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_set_sta_ps_param()
1399 cmd = (struct wmi_sta_powersave_param_cmd *)skb->data; in ath11k_wmi_set_sta_ps_param()
1400 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_set_sta_ps_param()
1402 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_set_sta_ps_param()
1404 cmd->vdev_id = vdev_id; in ath11k_wmi_set_sta_ps_param()
1405 cmd->param = param; in ath11k_wmi_set_sta_ps_param()
1406 cmd->value = param_value; in ath11k_wmi_set_sta_ps_param()
1424 struct wmi_force_fw_hang_cmd *cmd; in ath11k_wmi_force_fw_hang_cmd() local
1428 len = sizeof(*cmd); in ath11k_wmi_force_fw_hang_cmd()
1434 cmd = (struct wmi_force_fw_hang_cmd *)skb->data; in ath11k_wmi_force_fw_hang_cmd()
1435 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_FORCE_FW_HANG_CMD) | in ath11k_wmi_force_fw_hang_cmd()
1438 cmd->type = type; in ath11k_wmi_force_fw_hang_cmd()
1439 cmd->delay_time_ms = delay_time_ms; in ath11k_wmi_force_fw_hang_cmd()
1454 struct wmi_vdev_set_param_cmd *cmd; in ath11k_wmi_vdev_set_param_cmd() local
1458 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_set_param_cmd()
1462 cmd = (struct wmi_vdev_set_param_cmd *)skb->data; in ath11k_wmi_vdev_set_param_cmd()
1463 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_SET_PARAM_CMD) | in ath11k_wmi_vdev_set_param_cmd()
1464 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_set_param_cmd()
1466 cmd->vdev_id = vdev_id; in ath11k_wmi_vdev_set_param_cmd()
1467 cmd->param_id = param_id; in ath11k_wmi_vdev_set_param_cmd()
1468 cmd->param_value = param_value; in ath11k_wmi_vdev_set_param_cmd()
1488 struct wmi_request_stats_cmd *cmd; in ath11k_wmi_send_stats_request_cmd() local
1492 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_stats_request_cmd()
1496 cmd = (struct wmi_request_stats_cmd *)skb->data; in ath11k_wmi_send_stats_request_cmd()
1497 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_REQUEST_STATS_CMD) | in ath11k_wmi_send_stats_request_cmd()
1498 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_stats_request_cmd()
1500 cmd->stats_id = param->stats_id; in ath11k_wmi_send_stats_request_cmd()
1501 cmd->vdev_id = param->vdev_id; in ath11k_wmi_send_stats_request_cmd()
1502 cmd->pdev_id = param->pdev_id; in ath11k_wmi_send_stats_request_cmd()
1520 struct wmi_get_pdev_temperature_cmd *cmd; in ath11k_wmi_send_pdev_temperature_cmd() local
1524 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_pdev_temperature_cmd()
1528 cmd = (struct wmi_get_pdev_temperature_cmd *)skb->data; in ath11k_wmi_send_pdev_temperature_cmd()
1529 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_GET_TEMPERATURE_CMD) | in ath11k_wmi_send_pdev_temperature_cmd()
1530 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_pdev_temperature_cmd()
1531 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_send_pdev_temperature_cmd()
1549 struct wmi_bcn_offload_ctrl_cmd *cmd; in ath11k_wmi_send_bcn_offload_control_cmd() local
1553 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_bcn_offload_control_cmd()
1557 cmd = (struct wmi_bcn_offload_ctrl_cmd *)skb->data; in ath11k_wmi_send_bcn_offload_control_cmd()
1558 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_bcn_offload_control_cmd()
1560 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_bcn_offload_control_cmd()
1562 cmd->vdev_id = vdev_id; in ath11k_wmi_send_bcn_offload_control_cmd()
1563 cmd->bcn_ctrl_op = bcn_ctrl_op; in ath11k_wmi_send_bcn_offload_control_cmd()
1584 struct wmi_bcn_tmpl_cmd *cmd; in ath11k_wmi_bcn_tmpl() local
1592 len = sizeof(*cmd) + sizeof(*bcn_prb_info) + TLV_HDR_SIZE + aligned_len; in ath11k_wmi_bcn_tmpl()
1598 cmd = (struct wmi_bcn_tmpl_cmd *)skb->data; in ath11k_wmi_bcn_tmpl()
1599 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_BCN_TMPL_CMD) | in ath11k_wmi_bcn_tmpl()
1600 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_bcn_tmpl()
1601 cmd->vdev_id = vdev_id; in ath11k_wmi_bcn_tmpl()
1602 cmd->tim_ie_offset = offs->tim_offset; in ath11k_wmi_bcn_tmpl()
1603 cmd->csa_switch_count_offset = offs->cntdwn_counter_offs[0]; in ath11k_wmi_bcn_tmpl()
1604 cmd->ext_csa_switch_count_offset = offs->cntdwn_counter_offs[1]; in ath11k_wmi_bcn_tmpl()
1605 cmd->buf_len = bcn->len; in ath11k_wmi_bcn_tmpl()
1607 ptr = skb->data + sizeof(*cmd); in ath11k_wmi_bcn_tmpl()
1637 struct wmi_vdev_install_key_cmd *cmd; in ath11k_wmi_vdev_install_key() local
1643 len = sizeof(*cmd) + TLV_HDR_SIZE + key_len_aligned; in ath11k_wmi_vdev_install_key()
1649 cmd = (struct wmi_vdev_install_key_cmd *)skb->data; in ath11k_wmi_vdev_install_key()
1650 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_INSTALL_KEY_CMD) | in ath11k_wmi_vdev_install_key()
1651 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_install_key()
1652 cmd->vdev_id = arg->vdev_id; in ath11k_wmi_vdev_install_key()
1653 ether_addr_copy(cmd->peer_macaddr.addr, arg->macaddr); in ath11k_wmi_vdev_install_key()
1654 cmd->key_idx = arg->key_idx; in ath11k_wmi_vdev_install_key()
1655 cmd->key_flags = arg->key_flags; in ath11k_wmi_vdev_install_key()
1656 cmd->key_cipher = arg->key_cipher; in ath11k_wmi_vdev_install_key()
1657 cmd->key_len = arg->key_len; in ath11k_wmi_vdev_install_key()
1658 cmd->key_txmic_len = arg->key_txmic_len; in ath11k_wmi_vdev_install_key()
1659 cmd->key_rxmic_len = arg->key_rxmic_len; in ath11k_wmi_vdev_install_key()
1662 memcpy(&cmd->key_rsc_counter, &arg->key_rsc_counter, in ath11k_wmi_vdev_install_key()
1665 tlv = (struct wmi_tlv *)(skb->data + sizeof(*cmd)); in ath11k_wmi_vdev_install_key()
1686 ath11k_wmi_copy_peer_flags(struct wmi_peer_assoc_complete_cmd *cmd, in ath11k_wmi_copy_peer_flags() argument
1689 cmd->peer_flags = 0; in ath11k_wmi_copy_peer_flags()
1693 cmd->peer_flags |= WMI_PEER_QOS; in ath11k_wmi_copy_peer_flags()
1695 cmd->peer_flags |= WMI_PEER_APSD; in ath11k_wmi_copy_peer_flags()
1697 cmd->peer_flags |= WMI_PEER_HT; in ath11k_wmi_copy_peer_flags()
1699 cmd->peer_flags |= WMI_PEER_40MHZ; in ath11k_wmi_copy_peer_flags()
1701 cmd->peer_flags |= WMI_PEER_80MHZ; in ath11k_wmi_copy_peer_flags()
1703 cmd->peer_flags |= WMI_PEER_160MHZ; in ath11k_wmi_copy_peer_flags()
1709 cmd->peer_flags |= WMI_PEER_STBC; in ath11k_wmi_copy_peer_flags()
1715 cmd->peer_flags |= WMI_PEER_LDPC; in ath11k_wmi_copy_peer_flags()
1718 cmd->peer_flags |= WMI_PEER_STATIC_MIMOPS; in ath11k_wmi_copy_peer_flags()
1720 cmd->peer_flags |= WMI_PEER_DYN_MIMOPS; in ath11k_wmi_copy_peer_flags()
1722 cmd->peer_flags |= WMI_PEER_SPATIAL_MUX; in ath11k_wmi_copy_peer_flags()
1724 cmd->peer_flags |= WMI_PEER_VHT; in ath11k_wmi_copy_peer_flags()
1726 cmd->peer_flags |= WMI_PEER_HE; in ath11k_wmi_copy_peer_flags()
1728 cmd->peer_flags |= WMI_PEER_TWT_REQ; in ath11k_wmi_copy_peer_flags()
1730 cmd->peer_flags |= WMI_PEER_TWT_RESP; in ath11k_wmi_copy_peer_flags()
1738 cmd->peer_flags |= WMI_PEER_AUTH; in ath11k_wmi_copy_peer_flags()
1740 cmd->peer_flags |= WMI_PEER_NEED_PTK_4_WAY; in ath11k_wmi_copy_peer_flags()
1741 cmd->peer_flags &= ~WMI_PEER_AUTH; in ath11k_wmi_copy_peer_flags()
1744 cmd->peer_flags |= WMI_PEER_NEED_GTK_2_WAY; in ath11k_wmi_copy_peer_flags()
1747 cmd->peer_flags &= ~(WMI_PEER_NEED_PTK_4_WAY | in ath11k_wmi_copy_peer_flags()
1751 cmd->peer_flags |= WMI_PEER_PMF; in ath11k_wmi_copy_peer_flags()
1764 cmd->peer_flags &= ~WMI_PEER_HT; in ath11k_wmi_copy_peer_flags()
1771 struct wmi_peer_assoc_complete_cmd *cmd; in ath11k_wmi_send_peer_assoc_cmd() local
1786 len = sizeof(*cmd) + in ath11k_wmi_send_peer_assoc_cmd()
1798 cmd = ptr; in ath11k_wmi_send_peer_assoc_cmd()
1799 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_peer_assoc_cmd()
1801 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_peer_assoc_cmd()
1803 cmd->vdev_id = param->vdev_id; in ath11k_wmi_send_peer_assoc_cmd()
1805 cmd->peer_new_assoc = param->peer_new_assoc; in ath11k_wmi_send_peer_assoc_cmd()
1806 cmd->peer_associd = param->peer_associd; in ath11k_wmi_send_peer_assoc_cmd()
1808 ath11k_wmi_copy_peer_flags(cmd, param); in ath11k_wmi_send_peer_assoc_cmd()
1810 ether_addr_copy(cmd->peer_macaddr.addr, param->peer_mac); in ath11k_wmi_send_peer_assoc_cmd()
1812 cmd->peer_rate_caps = param->peer_rate_caps; in ath11k_wmi_send_peer_assoc_cmd()
1813 cmd->peer_caps = param->peer_caps; in ath11k_wmi_send_peer_assoc_cmd()
1814 cmd->peer_listen_intval = param->peer_listen_intval; in ath11k_wmi_send_peer_assoc_cmd()
1815 cmd->peer_ht_caps = param->peer_ht_caps; in ath11k_wmi_send_peer_assoc_cmd()
1816 cmd->peer_max_mpdu = param->peer_max_mpdu; in ath11k_wmi_send_peer_assoc_cmd()
1817 cmd->peer_mpdu_density = param->peer_mpdu_density; in ath11k_wmi_send_peer_assoc_cmd()
1818 cmd->peer_vht_caps = param->peer_vht_caps; in ath11k_wmi_send_peer_assoc_cmd()
1819 cmd->peer_phymode = param->peer_phymode; in ath11k_wmi_send_peer_assoc_cmd()
1822 cmd->peer_he_cap_info = param->peer_he_cap_macinfo[0]; in ath11k_wmi_send_peer_assoc_cmd()
1823 cmd->peer_he_cap_info_ext = param->peer_he_cap_macinfo[1]; in ath11k_wmi_send_peer_assoc_cmd()
1824 cmd->peer_he_cap_info_internal = param->peer_he_cap_macinfo_internal; in ath11k_wmi_send_peer_assoc_cmd()
1825 cmd->peer_he_caps_6ghz = param->peer_he_caps_6ghz; in ath11k_wmi_send_peer_assoc_cmd()
1826 cmd->peer_he_ops = param->peer_he_ops; in ath11k_wmi_send_peer_assoc_cmd()
1827 memcpy(&cmd->peer_he_cap_phy, ¶m->peer_he_cap_phyinfo, in ath11k_wmi_send_peer_assoc_cmd()
1829 memcpy(&cmd->peer_ppet, ¶m->peer_ppet, in ath11k_wmi_send_peer_assoc_cmd()
1833 ptr += sizeof(*cmd); in ath11k_wmi_send_peer_assoc_cmd()
1841 cmd->num_peer_legacy_rates = param->peer_legacy_rates.num_rates; in ath11k_wmi_send_peer_assoc_cmd()
1852 cmd->num_peer_ht_rates = param->peer_ht_rates.num_rates; in ath11k_wmi_send_peer_assoc_cmd()
1864 cmd->peer_nss = param->peer_nss; in ath11k_wmi_send_peer_assoc_cmd()
1867 cmd->peer_bw_rxnss_override = 0; in ath11k_wmi_send_peer_assoc_cmd()
1868 cmd->peer_bw_rxnss_override |= param->peer_bw_rxnss_override; in ath11k_wmi_send_peer_assoc_cmd()
1878 cmd->peer_he_mcs = param->peer_he_mcs_count; in ath11k_wmi_send_peer_assoc_cmd()
1879 cmd->min_data_rate = param->min_data_rate; in ath11k_wmi_send_peer_assoc_cmd()
1912 cmd->vdev_id, cmd->peer_associd, param->peer_mac, in ath11k_wmi_send_peer_assoc_cmd()
1913 cmd->peer_flags, cmd->peer_rate_caps, cmd->peer_caps, in ath11k_wmi_send_peer_assoc_cmd()
1914 cmd->peer_listen_intval, cmd->peer_ht_caps, in ath11k_wmi_send_peer_assoc_cmd()
1915 cmd->peer_max_mpdu, cmd->peer_nss, cmd->peer_phymode, in ath11k_wmi_send_peer_assoc_cmd()
1916 cmd->peer_mpdu_density, in ath11k_wmi_send_peer_assoc_cmd()
1917 cmd->peer_vht_caps, cmd->peer_he_cap_info, in ath11k_wmi_send_peer_assoc_cmd()
1918 cmd->peer_he_ops, cmd->peer_he_cap_info_ext, in ath11k_wmi_send_peer_assoc_cmd()
1919 cmd->peer_he_cap_phy[0], cmd->peer_he_cap_phy[1], in ath11k_wmi_send_peer_assoc_cmd()
1920 cmd->peer_he_cap_phy[2], in ath11k_wmi_send_peer_assoc_cmd()
1921 cmd->peer_bw_rxnss_override); in ath11k_wmi_send_peer_assoc_cmd()
1954 ath11k_wmi_copy_scan_event_cntrl_flags(struct wmi_start_scan_cmd *cmd, in ath11k_wmi_copy_scan_event_cntrl_flags() argument
1959 cmd->notify_scan_events |= WMI_SCAN_EVENT_STARTED; in ath11k_wmi_copy_scan_event_cntrl_flags()
1961 cmd->notify_scan_events |= WMI_SCAN_EVENT_COMPLETED; in ath11k_wmi_copy_scan_event_cntrl_flags()
1963 cmd->notify_scan_events |= WMI_SCAN_EVENT_BSS_CHANNEL; in ath11k_wmi_copy_scan_event_cntrl_flags()
1965 cmd->notify_scan_events |= WMI_SCAN_EVENT_FOREIGN_CHAN; in ath11k_wmi_copy_scan_event_cntrl_flags()
1967 cmd->notify_scan_events |= WMI_SCAN_EVENT_DEQUEUED; in ath11k_wmi_copy_scan_event_cntrl_flags()
1969 cmd->notify_scan_events |= WMI_SCAN_EVENT_PREEMPTED; in ath11k_wmi_copy_scan_event_cntrl_flags()
1971 cmd->notify_scan_events |= WMI_SCAN_EVENT_START_FAILED; in ath11k_wmi_copy_scan_event_cntrl_flags()
1973 cmd->notify_scan_events |= WMI_SCAN_EVENT_RESTARTED; in ath11k_wmi_copy_scan_event_cntrl_flags()
1975 cmd->notify_scan_events |= WMI_SCAN_EVENT_FOREIGN_CHAN_EXIT; in ath11k_wmi_copy_scan_event_cntrl_flags()
1977 cmd->notify_scan_events |= WMI_SCAN_EVENT_SUSPENDED; in ath11k_wmi_copy_scan_event_cntrl_flags()
1979 cmd->notify_scan_events |= WMI_SCAN_EVENT_RESUMED; in ath11k_wmi_copy_scan_event_cntrl_flags()
1982 cmd->scan_ctrl_flags = 0; in ath11k_wmi_copy_scan_event_cntrl_flags()
1984 cmd->scan_ctrl_flags |= WMI_SCAN_FLAG_PASSIVE; in ath11k_wmi_copy_scan_event_cntrl_flags()
1986 cmd->scan_ctrl_flags |= WMI_SCAN_FLAG_STRICT_PASSIVE_ON_PCHN; in ath11k_wmi_copy_scan_event_cntrl_flags()
1988 cmd->scan_ctrl_flags |= WMI_SCAN_FILTER_PROMISCUOS; in ath11k_wmi_copy_scan_event_cntrl_flags()
1990 cmd->scan_ctrl_flags |= WMI_SCAN_CAPTURE_PHY_ERROR; in ath11k_wmi_copy_scan_event_cntrl_flags()
1992 cmd->scan_ctrl_flags |= WMI_SCAN_FLAG_HALF_RATE_SUPPORT; in ath11k_wmi_copy_scan_event_cntrl_flags()
1994 cmd->scan_ctrl_flags |= WMI_SCAN_FLAG_QUARTER_RATE_SUPPORT; in ath11k_wmi_copy_scan_event_cntrl_flags()
1996 cmd->scan_ctrl_flags |= WMI_SCAN_ADD_CCK_RATES; in ath11k_wmi_copy_scan_event_cntrl_flags()
1998 cmd->scan_ctrl_flags |= WMI_SCAN_ADD_OFDM_RATES; in ath11k_wmi_copy_scan_event_cntrl_flags()
2000 cmd->scan_ctrl_flags |= WMI_SCAN_CHAN_STAT_EVENT; in ath11k_wmi_copy_scan_event_cntrl_flags()
2002 cmd->scan_ctrl_flags |= WMI_SCAN_FILTER_PROBE_REQ; in ath11k_wmi_copy_scan_event_cntrl_flags()
2004 cmd->scan_ctrl_flags |= WMI_SCAN_ADD_BCAST_PROBE_REQ; in ath11k_wmi_copy_scan_event_cntrl_flags()
2006 cmd->scan_ctrl_flags |= WMI_SCAN_OFFCHAN_MGMT_TX; in ath11k_wmi_copy_scan_event_cntrl_flags()
2008 cmd->scan_ctrl_flags |= WMI_SCAN_OFFCHAN_DATA_TX; in ath11k_wmi_copy_scan_event_cntrl_flags()
2010 cmd->scan_ctrl_flags |= WMI_SCAN_FLAG_FORCE_ACTIVE_ON_DFS; in ath11k_wmi_copy_scan_event_cntrl_flags()
2012 cmd->scan_ctrl_flags |= WMI_SCAN_ADD_TPC_IE_IN_PROBE_REQ; in ath11k_wmi_copy_scan_event_cntrl_flags()
2014 cmd->scan_ctrl_flags |= WMI_SCAN_ADD_DS_IE_IN_PROBE_REQ; in ath11k_wmi_copy_scan_event_cntrl_flags()
2016 cmd->scan_ctrl_flags |= WMI_SCAN_ADD_SPOOF_MAC_IN_PROBE_REQ; in ath11k_wmi_copy_scan_event_cntrl_flags()
2018 cmd->scan_ctrl_flags |= WMI_SCAN_RANDOM_SEQ_NO_IN_PROBE_REQ; in ath11k_wmi_copy_scan_event_cntrl_flags()
2020 cmd->scan_ctrl_flags |= in ath11k_wmi_copy_scan_event_cntrl_flags()
2024 WMI_SCAN_SET_DWELL_MODE(cmd->scan_ctrl_flags, in ath11k_wmi_copy_scan_event_cntrl_flags()
2032 struct wmi_start_scan_cmd *cmd; in ath11k_wmi_send_scan_start_cmd() local
2044 len = sizeof(*cmd); in ath11k_wmi_send_scan_start_cmd()
2078 cmd = ptr; in ath11k_wmi_send_scan_start_cmd()
2079 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_START_SCAN_CMD) | in ath11k_wmi_send_scan_start_cmd()
2080 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_scan_start_cmd()
2082 cmd->scan_id = params->scan_id; in ath11k_wmi_send_scan_start_cmd()
2083 cmd->scan_req_id = params->scan_req_id; in ath11k_wmi_send_scan_start_cmd()
2084 cmd->vdev_id = params->vdev_id; in ath11k_wmi_send_scan_start_cmd()
2085 cmd->scan_priority = params->scan_priority; in ath11k_wmi_send_scan_start_cmd()
2086 cmd->notify_scan_events = params->notify_scan_events; in ath11k_wmi_send_scan_start_cmd()
2088 ath11k_wmi_copy_scan_event_cntrl_flags(cmd, params); in ath11k_wmi_send_scan_start_cmd()
2090 cmd->dwell_time_active = params->dwell_time_active; in ath11k_wmi_send_scan_start_cmd()
2091 cmd->dwell_time_active_2g = params->dwell_time_active_2g; in ath11k_wmi_send_scan_start_cmd()
2092 cmd->dwell_time_passive = params->dwell_time_passive; in ath11k_wmi_send_scan_start_cmd()
2093 cmd->dwell_time_active_6g = params->dwell_time_active_6g; in ath11k_wmi_send_scan_start_cmd()
2094 cmd->dwell_time_passive_6g = params->dwell_time_passive_6g; in ath11k_wmi_send_scan_start_cmd()
2095 cmd->min_rest_time = params->min_rest_time; in ath11k_wmi_send_scan_start_cmd()
2096 cmd->max_rest_time = params->max_rest_time; in ath11k_wmi_send_scan_start_cmd()
2097 cmd->repeat_probe_time = params->repeat_probe_time; in ath11k_wmi_send_scan_start_cmd()
2098 cmd->probe_spacing_time = params->probe_spacing_time; in ath11k_wmi_send_scan_start_cmd()
2099 cmd->idle_time = params->idle_time; in ath11k_wmi_send_scan_start_cmd()
2100 cmd->max_scan_time = params->max_scan_time; in ath11k_wmi_send_scan_start_cmd()
2101 cmd->probe_delay = params->probe_delay; in ath11k_wmi_send_scan_start_cmd()
2102 cmd->burst_duration = params->burst_duration; in ath11k_wmi_send_scan_start_cmd()
2103 cmd->num_chan = params->num_chan; in ath11k_wmi_send_scan_start_cmd()
2104 cmd->num_bssid = params->num_bssid; in ath11k_wmi_send_scan_start_cmd()
2105 cmd->num_ssids = params->num_ssids; in ath11k_wmi_send_scan_start_cmd()
2106 cmd->ie_len = params->extraie.len; in ath11k_wmi_send_scan_start_cmd()
2107 cmd->n_probes = params->n_probes; in ath11k_wmi_send_scan_start_cmd()
2109 ptr += sizeof(*cmd); in ath11k_wmi_send_scan_start_cmd()
2217 struct wmi_stop_scan_cmd *cmd; in ath11k_wmi_send_scan_stop_cmd() local
2221 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_scan_stop_cmd()
2225 cmd = (struct wmi_stop_scan_cmd *)skb->data; in ath11k_wmi_send_scan_stop_cmd()
2227 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_STOP_SCAN_CMD) | in ath11k_wmi_send_scan_stop_cmd()
2228 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_scan_stop_cmd()
2230 cmd->vdev_id = param->vdev_id; in ath11k_wmi_send_scan_stop_cmd()
2231 cmd->requestor = param->requester; in ath11k_wmi_send_scan_stop_cmd()
2232 cmd->scan_id = param->scan_id; in ath11k_wmi_send_scan_stop_cmd()
2233 cmd->pdev_id = param->pdev_id; in ath11k_wmi_send_scan_stop_cmd()
2237 cmd->req_type = WMI_SCAN_STOP_ALL; in ath11k_wmi_send_scan_stop_cmd()
2240 cmd->req_type = WMI_SCN_STOP_VAP_ALL; in ath11k_wmi_send_scan_stop_cmd()
2243 cmd->req_type = WMI_SCAN_STOP_ONE; in ath11k_wmi_send_scan_stop_cmd()
2265 struct wmi_scan_chan_list_cmd *cmd; in ath11k_wmi_send_scan_chan_list_cmd() local
2277 len = sizeof(*cmd) + TLV_HDR_SIZE; in ath11k_wmi_send_scan_chan_list_cmd()
2293 cmd = (struct wmi_scan_chan_list_cmd *)skb->data; in ath11k_wmi_send_scan_chan_list_cmd()
2294 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_SCAN_CHAN_LIST_CMD) | in ath11k_wmi_send_scan_chan_list_cmd()
2295 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_scan_chan_list_cmd()
2296 cmd->pdev_id = chan_list->pdev_id; in ath11k_wmi_send_scan_chan_list_cmd()
2297 cmd->num_scan_chans = num_send_chans; in ath11k_wmi_send_scan_chan_list_cmd()
2299 cmd->flags |= WMI_APPEND_TO_EXISTING_CHAN_LIST_FLAG; in ath11k_wmi_send_scan_chan_list_cmd()
2303 num_send_chans, len, cmd->pdev_id, num_sends); in ath11k_wmi_send_scan_chan_list_cmd()
2305 ptr = skb->data + sizeof(*cmd); in ath11k_wmi_send_scan_chan_list_cmd()
2382 struct wmi_vdev_set_wmm_params_cmd *cmd; in ath11k_wmi_send_wmm_update_cmd_tlv() local
2388 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_wmm_update_cmd_tlv()
2392 cmd = (struct wmi_vdev_set_wmm_params_cmd *)skb->data; in ath11k_wmi_send_wmm_update_cmd_tlv()
2393 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_wmm_update_cmd_tlv()
2395 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_wmm_update_cmd_tlv()
2397 cmd->vdev_id = vdev_id; in ath11k_wmi_send_wmm_update_cmd_tlv()
2398 cmd->wmm_param_type = 0; in ath11k_wmi_send_wmm_update_cmd_tlv()
2416 wmm_param = (struct wmi_wmm_params *)&cmd->wmm_params[ac]; in ath11k_wmi_send_wmm_update_cmd_tlv()
2451 struct wmi_dfs_phyerr_offload_cmd *cmd; in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd() local
2455 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd()
2459 cmd = (struct wmi_dfs_phyerr_offload_cmd *)skb->data; in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd()
2460 cmd->tlv_header = in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd()
2463 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd()
2465 cmd->pdev_id = pdev_id; in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd()
2485 struct wmi_delba_send_cmd *cmd; in ath11k_wmi_delba_send() local
2489 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_delba_send()
2493 cmd = (struct wmi_delba_send_cmd *)skb->data; in ath11k_wmi_delba_send()
2494 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_DELBA_SEND_CMD) | in ath11k_wmi_delba_send()
2495 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_delba_send()
2496 cmd->vdev_id = vdev_id; in ath11k_wmi_delba_send()
2497 ether_addr_copy(cmd->peer_macaddr.addr, mac); in ath11k_wmi_delba_send()
2498 cmd->tid = tid; in ath11k_wmi_delba_send()
2499 cmd->initiator = initiator; in ath11k_wmi_delba_send()
2500 cmd->reasoncode = reason; in ath11k_wmi_delba_send()
2521 struct wmi_addba_setresponse_cmd *cmd; in ath11k_wmi_addba_set_resp() local
2525 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_addba_set_resp()
2529 cmd = (struct wmi_addba_setresponse_cmd *)skb->data; in ath11k_wmi_addba_set_resp()
2530 cmd->tlv_header = in ath11k_wmi_addba_set_resp()
2532 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_addba_set_resp()
2533 cmd->vdev_id = vdev_id; in ath11k_wmi_addba_set_resp()
2534 ether_addr_copy(cmd->peer_macaddr.addr, mac); in ath11k_wmi_addba_set_resp()
2535 cmd->tid = tid; in ath11k_wmi_addba_set_resp()
2536 cmd->statuscode = status; in ath11k_wmi_addba_set_resp()
2557 struct wmi_addba_send_cmd *cmd; in ath11k_wmi_addba_send() local
2561 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_addba_send()
2565 cmd = (struct wmi_addba_send_cmd *)skb->data; in ath11k_wmi_addba_send()
2566 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ADDBA_SEND_CMD) | in ath11k_wmi_addba_send()
2567 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_addba_send()
2568 cmd->vdev_id = vdev_id; in ath11k_wmi_addba_send()
2569 ether_addr_copy(cmd->peer_macaddr.addr, mac); in ath11k_wmi_addba_send()
2570 cmd->tid = tid; in ath11k_wmi_addba_send()
2571 cmd->buffersize = buf_size; in ath11k_wmi_addba_send()
2591 struct wmi_addba_clear_resp_cmd *cmd; in ath11k_wmi_addba_clear_resp() local
2595 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_addba_clear_resp()
2599 cmd = (struct wmi_addba_clear_resp_cmd *)skb->data; in ath11k_wmi_addba_clear_resp()
2600 cmd->tlv_header = in ath11k_wmi_addba_clear_resp()
2602 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_addba_clear_resp()
2603 cmd->vdev_id = vdev_id; in ath11k_wmi_addba_clear_resp()
2604 ether_addr_copy(cmd->peer_macaddr.addr, mac); in ath11k_wmi_addba_clear_resp()
2624 struct wmi_pdev_pktlog_filter_cmd *cmd; in ath11k_wmi_pdev_peer_pktlog_filter() local
2631 len = sizeof(*cmd) + sizeof(*info) + TLV_HDR_SIZE; in ath11k_wmi_pdev_peer_pktlog_filter()
2636 cmd = (struct wmi_pdev_pktlog_filter_cmd *)skb->data; in ath11k_wmi_pdev_peer_pktlog_filter()
2638 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_PEER_PKTLOG_FILTER_CMD) | in ath11k_wmi_pdev_peer_pktlog_filter()
2639 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_peer_pktlog_filter()
2641 cmd->pdev_id = DP_HW2SW_MACID(ar->pdev->pdev_id); in ath11k_wmi_pdev_peer_pktlog_filter()
2642 cmd->num_mac = 1; in ath11k_wmi_pdev_peer_pktlog_filter()
2643 cmd->enable = enable; in ath11k_wmi_pdev_peer_pktlog_filter()
2645 ptr = skb->data + sizeof(*cmd); in ath11k_wmi_pdev_peer_pktlog_filter()
2674 struct wmi_init_country_cmd *cmd; in ath11k_wmi_send_init_country_cmd() local
2678 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_init_country_cmd()
2682 cmd = (struct wmi_init_country_cmd *)skb->data; in ath11k_wmi_send_init_country_cmd()
2683 cmd->tlv_header = in ath11k_wmi_send_init_country_cmd()
2686 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_init_country_cmd()
2688 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_send_init_country_cmd()
2692 cmd->init_cc_type = WMI_COUNTRY_INFO_TYPE_ALPHA; in ath11k_wmi_send_init_country_cmd()
2693 memcpy((u8 *)&cmd->cc_info.alpha2, in ath11k_wmi_send_init_country_cmd()
2697 cmd->init_cc_type = WMI_COUNTRY_INFO_TYPE_COUNTRY_CODE; in ath11k_wmi_send_init_country_cmd()
2698 cmd->cc_info.country_code = init_cc_params.cc_info.country_code; in ath11k_wmi_send_init_country_cmd()
2701 cmd->init_cc_type = WMI_COUNTRY_INFO_TYPE_REGDOMAIN; in ath11k_wmi_send_init_country_cmd()
2702 cmd->cc_info.regdom_id = init_cc_params.cc_info.regdom_id; in ath11k_wmi_send_init_country_cmd()
2728 struct wmi_therm_throt_config_request_cmd *cmd; in ath11k_wmi_send_thermal_mitigation_param_cmd() local
2734 len = sizeof(*cmd) + TLV_HDR_SIZE + in ath11k_wmi_send_thermal_mitigation_param_cmd()
2741 cmd = (struct wmi_therm_throt_config_request_cmd *)skb->data; in ath11k_wmi_send_thermal_mitigation_param_cmd()
2743 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_THERM_THROT_CONFIG_REQUEST) | in ath11k_wmi_send_thermal_mitigation_param_cmd()
2744 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_thermal_mitigation_param_cmd()
2746 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_send_thermal_mitigation_param_cmd()
2747 cmd->enable = param->enable; in ath11k_wmi_send_thermal_mitigation_param_cmd()
2748 cmd->dc = param->dc; in ath11k_wmi_send_thermal_mitigation_param_cmd()
2749 cmd->dc_per_event = param->dc_per_event; in ath11k_wmi_send_thermal_mitigation_param_cmd()
2750 cmd->therm_throt_levels = THERMAL_LEVELS; in ath11k_wmi_send_thermal_mitigation_param_cmd()
2752 tlv = (struct wmi_tlv *)(skb->data + sizeof(*cmd)); in ath11k_wmi_send_thermal_mitigation_param_cmd()
2759 sizeof(*cmd) + in ath11k_wmi_send_thermal_mitigation_param_cmd()
2790 struct wmi_pktlog_enable_cmd *cmd; in ath11k_wmi_pdev_pktlog_enable() local
2794 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_pktlog_enable()
2798 cmd = (struct wmi_pktlog_enable_cmd *)skb->data; in ath11k_wmi_pdev_pktlog_enable()
2800 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_PKTLOG_ENABLE_CMD) | in ath11k_wmi_pdev_pktlog_enable()
2801 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_pktlog_enable()
2803 cmd->pdev_id = DP_HW2SW_MACID(ar->pdev->pdev_id); in ath11k_wmi_pdev_pktlog_enable()
2804 cmd->evlist = pktlog_filter; in ath11k_wmi_pdev_pktlog_enable()
2805 cmd->enable = ATH11K_WMI_PKTLOG_ENABLE_FORCE; in ath11k_wmi_pdev_pktlog_enable()
2820 struct wmi_pktlog_disable_cmd *cmd; in ath11k_wmi_pdev_pktlog_disable() local
2824 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_pktlog_disable()
2828 cmd = (struct wmi_pktlog_disable_cmd *)skb->data; in ath11k_wmi_pdev_pktlog_disable()
2830 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_PKTLOG_DISABLE_CMD) | in ath11k_wmi_pdev_pktlog_disable()
2831 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_pktlog_disable()
2833 cmd->pdev_id = DP_HW2SW_MACID(ar->pdev->pdev_id); in ath11k_wmi_pdev_pktlog_disable()
2850 struct wmi_twt_enable_params_cmd *cmd; in ath11k_wmi_send_twt_enable_cmd() local
2854 len = sizeof(*cmd); in ath11k_wmi_send_twt_enable_cmd()
2860 cmd = (struct wmi_twt_enable_params_cmd *)skb->data; in ath11k_wmi_send_twt_enable_cmd()
2861 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_TWT_ENABLE_CMD) | in ath11k_wmi_send_twt_enable_cmd()
2863 cmd->pdev_id = pdev_id; in ath11k_wmi_send_twt_enable_cmd()
2864 cmd->sta_cong_timer_ms = ATH11K_TWT_DEF_STA_CONG_TIMER_MS; in ath11k_wmi_send_twt_enable_cmd()
2865 cmd->default_slot_size = ATH11K_TWT_DEF_DEFAULT_SLOT_SIZE; in ath11k_wmi_send_twt_enable_cmd()
2866 cmd->congestion_thresh_setup = ATH11K_TWT_DEF_CONGESTION_THRESH_SETUP; in ath11k_wmi_send_twt_enable_cmd()
2867 cmd->congestion_thresh_teardown = in ath11k_wmi_send_twt_enable_cmd()
2869 cmd->congestion_thresh_critical = in ath11k_wmi_send_twt_enable_cmd()
2871 cmd->interference_thresh_teardown = in ath11k_wmi_send_twt_enable_cmd()
2873 cmd->interference_thresh_setup = in ath11k_wmi_send_twt_enable_cmd()
2875 cmd->min_no_sta_setup = ATH11K_TWT_DEF_MIN_NO_STA_SETUP; in ath11k_wmi_send_twt_enable_cmd()
2876 cmd->min_no_sta_teardown = ATH11K_TWT_DEF_MIN_NO_STA_TEARDOWN; in ath11k_wmi_send_twt_enable_cmd()
2877 cmd->no_of_bcast_mcast_slots = ATH11K_TWT_DEF_NO_OF_BCAST_MCAST_SLOTS; in ath11k_wmi_send_twt_enable_cmd()
2878 cmd->min_no_twt_slots = ATH11K_TWT_DEF_MIN_NO_TWT_SLOTS; in ath11k_wmi_send_twt_enable_cmd()
2879 cmd->max_no_sta_twt = ATH11K_TWT_DEF_MAX_NO_STA_TWT; in ath11k_wmi_send_twt_enable_cmd()
2880 cmd->mode_check_interval = ATH11K_TWT_DEF_MODE_CHECK_INTERVAL; in ath11k_wmi_send_twt_enable_cmd()
2881 cmd->add_sta_slot_interval = ATH11K_TWT_DEF_ADD_STA_SLOT_INTERVAL; in ath11k_wmi_send_twt_enable_cmd()
2882 cmd->remove_sta_slot_interval = in ath11k_wmi_send_twt_enable_cmd()
2885 cmd->mbss_support = 0; in ath11k_wmi_send_twt_enable_cmd()
2901 struct wmi_twt_disable_params_cmd *cmd; in ath11k_wmi_send_twt_disable_cmd() local
2905 len = sizeof(*cmd); in ath11k_wmi_send_twt_disable_cmd()
2911 cmd = (struct wmi_twt_disable_params_cmd *)skb->data; in ath11k_wmi_send_twt_disable_cmd()
2912 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_TWT_DISABLE_CMD) | in ath11k_wmi_send_twt_disable_cmd()
2914 cmd->pdev_id = pdev_id; in ath11k_wmi_send_twt_disable_cmd()
2931 struct wmi_obss_spatial_reuse_params_cmd *cmd; in ath11k_wmi_send_obss_spr_cmd() local
2935 len = sizeof(*cmd); in ath11k_wmi_send_obss_spr_cmd()
2941 cmd = (struct wmi_obss_spatial_reuse_params_cmd *)skb->data; in ath11k_wmi_send_obss_spr_cmd()
2942 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_obss_spr_cmd()
2945 cmd->vdev_id = vdev_id; in ath11k_wmi_send_obss_spr_cmd()
2946 cmd->enable = he_obss_pd->enable; in ath11k_wmi_send_obss_spr_cmd()
2947 cmd->obss_min = he_obss_pd->min_offset; in ath11k_wmi_send_obss_spr_cmd()
2948 cmd->obss_max = he_obss_pd->max_offset; in ath11k_wmi_send_obss_spr_cmd()
2967 struct wmi_obss_color_collision_cfg_params_cmd *cmd; in ath11k_wmi_send_obss_color_collision_cfg_cmd() local
2971 len = sizeof(*cmd); in ath11k_wmi_send_obss_color_collision_cfg_cmd()
2977 cmd = (struct wmi_obss_color_collision_cfg_params_cmd *)skb->data; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
2978 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_obss_color_collision_cfg_cmd()
2981 cmd->vdev_id = vdev_id; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
2982 cmd->evt_type = enable ? ATH11K_OBSS_COLOR_COLLISION_DETECTION : in ath11k_wmi_send_obss_color_collision_cfg_cmd()
2984 cmd->current_bss_color = bss_color; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
2985 cmd->detection_period_ms = period; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
2986 cmd->scan_period_ms = ATH11K_BSS_COLOR_COLLISION_SCAN_PERIOD_MS; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
2987 cmd->free_slot_expiry_time_ms = 0; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
2988 cmd->flags = 0; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
2992 cmd->vdev_id, cmd->evt_type, cmd->current_bss_color, in ath11k_wmi_send_obss_color_collision_cfg_cmd()
2993 cmd->detection_period_ms, cmd->scan_period_ms); in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3009 struct wmi_bss_color_change_enable_params_cmd *cmd; in ath11k_wmi_send_bss_color_change_enable_cmd() local
3013 len = sizeof(*cmd); in ath11k_wmi_send_bss_color_change_enable_cmd()
3019 cmd = (struct wmi_bss_color_change_enable_params_cmd *)skb->data; in ath11k_wmi_send_bss_color_change_enable_cmd()
3020 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_BSS_COLOR_CHANGE_ENABLE) | in ath11k_wmi_send_bss_color_change_enable_cmd()
3022 cmd->vdev_id = vdev_id; in ath11k_wmi_send_bss_color_change_enable_cmd()
3023 cmd->enable = enable ? 1 : 0; in ath11k_wmi_send_bss_color_change_enable_cmd()
3027 cmd->vdev_id, cmd->enable); in ath11k_wmi_send_bss_color_change_enable_cmd()
3139 struct wmi_init_cmd *cmd; in ath11k_init_cmd_send() local
3154 len = sizeof(*cmd) + TLV_HDR_SIZE + sizeof(*cfg) + hw_mode_len + in ath11k_init_cmd_send()
3161 cmd = (struct wmi_init_cmd *)skb->data; in ath11k_init_cmd_send()
3163 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_INIT_CMD) | in ath11k_init_cmd_send()
3164 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_init_cmd_send()
3166 ptr = skb->data + sizeof(*cmd); in ath11k_init_cmd_send()
3194 cmd->num_host_mem_chunks = param->num_mem_chunks; in ath11k_init_cmd_send()
3251 struct ath11k_wmi_pdev_lro_config_cmd *cmd; in ath11k_wmi_pdev_lro_cfg() local
3255 skb = ath11k_wmi_alloc_skb(ar->wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_lro_cfg()
3259 cmd = (struct ath11k_wmi_pdev_lro_config_cmd *)skb->data; in ath11k_wmi_pdev_lro_cfg()
3260 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_LRO_INFO_CMD) | in ath11k_wmi_pdev_lro_cfg()
3261 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_lro_cfg()
3263 get_random_bytes(cmd->th_4, sizeof(uint32_t) * ATH11K_IPV4_TH_SEED_SIZE); in ath11k_wmi_pdev_lro_cfg()
3264 get_random_bytes(cmd->th_6, sizeof(uint32_t) * ATH11K_IPV6_TH_SEED_SIZE); in ath11k_wmi_pdev_lro_cfg()
3266 cmd->pdev_id = pdev_id; in ath11k_wmi_pdev_lro_cfg()
3339 struct ath11k_wmi_vdev_spectral_conf_cmd *cmd; in ath11k_wmi_vdev_spectral_conf() local
3343 skb = ath11k_wmi_alloc_skb(ar->wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_spectral_conf()
3347 cmd = (struct ath11k_wmi_vdev_spectral_conf_cmd *)skb->data; in ath11k_wmi_vdev_spectral_conf()
3348 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_vdev_spectral_conf()
3350 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_spectral_conf()
3352 memcpy(&cmd->param, param, sizeof(*param)); in ath11k_wmi_vdev_spectral_conf()
3375 struct ath11k_wmi_vdev_spectral_enable_cmd *cmd; in ath11k_wmi_vdev_spectral_enable() local
3379 skb = ath11k_wmi_alloc_skb(ar->wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_spectral_enable()
3383 cmd = (struct ath11k_wmi_vdev_spectral_enable_cmd *)skb->data; in ath11k_wmi_vdev_spectral_enable()
3384 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_vdev_spectral_enable()
3386 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_spectral_enable()
3388 cmd->vdev_id = vdev_id; in ath11k_wmi_vdev_spectral_enable()
3389 cmd->trigger_cmd = trigger; in ath11k_wmi_vdev_spectral_enable()
3390 cmd->enable_cmd = enable; in ath11k_wmi_vdev_spectral_enable()
3413 struct ath11k_wmi_pdev_dma_ring_cfg_req_cmd *cmd; in ath11k_wmi_pdev_dma_ring_cfg() local
3417 skb = ath11k_wmi_alloc_skb(ar->wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_dma_ring_cfg()
3421 cmd = (struct ath11k_wmi_pdev_dma_ring_cfg_req_cmd *)skb->data; in ath11k_wmi_pdev_dma_ring_cfg()
3422 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_DMA_RING_CFG_REQ) | in ath11k_wmi_pdev_dma_ring_cfg()
3423 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_dma_ring_cfg()
3425 cmd->pdev_id = param->pdev_id; in ath11k_wmi_pdev_dma_ring_cfg()
3426 cmd->module_id = param->module_id; in ath11k_wmi_pdev_dma_ring_cfg()
3427 cmd->base_paddr_lo = param->base_paddr_lo; in ath11k_wmi_pdev_dma_ring_cfg()
3428 cmd->base_paddr_hi = param->base_paddr_hi; in ath11k_wmi_pdev_dma_ring_cfg()
3429 cmd->head_idx_paddr_lo = param->head_idx_paddr_lo; in ath11k_wmi_pdev_dma_ring_cfg()
3430 cmd->head_idx_paddr_hi = param->head_idx_paddr_hi; in ath11k_wmi_pdev_dma_ring_cfg()
3431 cmd->tail_idx_paddr_lo = param->tail_idx_paddr_lo; in ath11k_wmi_pdev_dma_ring_cfg()
3432 cmd->tail_idx_paddr_hi = param->tail_idx_paddr_hi; in ath11k_wmi_pdev_dma_ring_cfg()
3433 cmd->num_elems = param->num_elems; in ath11k_wmi_pdev_dma_ring_cfg()
3434 cmd->buf_size = param->buf_size; in ath11k_wmi_pdev_dma_ring_cfg()
3435 cmd->num_resp_per_event = param->num_resp_per_event; in ath11k_wmi_pdev_dma_ring_cfg()
3436 cmd->event_timeout_ms = param->event_timeout_ms; in ath11k_wmi_pdev_dma_ring_cfg()
6567 struct wmi_unit_test_cmd *cmd; in ath11k_wmi_send_unit_test_cmd() local
6583 cmd = (struct wmi_unit_test_cmd *)skb->data; in ath11k_wmi_send_unit_test_cmd()
6584 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_UNIT_TEST_CMD) | in ath11k_wmi_send_unit_test_cmd()
6587 cmd->vdev_id = ut_cmd.vdev_id; in ath11k_wmi_send_unit_test_cmd()
6588 cmd->module_id = ut_cmd.module_id; in ath11k_wmi_send_unit_test_cmd()
6589 cmd->num_args = ut_cmd.num_args; in ath11k_wmi_send_unit_test_cmd()
6590 cmd->diag_token = ut_cmd.diag_token; in ath11k_wmi_send_unit_test_cmd()
6614 cmd->module_id, cmd->vdev_id, cmd->num_args, in ath11k_wmi_send_unit_test_cmd()
6615 cmd->diag_token); in ath11k_wmi_send_unit_test_cmd()