Lines Matching full:cmd
303 u32 cmd = 0; in ath11k_wmi_cmd_send_nowait() local
308 cmd |= FIELD_PREP(WMI_CMD_HDR_CMD_ID, cmd_id); in ath11k_wmi_cmd_send_nowait()
311 cmd_hdr->cmd_id = cmd; in ath11k_wmi_cmd_send_nowait()
704 struct wmi_mgmt_send_cmd *cmd; in ath11k_wmi_mgmt_send() local
713 len = sizeof(*cmd) + sizeof(*frame_tlv) + roundup(buf_len, 4); in ath11k_wmi_mgmt_send()
719 cmd = (struct wmi_mgmt_send_cmd *)skb->data; in ath11k_wmi_mgmt_send()
720 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_MGMT_TX_SEND_CMD) | in ath11k_wmi_mgmt_send()
721 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_mgmt_send()
722 cmd->vdev_id = vdev_id; in ath11k_wmi_mgmt_send()
723 cmd->desc_id = buf_id; in ath11k_wmi_mgmt_send()
724 cmd->chanfreq = ath11k_wmi_mgmt_get_freq(ar, info); in ath11k_wmi_mgmt_send()
725 cmd->paddr_lo = lower_32_bits(ATH11K_SKB_CB(frame)->paddr); in ath11k_wmi_mgmt_send()
726 cmd->paddr_hi = upper_32_bits(ATH11K_SKB_CB(frame)->paddr); in ath11k_wmi_mgmt_send()
727 cmd->frame_len = frame->len; in ath11k_wmi_mgmt_send()
728 cmd->buf_len = buf_len; in ath11k_wmi_mgmt_send()
729 cmd->tx_params_valid = 0; in ath11k_wmi_mgmt_send()
731 frame_tlv = (struct wmi_tlv *)(skb->data + sizeof(*cmd)); in ath11k_wmi_mgmt_send()
742 "failed to submit WMI_MGMT_TX_SEND_CMDID cmd\n"); in ath11k_wmi_mgmt_send()
746 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd mgmt tx send"); in ath11k_wmi_mgmt_send()
755 struct wmi_vdev_create_cmd *cmd; in ath11k_wmi_vdev_create() local
770 len = sizeof(*cmd) + TLV_HDR_SIZE + in ath11k_wmi_vdev_create()
777 cmd = (struct wmi_vdev_create_cmd *)skb->data; in ath11k_wmi_vdev_create()
778 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_CREATE_CMD) | in ath11k_wmi_vdev_create()
779 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_create()
781 cmd->vdev_id = param->if_id; in ath11k_wmi_vdev_create()
782 cmd->vdev_type = param->type; in ath11k_wmi_vdev_create()
783 cmd->vdev_subtype = param->subtype; in ath11k_wmi_vdev_create()
784 cmd->num_cfg_txrx_streams = WMI_NUM_SUPPORTED_BAND_MAX; in ath11k_wmi_vdev_create()
785 cmd->pdev_id = param->pdev_id; in ath11k_wmi_vdev_create()
786 cmd->mbssid_flags = param->mbssid_flags; in ath11k_wmi_vdev_create()
787 cmd->mbssid_tx_vdev_id = param->mbssid_tx_vdev_id; in ath11k_wmi_vdev_create()
789 ether_addr_copy(cmd->vdev_macaddr.addr, macaddr); in ath11k_wmi_vdev_create()
791 ptr = skb->data + sizeof(*cmd); in ath11k_wmi_vdev_create()
836 "cmd vdev create id %d type %d subtype %d macaddr %pM pdevid %d\n", in ath11k_wmi_vdev_create()
846 struct wmi_vdev_delete_cmd *cmd; in ath11k_wmi_vdev_delete() local
850 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_delete()
854 cmd = (struct wmi_vdev_delete_cmd *)skb->data; in ath11k_wmi_vdev_delete()
855 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_DELETE_CMD) | in ath11k_wmi_vdev_delete()
856 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_delete()
857 cmd->vdev_id = vdev_id; in ath11k_wmi_vdev_delete()
865 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd vdev delete id %d\n", vdev_id); in ath11k_wmi_vdev_delete()
873 struct wmi_vdev_stop_cmd *cmd; in ath11k_wmi_vdev_stop() local
877 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_stop()
881 cmd = (struct wmi_vdev_stop_cmd *)skb->data; in ath11k_wmi_vdev_stop()
883 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_STOP_CMD) | in ath11k_wmi_vdev_stop()
884 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_stop()
885 cmd->vdev_id = vdev_id; in ath11k_wmi_vdev_stop()
889 ath11k_warn(ar->ab, "failed to submit WMI_VDEV_STOP cmd\n"); in ath11k_wmi_vdev_stop()
893 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd vdev stop id 0x%x\n", vdev_id); in ath11k_wmi_vdev_stop()
901 struct wmi_vdev_down_cmd *cmd; in ath11k_wmi_vdev_down() local
905 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_down()
909 cmd = (struct wmi_vdev_down_cmd *)skb->data; in ath11k_wmi_vdev_down()
911 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_DOWN_CMD) | in ath11k_wmi_vdev_down()
912 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_down()
913 cmd->vdev_id = vdev_id; in ath11k_wmi_vdev_down()
917 ath11k_warn(ar->ab, "failed to submit WMI_VDEV_DOWN cmd\n"); in ath11k_wmi_vdev_down()
921 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd vdev down id 0x%x\n", vdev_id); in ath11k_wmi_vdev_down()
984 struct wmi_vdev_start_request_cmd *cmd; in ath11k_wmi_vdev_start() local
995 if (WARN_ON(arg->ssid_len > sizeof(cmd->ssid.ssid))) in ath11k_wmi_vdev_start()
998 len = sizeof(*cmd) + sizeof(*chan) + TLV_HDR_SIZE; in ath11k_wmi_vdev_start()
1004 cmd = (struct wmi_vdev_start_request_cmd *)skb->data; in ath11k_wmi_vdev_start()
1005 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_vdev_start()
1007 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_start()
1008 cmd->vdev_id = arg->vdev_id; in ath11k_wmi_vdev_start()
1009 cmd->beacon_interval = arg->bcn_intval; in ath11k_wmi_vdev_start()
1010 cmd->bcn_tx_rate = arg->bcn_tx_rate; in ath11k_wmi_vdev_start()
1011 cmd->dtim_period = arg->dtim_period; in ath11k_wmi_vdev_start()
1012 cmd->num_noa_descriptors = arg->num_noa_descriptors; in ath11k_wmi_vdev_start()
1013 cmd->preferred_rx_streams = arg->pref_rx_streams; in ath11k_wmi_vdev_start()
1014 cmd->preferred_tx_streams = arg->pref_tx_streams; in ath11k_wmi_vdev_start()
1015 cmd->cac_duration_ms = arg->cac_duration_ms; in ath11k_wmi_vdev_start()
1016 cmd->regdomain = arg->regdomain; in ath11k_wmi_vdev_start()
1017 cmd->he_ops = arg->he_ops; in ath11k_wmi_vdev_start()
1018 cmd->mbssid_flags = arg->mbssid_flags; in ath11k_wmi_vdev_start()
1019 cmd->mbssid_tx_vdev_id = arg->mbssid_tx_vdev_id; in ath11k_wmi_vdev_start()
1023 cmd->ssid.ssid_len = arg->ssid_len; in ath11k_wmi_vdev_start()
1024 memcpy(cmd->ssid.ssid, arg->ssid, arg->ssid_len); in ath11k_wmi_vdev_start()
1027 cmd->flags |= WMI_VDEV_START_HIDDEN_SSID; in ath11k_wmi_vdev_start()
1029 cmd->flags |= WMI_VDEV_START_PMF_ENABLED; in ath11k_wmi_vdev_start()
1032 cmd->flags |= WMI_VDEV_START_LDPC_RX_ENABLED; in ath11k_wmi_vdev_start()
1034 cmd->flags |= WMI_VDEV_START_HW_ENCRYPTION_DISABLED; in ath11k_wmi_vdev_start()
1036 ptr = skb->data + sizeof(*cmd); in ath11k_wmi_vdev_start()
1071 ath11k_warn(ar->ab, "failed to submit vdev_%s cmd\n", in ath11k_wmi_vdev_start()
1076 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd vdev %s id 0x%x freq 0x%x mode 0x%x\n", in ath11k_wmi_vdev_start()
1087 struct wmi_vdev_up_cmd *cmd; in ath11k_wmi_vdev_up() local
1095 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_up()
1099 cmd = (struct wmi_vdev_up_cmd *)skb->data; in ath11k_wmi_vdev_up()
1101 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_UP_CMD) | in ath11k_wmi_vdev_up()
1102 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_up()
1103 cmd->vdev_id = vdev_id; in ath11k_wmi_vdev_up()
1104 cmd->vdev_assoc_id = aid; in ath11k_wmi_vdev_up()
1106 ether_addr_copy(cmd->vdev_bssid.addr, bssid); in ath11k_wmi_vdev_up()
1108 cmd->nontx_profile_idx = nontx_profile_idx; in ath11k_wmi_vdev_up()
1109 cmd->nontx_profile_cnt = nontx_profile_cnt; in ath11k_wmi_vdev_up()
1111 ether_addr_copy(cmd->tx_vdev_bssid.addr, tx_bssid); in ath11k_wmi_vdev_up()
1117 ether_addr_copy(cmd->tx_vdev_bssid.addr, in ath11k_wmi_vdev_up()
1119 cmd->nontx_profile_idx = bss_conf->bssid_index; in ath11k_wmi_vdev_up()
1120 cmd->nontx_profile_cnt = bss_conf->bssid_indicator; in ath11k_wmi_vdev_up()
1126 ath11k_warn(ar->ab, "failed to submit WMI_VDEV_UP cmd\n"); in ath11k_wmi_vdev_up()
1131 "cmd vdev up id 0x%x assoc id %d bssid %pM\n", in ath11k_wmi_vdev_up()
1141 struct wmi_peer_create_cmd *cmd; in ath11k_wmi_send_peer_create_cmd() local
1145 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_peer_create_cmd()
1149 cmd = (struct wmi_peer_create_cmd *)skb->data; in ath11k_wmi_send_peer_create_cmd()
1150 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PEER_CREATE_CMD) | in ath11k_wmi_send_peer_create_cmd()
1151 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_peer_create_cmd()
1153 ether_addr_copy(cmd->peer_macaddr.addr, param->peer_addr); in ath11k_wmi_send_peer_create_cmd()
1154 cmd->peer_type = param->peer_type; in ath11k_wmi_send_peer_create_cmd()
1155 cmd->vdev_id = param->vdev_id; in ath11k_wmi_send_peer_create_cmd()
1159 ath11k_warn(ar->ab, "failed to submit WMI_PEER_CREATE cmd\n"); in ath11k_wmi_send_peer_create_cmd()
1164 "cmd peer create vdev_id %d peer_addr %pM\n", in ath11k_wmi_send_peer_create_cmd()
1174 struct wmi_peer_delete_cmd *cmd; in ath11k_wmi_send_peer_delete_cmd() local
1178 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_peer_delete_cmd()
1182 cmd = (struct wmi_peer_delete_cmd *)skb->data; in ath11k_wmi_send_peer_delete_cmd()
1183 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PEER_DELETE_CMD) | in ath11k_wmi_send_peer_delete_cmd()
1184 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_peer_delete_cmd()
1186 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr); in ath11k_wmi_send_peer_delete_cmd()
1187 cmd->vdev_id = vdev_id; in ath11k_wmi_send_peer_delete_cmd()
1191 ath11k_warn(ar->ab, "failed to send WMI_PEER_DELETE cmd\n"); in ath11k_wmi_send_peer_delete_cmd()
1196 "cmd peer delete vdev_id %d peer_addr %pM\n", in ath11k_wmi_send_peer_delete_cmd()
1206 struct wmi_pdev_set_regdomain_cmd *cmd; in ath11k_wmi_send_pdev_set_regdomain() local
1210 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_pdev_set_regdomain()
1214 cmd = (struct wmi_pdev_set_regdomain_cmd *)skb->data; in ath11k_wmi_send_pdev_set_regdomain()
1215 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_pdev_set_regdomain()
1217 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_pdev_set_regdomain()
1219 cmd->reg_domain = param->current_rd_in_use; in ath11k_wmi_send_pdev_set_regdomain()
1220 cmd->reg_domain_2g = param->current_rd_2g; in ath11k_wmi_send_pdev_set_regdomain()
1221 cmd->reg_domain_5g = param->current_rd_5g; in ath11k_wmi_send_pdev_set_regdomain()
1222 cmd->conformance_test_limit_2g = param->ctl_2g; in ath11k_wmi_send_pdev_set_regdomain()
1223 cmd->conformance_test_limit_5g = param->ctl_5g; in ath11k_wmi_send_pdev_set_regdomain()
1224 cmd->dfs_domain = param->dfs_domain; in ath11k_wmi_send_pdev_set_regdomain()
1225 cmd->pdev_id = param->pdev_id; in ath11k_wmi_send_pdev_set_regdomain()
1230 "failed to send WMI_PDEV_SET_REGDOMAIN cmd\n"); in ath11k_wmi_send_pdev_set_regdomain()
1235 "cmd pdev regd rd %d rd2g %d rd5g %d domain %d pdev id %d\n", in ath11k_wmi_send_pdev_set_regdomain()
1246 struct wmi_peer_set_param_cmd *cmd; in ath11k_wmi_set_peer_param() local
1250 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_set_peer_param()
1254 cmd = (struct wmi_peer_set_param_cmd *)skb->data; in ath11k_wmi_set_peer_param()
1255 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PEER_SET_PARAM_CMD) | in ath11k_wmi_set_peer_param()
1256 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_set_peer_param()
1257 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr); in ath11k_wmi_set_peer_param()
1258 cmd->vdev_id = vdev_id; in ath11k_wmi_set_peer_param()
1259 cmd->param_id = param_id; in ath11k_wmi_set_peer_param()
1260 cmd->param_value = param_val; in ath11k_wmi_set_peer_param()
1264 ath11k_warn(ar->ab, "failed to send WMI_PEER_SET_PARAM cmd\n"); in ath11k_wmi_set_peer_param()
1269 "cmd peer set param vdev %d peer 0x%pM set param %d value %d\n", in ath11k_wmi_set_peer_param()
1280 struct wmi_peer_flush_tids_cmd *cmd; in ath11k_wmi_send_peer_flush_tids_cmd() local
1284 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_peer_flush_tids_cmd()
1288 cmd = (struct wmi_peer_flush_tids_cmd *)skb->data; in ath11k_wmi_send_peer_flush_tids_cmd()
1289 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PEER_FLUSH_TIDS_CMD) | in ath11k_wmi_send_peer_flush_tids_cmd()
1290 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_peer_flush_tids_cmd()
1292 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr); in ath11k_wmi_send_peer_flush_tids_cmd()
1293 cmd->peer_tid_bitmap = param->peer_tid_bitmap; in ath11k_wmi_send_peer_flush_tids_cmd()
1294 cmd->vdev_id = param->vdev_id; in ath11k_wmi_send_peer_flush_tids_cmd()
1299 "failed to send WMI_PEER_FLUSH_TIDS cmd\n"); in ath11k_wmi_send_peer_flush_tids_cmd()
1304 "cmd peer flush tids vdev_id %d peer_addr %pM tids %08x\n", in ath11k_wmi_send_peer_flush_tids_cmd()
1316 struct wmi_peer_reorder_queue_setup_cmd *cmd; in ath11k_wmi_peer_rx_reorder_queue_setup() local
1320 skb = ath11k_wmi_alloc_skb(ar->wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_peer_rx_reorder_queue_setup()
1324 cmd = (struct wmi_peer_reorder_queue_setup_cmd *)skb->data; in ath11k_wmi_peer_rx_reorder_queue_setup()
1325 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_peer_rx_reorder_queue_setup()
1327 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_peer_rx_reorder_queue_setup()
1329 ether_addr_copy(cmd->peer_macaddr.addr, addr); in ath11k_wmi_peer_rx_reorder_queue_setup()
1330 cmd->vdev_id = vdev_id; in ath11k_wmi_peer_rx_reorder_queue_setup()
1331 cmd->tid = tid; in ath11k_wmi_peer_rx_reorder_queue_setup()
1332 cmd->queue_ptr_lo = lower_32_bits(paddr); in ath11k_wmi_peer_rx_reorder_queue_setup()
1333 cmd->queue_ptr_hi = upper_32_bits(paddr); in ath11k_wmi_peer_rx_reorder_queue_setup()
1334 cmd->queue_no = tid; in ath11k_wmi_peer_rx_reorder_queue_setup()
1335 cmd->ba_window_size_valid = ba_window_size_valid; in ath11k_wmi_peer_rx_reorder_queue_setup()
1336 cmd->ba_window_size = ba_window_size; in ath11k_wmi_peer_rx_reorder_queue_setup()
1347 "cmd peer reorder queue setup addr %pM vdev_id %d tid %d\n", in ath11k_wmi_peer_rx_reorder_queue_setup()
1358 struct wmi_peer_reorder_queue_remove_cmd *cmd; in ath11k_wmi_rx_reord_queue_remove() local
1362 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_rx_reord_queue_remove()
1366 cmd = (struct wmi_peer_reorder_queue_remove_cmd *)skb->data; in ath11k_wmi_rx_reord_queue_remove()
1367 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_rx_reord_queue_remove()
1369 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_rx_reord_queue_remove()
1371 ether_addr_copy(cmd->peer_macaddr.addr, param->peer_macaddr); in ath11k_wmi_rx_reord_queue_remove()
1372 cmd->vdev_id = param->vdev_id; in ath11k_wmi_rx_reord_queue_remove()
1373 cmd->tid_mask = param->peer_tid_bitmap; in ath11k_wmi_rx_reord_queue_remove()
1384 "cmd peer reorder queue remove peer_macaddr %pM vdev_id %d tid_map %d", in ath11k_wmi_rx_reord_queue_remove()
1394 struct wmi_pdev_set_param_cmd *cmd; in ath11k_wmi_pdev_set_param() local
1398 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_set_param()
1402 cmd = (struct wmi_pdev_set_param_cmd *)skb->data; in ath11k_wmi_pdev_set_param()
1403 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_SET_PARAM_CMD) | in ath11k_wmi_pdev_set_param()
1404 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_set_param()
1405 cmd->pdev_id = pdev_id; in ath11k_wmi_pdev_set_param()
1406 cmd->param_id = param_id; in ath11k_wmi_pdev_set_param()
1407 cmd->param_value = param_value; in ath11k_wmi_pdev_set_param()
1411 ath11k_warn(ar->ab, "failed to send WMI_PDEV_SET_PARAM cmd\n"); in ath11k_wmi_pdev_set_param()
1416 "cmd pdev set param %d pdev id %d value %d\n", in ath11k_wmi_pdev_set_param()
1426 struct wmi_pdev_set_ps_mode_cmd *cmd; in ath11k_wmi_pdev_set_ps_mode() local
1430 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_set_ps_mode()
1434 cmd = (struct wmi_pdev_set_ps_mode_cmd *)skb->data; in ath11k_wmi_pdev_set_ps_mode()
1435 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_STA_POWERSAVE_MODE_CMD) | in ath11k_wmi_pdev_set_ps_mode()
1436 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_set_ps_mode()
1437 cmd->vdev_id = vdev_id; in ath11k_wmi_pdev_set_ps_mode()
1438 cmd->sta_ps_mode = psmode; in ath11k_wmi_pdev_set_ps_mode()
1442 ath11k_warn(ar->ab, "failed to send WMI_PDEV_SET_PARAM cmd\n"); in ath11k_wmi_pdev_set_ps_mode()
1447 "cmd sta powersave mode psmode %d vdev id %d\n", in ath11k_wmi_pdev_set_ps_mode()
1457 struct wmi_pdev_suspend_cmd *cmd; in ath11k_wmi_pdev_suspend() local
1461 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_suspend()
1465 cmd = (struct wmi_pdev_suspend_cmd *)skb->data; in ath11k_wmi_pdev_suspend()
1467 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_SUSPEND_CMD) | in ath11k_wmi_pdev_suspend()
1468 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_suspend()
1470 cmd->suspend_opt = suspend_opt; in ath11k_wmi_pdev_suspend()
1471 cmd->pdev_id = pdev_id; in ath11k_wmi_pdev_suspend()
1475 ath11k_warn(ar->ab, "failed to send WMI_PDEV_SUSPEND cmd\n"); in ath11k_wmi_pdev_suspend()
1480 "cmd pdev suspend pdev_id %d\n", pdev_id); in ath11k_wmi_pdev_suspend()
1488 struct wmi_pdev_resume_cmd *cmd; in ath11k_wmi_pdev_resume() local
1492 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_resume()
1496 cmd = (struct wmi_pdev_resume_cmd *)skb->data; in ath11k_wmi_pdev_resume()
1498 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_RESUME_CMD) | in ath11k_wmi_pdev_resume()
1499 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_resume()
1500 cmd->pdev_id = pdev_id; in ath11k_wmi_pdev_resume()
1504 ath11k_warn(ar->ab, "failed to send WMI_PDEV_RESUME cmd\n"); in ath11k_wmi_pdev_resume()
1509 "cmd pdev resume pdev id %d\n", pdev_id); in ath11k_wmi_pdev_resume()
1514 /* TODO FW Support for the cmd is not available yet.
1522 struct wmi_pdev_bss_chan_info_req_cmd *cmd; in ath11k_wmi_pdev_bss_chan_info_request() local
1526 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_bss_chan_info_request()
1530 cmd = (struct wmi_pdev_bss_chan_info_req_cmd *)skb->data; in ath11k_wmi_pdev_bss_chan_info_request()
1532 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_pdev_bss_chan_info_request()
1534 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_bss_chan_info_request()
1535 cmd->req_type = type; in ath11k_wmi_pdev_bss_chan_info_request()
1536 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_pdev_bss_chan_info_request()
1542 "failed to send WMI_PDEV_BSS_CHAN_INFO_REQUEST cmd\n"); in ath11k_wmi_pdev_bss_chan_info_request()
1547 "cmd pdev bss chan info request type %d\n", type); in ath11k_wmi_pdev_bss_chan_info_request()
1556 struct wmi_ap_ps_peer_cmd *cmd; in ath11k_wmi_send_set_ap_ps_param_cmd() local
1560 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_set_ap_ps_param_cmd()
1564 cmd = (struct wmi_ap_ps_peer_cmd *)skb->data; in ath11k_wmi_send_set_ap_ps_param_cmd()
1565 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_AP_PS_PEER_CMD) | in ath11k_wmi_send_set_ap_ps_param_cmd()
1566 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_set_ap_ps_param_cmd()
1568 cmd->vdev_id = param->vdev_id; in ath11k_wmi_send_set_ap_ps_param_cmd()
1569 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr); in ath11k_wmi_send_set_ap_ps_param_cmd()
1570 cmd->param = param->param; in ath11k_wmi_send_set_ap_ps_param_cmd()
1571 cmd->value = param->value; in ath11k_wmi_send_set_ap_ps_param_cmd()
1581 "cmd ap ps peer param vdev id %d peer %pM param %d value %d\n", in ath11k_wmi_send_set_ap_ps_param_cmd()
1591 struct wmi_sta_powersave_param_cmd *cmd; in ath11k_wmi_set_sta_ps_param() local
1595 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_set_sta_ps_param()
1599 cmd = (struct wmi_sta_powersave_param_cmd *)skb->data; in ath11k_wmi_set_sta_ps_param()
1600 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_set_sta_ps_param()
1602 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_set_sta_ps_param()
1604 cmd->vdev_id = vdev_id; in ath11k_wmi_set_sta_ps_param()
1605 cmd->param = param; in ath11k_wmi_set_sta_ps_param()
1606 cmd->value = param_value; in ath11k_wmi_set_sta_ps_param()
1615 "cmd set powersave param vdev_id %d param %d value %d\n", in ath11k_wmi_set_sta_ps_param()
1624 struct wmi_force_fw_hang_cmd *cmd; in ath11k_wmi_force_fw_hang_cmd() local
1628 len = sizeof(*cmd); in ath11k_wmi_force_fw_hang_cmd()
1634 cmd = (struct wmi_force_fw_hang_cmd *)skb->data; in ath11k_wmi_force_fw_hang_cmd()
1635 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_FORCE_FW_HANG_CMD) | in ath11k_wmi_force_fw_hang_cmd()
1638 cmd->type = type; in ath11k_wmi_force_fw_hang_cmd()
1639 cmd->delay_time_ms = delay_time_ms; in ath11k_wmi_force_fw_hang_cmd()
1648 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd force fw hang"); in ath11k_wmi_force_fw_hang_cmd()
1657 struct wmi_vdev_set_param_cmd *cmd; in ath11k_wmi_vdev_set_param_cmd() local
1661 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_set_param_cmd()
1665 cmd = (struct wmi_vdev_set_param_cmd *)skb->data; in ath11k_wmi_vdev_set_param_cmd()
1666 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_SET_PARAM_CMD) | in ath11k_wmi_vdev_set_param_cmd()
1667 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_set_param_cmd()
1669 cmd->vdev_id = vdev_id; in ath11k_wmi_vdev_set_param_cmd()
1670 cmd->param_id = param_id; in ath11k_wmi_vdev_set_param_cmd()
1671 cmd->param_value = param_value; in ath11k_wmi_vdev_set_param_cmd()
1681 "cmd vdev set param vdev 0x%x param %d value %d\n", in ath11k_wmi_vdev_set_param_cmd()
1691 struct wmi_request_stats_cmd *cmd; in ath11k_wmi_send_stats_request_cmd() local
1695 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_stats_request_cmd()
1699 cmd = (struct wmi_request_stats_cmd *)skb->data; in ath11k_wmi_send_stats_request_cmd()
1700 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_REQUEST_STATS_CMD) | in ath11k_wmi_send_stats_request_cmd()
1701 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_stats_request_cmd()
1703 cmd->stats_id = param->stats_id; in ath11k_wmi_send_stats_request_cmd()
1704 cmd->vdev_id = param->vdev_id; in ath11k_wmi_send_stats_request_cmd()
1705 cmd->pdev_id = param->pdev_id; in ath11k_wmi_send_stats_request_cmd()
1709 ath11k_warn(ar->ab, "failed to send WMI_REQUEST_STATS cmd\n"); in ath11k_wmi_send_stats_request_cmd()
1714 "cmd request stats 0x%x vdev id %d pdev id %d\n", in ath11k_wmi_send_stats_request_cmd()
1723 struct wmi_get_pdev_temperature_cmd *cmd; in ath11k_wmi_send_pdev_temperature_cmd() local
1727 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_pdev_temperature_cmd()
1731 cmd = (struct wmi_get_pdev_temperature_cmd *)skb->data; in ath11k_wmi_send_pdev_temperature_cmd()
1732 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_GET_TEMPERATURE_CMD) | in ath11k_wmi_send_pdev_temperature_cmd()
1733 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_pdev_temperature_cmd()
1734 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_send_pdev_temperature_cmd()
1738 ath11k_warn(ar->ab, "failed to send WMI_PDEV_GET_TEMPERATURE cmd\n"); in ath11k_wmi_send_pdev_temperature_cmd()
1743 "cmd pdev get temperature for pdev_id %d\n", ar->pdev->pdev_id); in ath11k_wmi_send_pdev_temperature_cmd()
1752 struct wmi_bcn_offload_ctrl_cmd *cmd; in ath11k_wmi_send_bcn_offload_control_cmd() local
1756 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_bcn_offload_control_cmd()
1760 cmd = (struct wmi_bcn_offload_ctrl_cmd *)skb->data; in ath11k_wmi_send_bcn_offload_control_cmd()
1761 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_bcn_offload_control_cmd()
1763 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_bcn_offload_control_cmd()
1765 cmd->vdev_id = vdev_id; in ath11k_wmi_send_bcn_offload_control_cmd()
1766 cmd->bcn_ctrl_op = bcn_ctrl_op; in ath11k_wmi_send_bcn_offload_control_cmd()
1776 "cmd bcn offload ctrl vdev id %d ctrl_op %d\n", in ath11k_wmi_send_bcn_offload_control_cmd()
1779 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd bcn tmpl"); in ath11k_wmi_send_bcn_offload_control_cmd()
1789 struct wmi_bcn_tmpl_cmd *cmd; in ath11k_wmi_bcn_tmpl() local
1810 len = sizeof(*cmd) + sizeof(*bcn_prb_info) + TLV_HDR_SIZE + aligned_len; in ath11k_wmi_bcn_tmpl()
1816 cmd = (struct wmi_bcn_tmpl_cmd *)skb->data; in ath11k_wmi_bcn_tmpl()
1817 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_BCN_TMPL_CMD) | in ath11k_wmi_bcn_tmpl()
1818 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_bcn_tmpl()
1819 cmd->vdev_id = vdev_id; in ath11k_wmi_bcn_tmpl()
1820 cmd->tim_ie_offset = offs->tim_offset; in ath11k_wmi_bcn_tmpl()
1823 cmd->csa_switch_count_offset = offs->cntdwn_counter_offs[0]; in ath11k_wmi_bcn_tmpl()
1824 cmd->ext_csa_switch_count_offset = offs->cntdwn_counter_offs[1]; in ath11k_wmi_bcn_tmpl()
1827 cmd->buf_len = bcn->len; in ath11k_wmi_bcn_tmpl()
1828 cmd->mbssid_ie_offset = offs->mbssid_off; in ath11k_wmi_bcn_tmpl()
1829 cmd->ema_params = ema_params; in ath11k_wmi_bcn_tmpl()
1831 ptr = skb->data + sizeof(*cmd); in ath11k_wmi_bcn_tmpl()
1869 struct wmi_vdev_install_key_cmd *cmd; in ath11k_wmi_vdev_install_key() local
1875 len = sizeof(*cmd) + TLV_HDR_SIZE + key_len_aligned; in ath11k_wmi_vdev_install_key()
1881 cmd = (struct wmi_vdev_install_key_cmd *)skb->data; in ath11k_wmi_vdev_install_key()
1882 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_VDEV_INSTALL_KEY_CMD) | in ath11k_wmi_vdev_install_key()
1883 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_install_key()
1884 cmd->vdev_id = arg->vdev_id; in ath11k_wmi_vdev_install_key()
1885 ether_addr_copy(cmd->peer_macaddr.addr, arg->macaddr); in ath11k_wmi_vdev_install_key()
1886 cmd->key_idx = arg->key_idx; in ath11k_wmi_vdev_install_key()
1887 cmd->key_flags = arg->key_flags; in ath11k_wmi_vdev_install_key()
1888 cmd->key_cipher = arg->key_cipher; in ath11k_wmi_vdev_install_key()
1889 cmd->key_len = arg->key_len; in ath11k_wmi_vdev_install_key()
1890 cmd->key_txmic_len = arg->key_txmic_len; in ath11k_wmi_vdev_install_key()
1891 cmd->key_rxmic_len = arg->key_rxmic_len; in ath11k_wmi_vdev_install_key()
1894 memcpy(&cmd->key_rsc_counter, &arg->key_rsc_counter, in ath11k_wmi_vdev_install_key()
1897 tlv = (struct wmi_tlv *)(skb->data + sizeof(*cmd)); in ath11k_wmi_vdev_install_key()
1910 "failed to send WMI_VDEV_INSTALL_KEY cmd\n"); in ath11k_wmi_vdev_install_key()
1915 "cmd vdev install key idx %d cipher %d len %d\n", in ath11k_wmi_vdev_install_key()
1922 ath11k_wmi_copy_peer_flags(struct wmi_peer_assoc_complete_cmd *cmd, in ath11k_wmi_copy_peer_flags() argument
1926 cmd->peer_flags = 0; in ath11k_wmi_copy_peer_flags()
1930 cmd->peer_flags |= WMI_PEER_QOS; in ath11k_wmi_copy_peer_flags()
1932 cmd->peer_flags |= WMI_PEER_APSD; in ath11k_wmi_copy_peer_flags()
1934 cmd->peer_flags |= WMI_PEER_HT; in ath11k_wmi_copy_peer_flags()
1936 cmd->peer_flags |= WMI_PEER_40MHZ; in ath11k_wmi_copy_peer_flags()
1938 cmd->peer_flags |= WMI_PEER_80MHZ; in ath11k_wmi_copy_peer_flags()
1940 cmd->peer_flags |= WMI_PEER_160MHZ; in ath11k_wmi_copy_peer_flags()
1946 cmd->peer_flags |= WMI_PEER_STBC; in ath11k_wmi_copy_peer_flags()
1952 cmd->peer_flags |= WMI_PEER_LDPC; in ath11k_wmi_copy_peer_flags()
1955 cmd->peer_flags |= WMI_PEER_STATIC_MIMOPS; in ath11k_wmi_copy_peer_flags()
1957 cmd->peer_flags |= WMI_PEER_DYN_MIMOPS; in ath11k_wmi_copy_peer_flags()
1959 cmd->peer_flags |= WMI_PEER_SPATIAL_MUX; in ath11k_wmi_copy_peer_flags()
1961 cmd->peer_flags |= WMI_PEER_VHT; in ath11k_wmi_copy_peer_flags()
1963 cmd->peer_flags |= WMI_PEER_HE; in ath11k_wmi_copy_peer_flags()
1965 cmd->peer_flags |= WMI_PEER_TWT_REQ; in ath11k_wmi_copy_peer_flags()
1967 cmd->peer_flags |= WMI_PEER_TWT_RESP; in ath11k_wmi_copy_peer_flags()
1975 cmd->peer_flags |= WMI_PEER_AUTH; in ath11k_wmi_copy_peer_flags()
1977 cmd->peer_flags |= WMI_PEER_NEED_PTK_4_WAY; in ath11k_wmi_copy_peer_flags()
1979 cmd->peer_flags &= ~WMI_PEER_AUTH; in ath11k_wmi_copy_peer_flags()
1982 cmd->peer_flags |= WMI_PEER_NEED_GTK_2_WAY; in ath11k_wmi_copy_peer_flags()
1985 cmd->peer_flags &= ~(WMI_PEER_NEED_PTK_4_WAY | in ath11k_wmi_copy_peer_flags()
1989 cmd->peer_flags |= WMI_PEER_PMF; in ath11k_wmi_copy_peer_flags()
2002 cmd->peer_flags &= ~WMI_PEER_HT; in ath11k_wmi_copy_peer_flags()
2009 struct wmi_peer_assoc_complete_cmd *cmd; in ath11k_wmi_send_peer_assoc_cmd() local
2028 len = sizeof(*cmd) + in ath11k_wmi_send_peer_assoc_cmd()
2041 cmd = ptr; in ath11k_wmi_send_peer_assoc_cmd()
2043 cmd = (void *)ptr; in ath11k_wmi_send_peer_assoc_cmd()
2045 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_peer_assoc_cmd()
2047 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_peer_assoc_cmd()
2049 cmd->vdev_id = param->vdev_id; in ath11k_wmi_send_peer_assoc_cmd()
2051 cmd->peer_new_assoc = param->peer_new_assoc; in ath11k_wmi_send_peer_assoc_cmd()
2052 cmd->peer_associd = param->peer_associd; in ath11k_wmi_send_peer_assoc_cmd()
2054 ath11k_wmi_copy_peer_flags(cmd, param, in ath11k_wmi_send_peer_assoc_cmd()
2058 ether_addr_copy(cmd->peer_macaddr.addr, param->peer_mac); in ath11k_wmi_send_peer_assoc_cmd()
2060 cmd->peer_rate_caps = param->peer_rate_caps; in ath11k_wmi_send_peer_assoc_cmd()
2061 cmd->peer_caps = param->peer_caps; in ath11k_wmi_send_peer_assoc_cmd()
2062 cmd->peer_listen_intval = param->peer_listen_intval; in ath11k_wmi_send_peer_assoc_cmd()
2063 cmd->peer_ht_caps = param->peer_ht_caps; in ath11k_wmi_send_peer_assoc_cmd()
2064 cmd->peer_max_mpdu = param->peer_max_mpdu; in ath11k_wmi_send_peer_assoc_cmd()
2065 cmd->peer_mpdu_density = param->peer_mpdu_density; in ath11k_wmi_send_peer_assoc_cmd()
2066 cmd->peer_vht_caps = param->peer_vht_caps; in ath11k_wmi_send_peer_assoc_cmd()
2067 cmd->peer_phymode = param->peer_phymode; in ath11k_wmi_send_peer_assoc_cmd()
2070 cmd->peer_he_cap_info = param->peer_he_cap_macinfo[0]; in ath11k_wmi_send_peer_assoc_cmd()
2071 cmd->peer_he_cap_info_ext = param->peer_he_cap_macinfo[1]; in ath11k_wmi_send_peer_assoc_cmd()
2072 cmd->peer_he_cap_info_internal = param->peer_he_cap_macinfo_internal; in ath11k_wmi_send_peer_assoc_cmd()
2073 cmd->peer_he_caps_6ghz = param->peer_he_caps_6ghz; in ath11k_wmi_send_peer_assoc_cmd()
2074 cmd->peer_he_ops = param->peer_he_ops; in ath11k_wmi_send_peer_assoc_cmd()
2075 memcpy(&cmd->peer_he_cap_phy, ¶m->peer_he_cap_phyinfo, in ath11k_wmi_send_peer_assoc_cmd()
2077 memcpy(&cmd->peer_ppet, ¶m->peer_ppet, in ath11k_wmi_send_peer_assoc_cmd()
2081 ptr += sizeof(*cmd); in ath11k_wmi_send_peer_assoc_cmd()
2093 cmd->num_peer_legacy_rates = param->peer_legacy_rates.num_rates; in ath11k_wmi_send_peer_assoc_cmd()
2108 cmd->num_peer_ht_rates = param->peer_ht_rates.num_rates; in ath11k_wmi_send_peer_assoc_cmd()
2124 cmd->peer_nss = param->peer_nss; in ath11k_wmi_send_peer_assoc_cmd()
2127 cmd->peer_bw_rxnss_override = 0; in ath11k_wmi_send_peer_assoc_cmd()
2128 cmd->peer_bw_rxnss_override |= param->peer_bw_rxnss_override; in ath11k_wmi_send_peer_assoc_cmd()
2138 cmd->peer_he_mcs = param->peer_he_mcs_count; in ath11k_wmi_send_peer_assoc_cmd()
2139 cmd->min_data_rate = param->min_data_rate; in ath11k_wmi_send_peer_assoc_cmd()
2179 …"cmd peer assoc vdev id %d assoc id %d peer mac %pM peer_flags %x rate_caps %x peer_caps %x listen… in ath11k_wmi_send_peer_assoc_cmd()
2180 cmd->vdev_id, cmd->peer_associd, param->peer_mac, in ath11k_wmi_send_peer_assoc_cmd()
2181 cmd->peer_flags, cmd->peer_rate_caps, cmd->peer_caps, in ath11k_wmi_send_peer_assoc_cmd()
2182 cmd->peer_listen_intval, cmd->peer_ht_caps, in ath11k_wmi_send_peer_assoc_cmd()
2183 cmd->peer_max_mpdu, cmd->peer_nss, cmd->peer_phymode, in ath11k_wmi_send_peer_assoc_cmd()
2184 cmd->peer_mpdu_density, in ath11k_wmi_send_peer_assoc_cmd()
2185 cmd->peer_vht_caps, cmd->peer_he_cap_info, in ath11k_wmi_send_peer_assoc_cmd()
2186 cmd->peer_he_ops, cmd->peer_he_cap_info_ext, in ath11k_wmi_send_peer_assoc_cmd()
2187 cmd->peer_he_cap_phy[0], cmd->peer_he_cap_phy[1], in ath11k_wmi_send_peer_assoc_cmd()
2188 cmd->peer_he_cap_phy[2], in ath11k_wmi_send_peer_assoc_cmd()
2189 cmd->peer_bw_rxnss_override); in ath11k_wmi_send_peer_assoc_cmd()
2236 ath11k_wmi_copy_scan_event_cntrl_flags(struct wmi_start_scan_cmd *cmd, in ath11k_wmi_copy_scan_event_cntrl_flags() argument
2241 cmd->notify_scan_events |= WMI_SCAN_EVENT_STARTED; in ath11k_wmi_copy_scan_event_cntrl_flags()
2243 cmd->notify_scan_events |= WMI_SCAN_EVENT_COMPLETED; in ath11k_wmi_copy_scan_event_cntrl_flags()
2245 cmd->notify_scan_events |= WMI_SCAN_EVENT_BSS_CHANNEL; in ath11k_wmi_copy_scan_event_cntrl_flags()
2247 cmd->notify_scan_events |= WMI_SCAN_EVENT_FOREIGN_CHAN; in ath11k_wmi_copy_scan_event_cntrl_flags()
2249 cmd->notify_scan_events |= WMI_SCAN_EVENT_DEQUEUED; in ath11k_wmi_copy_scan_event_cntrl_flags()
2251 cmd->notify_scan_events |= WMI_SCAN_EVENT_PREEMPTED; in ath11k_wmi_copy_scan_event_cntrl_flags()
2253 cmd->notify_scan_events |= WMI_SCAN_EVENT_START_FAILED; in ath11k_wmi_copy_scan_event_cntrl_flags()
2255 cmd->notify_scan_events |= WMI_SCAN_EVENT_RESTARTED; in ath11k_wmi_copy_scan_event_cntrl_flags()
2257 cmd->notify_scan_events |= WMI_SCAN_EVENT_FOREIGN_CHAN_EXIT; in ath11k_wmi_copy_scan_event_cntrl_flags()
2259 cmd->notify_scan_events |= WMI_SCAN_EVENT_SUSPENDED; in ath11k_wmi_copy_scan_event_cntrl_flags()
2261 cmd->notify_scan_events |= WMI_SCAN_EVENT_RESUMED; in ath11k_wmi_copy_scan_event_cntrl_flags()
2264 cmd->scan_ctrl_flags = 0; in ath11k_wmi_copy_scan_event_cntrl_flags()
2266 cmd->scan_ctrl_flags |= WMI_SCAN_FLAG_PASSIVE; in ath11k_wmi_copy_scan_event_cntrl_flags()
2268 cmd->scan_ctrl_flags |= WMI_SCAN_FLAG_STRICT_PASSIVE_ON_PCHN; in ath11k_wmi_copy_scan_event_cntrl_flags()
2270 cmd->scan_ctrl_flags |= WMI_SCAN_FILTER_PROMISCUOS; in ath11k_wmi_copy_scan_event_cntrl_flags()
2272 cmd->scan_ctrl_flags |= WMI_SCAN_CAPTURE_PHY_ERROR; in ath11k_wmi_copy_scan_event_cntrl_flags()
2274 cmd->scan_ctrl_flags |= WMI_SCAN_FLAG_HALF_RATE_SUPPORT; in ath11k_wmi_copy_scan_event_cntrl_flags()
2276 cmd->scan_ctrl_flags |= WMI_SCAN_FLAG_QUARTER_RATE_SUPPORT; in ath11k_wmi_copy_scan_event_cntrl_flags()
2278 cmd->scan_ctrl_flags |= WMI_SCAN_ADD_CCK_RATES; in ath11k_wmi_copy_scan_event_cntrl_flags()
2280 cmd->scan_ctrl_flags |= WMI_SCAN_ADD_OFDM_RATES; in ath11k_wmi_copy_scan_event_cntrl_flags()
2282 cmd->scan_ctrl_flags |= WMI_SCAN_CHAN_STAT_EVENT; in ath11k_wmi_copy_scan_event_cntrl_flags()
2284 cmd->scan_ctrl_flags |= WMI_SCAN_FILTER_PROBE_REQ; in ath11k_wmi_copy_scan_event_cntrl_flags()
2286 cmd->scan_ctrl_flags |= WMI_SCAN_ADD_BCAST_PROBE_REQ; in ath11k_wmi_copy_scan_event_cntrl_flags()
2288 cmd->scan_ctrl_flags |= WMI_SCAN_OFFCHAN_MGMT_TX; in ath11k_wmi_copy_scan_event_cntrl_flags()
2290 cmd->scan_ctrl_flags |= WMI_SCAN_OFFCHAN_DATA_TX; in ath11k_wmi_copy_scan_event_cntrl_flags()
2292 cmd->scan_ctrl_flags |= WMI_SCAN_FLAG_FORCE_ACTIVE_ON_DFS; in ath11k_wmi_copy_scan_event_cntrl_flags()
2294 cmd->scan_ctrl_flags |= WMI_SCAN_ADD_TPC_IE_IN_PROBE_REQ; in ath11k_wmi_copy_scan_event_cntrl_flags()
2296 cmd->scan_ctrl_flags |= WMI_SCAN_ADD_DS_IE_IN_PROBE_REQ; in ath11k_wmi_copy_scan_event_cntrl_flags()
2298 cmd->scan_ctrl_flags |= WMI_SCAN_ADD_SPOOF_MAC_IN_PROBE_REQ; in ath11k_wmi_copy_scan_event_cntrl_flags()
2300 cmd->scan_ctrl_flags |= WMI_SCAN_RANDOM_SEQ_NO_IN_PROBE_REQ; in ath11k_wmi_copy_scan_event_cntrl_flags()
2302 cmd->scan_ctrl_flags |= in ath11k_wmi_copy_scan_event_cntrl_flags()
2306 WMI_SCAN_SET_DWELL_MODE(cmd->scan_ctrl_flags, in ath11k_wmi_copy_scan_event_cntrl_flags()
2309 cmd->scan_ctrl_flags_ext = param->scan_ctrl_flags_ext; in ath11k_wmi_copy_scan_event_cntrl_flags()
2316 struct wmi_start_scan_cmd *cmd; in ath11k_wmi_send_scan_start_cmd() local
2332 len = sizeof(*cmd); in ath11k_wmi_send_scan_start_cmd()
2367 cmd = ptr; in ath11k_wmi_send_scan_start_cmd()
2369 cmd = (void *)ptr; in ath11k_wmi_send_scan_start_cmd()
2371 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_START_SCAN_CMD) | in ath11k_wmi_send_scan_start_cmd()
2372 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_scan_start_cmd()
2374 cmd->scan_id = params->scan_id; in ath11k_wmi_send_scan_start_cmd()
2375 cmd->scan_req_id = params->scan_req_id; in ath11k_wmi_send_scan_start_cmd()
2376 cmd->vdev_id = params->vdev_id; in ath11k_wmi_send_scan_start_cmd()
2377 cmd->scan_priority = params->scan_priority; in ath11k_wmi_send_scan_start_cmd()
2378 cmd->notify_scan_events = params->notify_scan_events; in ath11k_wmi_send_scan_start_cmd()
2380 ath11k_wmi_copy_scan_event_cntrl_flags(cmd, params); in ath11k_wmi_send_scan_start_cmd()
2382 cmd->dwell_time_active = params->dwell_time_active; in ath11k_wmi_send_scan_start_cmd()
2383 cmd->dwell_time_active_2g = params->dwell_time_active_2g; in ath11k_wmi_send_scan_start_cmd()
2384 cmd->dwell_time_passive = params->dwell_time_passive; in ath11k_wmi_send_scan_start_cmd()
2385 cmd->dwell_time_active_6g = params->dwell_time_active_6g; in ath11k_wmi_send_scan_start_cmd()
2386 cmd->dwell_time_passive_6g = params->dwell_time_passive_6g; in ath11k_wmi_send_scan_start_cmd()
2387 cmd->min_rest_time = params->min_rest_time; in ath11k_wmi_send_scan_start_cmd()
2388 cmd->max_rest_time = params->max_rest_time; in ath11k_wmi_send_scan_start_cmd()
2389 cmd->repeat_probe_time = params->repeat_probe_time; in ath11k_wmi_send_scan_start_cmd()
2390 cmd->probe_spacing_time = params->probe_spacing_time; in ath11k_wmi_send_scan_start_cmd()
2391 cmd->idle_time = params->idle_time; in ath11k_wmi_send_scan_start_cmd()
2392 cmd->max_scan_time = params->max_scan_time; in ath11k_wmi_send_scan_start_cmd()
2393 cmd->probe_delay = params->probe_delay; in ath11k_wmi_send_scan_start_cmd()
2394 cmd->burst_duration = params->burst_duration; in ath11k_wmi_send_scan_start_cmd()
2395 cmd->num_chan = params->num_chan; in ath11k_wmi_send_scan_start_cmd()
2396 cmd->num_bssid = params->num_bssid; in ath11k_wmi_send_scan_start_cmd()
2397 cmd->num_ssids = params->num_ssids; in ath11k_wmi_send_scan_start_cmd()
2398 cmd->ie_len = params->extraie.len; in ath11k_wmi_send_scan_start_cmd()
2399 cmd->n_probes = params->n_probes; in ath11k_wmi_send_scan_start_cmd()
2400 ether_addr_copy(cmd->mac_addr.addr, params->mac_addr.addr); in ath11k_wmi_send_scan_start_cmd()
2401 ether_addr_copy(cmd->mac_mask.addr, params->mac_mask.addr); in ath11k_wmi_send_scan_start_cmd()
2403 ptr += sizeof(*cmd); in ath11k_wmi_send_scan_start_cmd()
2544 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd start scan"); in ath11k_wmi_send_scan_start_cmd()
2553 struct wmi_stop_scan_cmd *cmd; in ath11k_wmi_send_scan_stop_cmd() local
2557 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_scan_stop_cmd()
2561 cmd = (struct wmi_stop_scan_cmd *)skb->data; in ath11k_wmi_send_scan_stop_cmd()
2563 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_STOP_SCAN_CMD) | in ath11k_wmi_send_scan_stop_cmd()
2564 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_scan_stop_cmd()
2566 cmd->vdev_id = param->vdev_id; in ath11k_wmi_send_scan_stop_cmd()
2567 cmd->requestor = param->requester; in ath11k_wmi_send_scan_stop_cmd()
2568 cmd->scan_id = param->scan_id; in ath11k_wmi_send_scan_stop_cmd()
2569 cmd->pdev_id = param->pdev_id; in ath11k_wmi_send_scan_stop_cmd()
2573 cmd->req_type = WMI_SCAN_STOP_ALL; in ath11k_wmi_send_scan_stop_cmd()
2576 cmd->req_type = WMI_SCN_STOP_VAP_ALL; in ath11k_wmi_send_scan_stop_cmd()
2579 cmd->req_type = WMI_SCAN_STOP_ONE; in ath11k_wmi_send_scan_stop_cmd()
2594 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd stop scan"); in ath11k_wmi_send_scan_stop_cmd()
2603 struct wmi_scan_chan_list_cmd *cmd; in ath11k_wmi_send_scan_chan_list_cmd() local
2619 len = sizeof(*cmd) + TLV_HDR_SIZE; in ath11k_wmi_send_scan_chan_list_cmd()
2635 cmd = (struct wmi_scan_chan_list_cmd *)skb->data; in ath11k_wmi_send_scan_chan_list_cmd()
2636 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_SCAN_CHAN_LIST_CMD) | in ath11k_wmi_send_scan_chan_list_cmd()
2637 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_scan_chan_list_cmd()
2638 cmd->pdev_id = chan_list->pdev_id; in ath11k_wmi_send_scan_chan_list_cmd()
2639 cmd->num_scan_chans = num_send_chans; in ath11k_wmi_send_scan_chan_list_cmd()
2641 cmd->flags |= WMI_APPEND_TO_EXISTING_CHAN_LIST_FLAG; in ath11k_wmi_send_scan_chan_list_cmd()
2645 num_send_chans, len, cmd->pdev_id, num_sends); in ath11k_wmi_send_scan_chan_list_cmd()
2647 ptr = skb->data + sizeof(*cmd); in ath11k_wmi_send_scan_chan_list_cmd()
2721 ath11k_warn(ar->ab, "failed to send WMI_SCAN_CHAN_LIST cmd\n"); in ath11k_wmi_send_scan_chan_list_cmd()
2726 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd scan chan list channels %d", in ath11k_wmi_send_scan_chan_list_cmd()
2739 struct wmi_vdev_set_wmm_params_cmd *cmd; in ath11k_wmi_send_wmm_update_cmd_tlv() local
2745 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_wmm_update_cmd_tlv()
2749 cmd = (struct wmi_vdev_set_wmm_params_cmd *)skb->data; in ath11k_wmi_send_wmm_update_cmd_tlv()
2750 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_wmm_update_cmd_tlv()
2752 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_wmm_update_cmd_tlv()
2754 cmd->vdev_id = vdev_id; in ath11k_wmi_send_wmm_update_cmd_tlv()
2755 cmd->wmm_param_type = 0; in ath11k_wmi_send_wmm_update_cmd_tlv()
2773 wmm_param = (struct wmi_wmm_params *)&cmd->wmm_params[ac]; in ath11k_wmi_send_wmm_update_cmd_tlv()
2801 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd vdev set wmm params"); in ath11k_wmi_send_wmm_update_cmd_tlv()
2810 struct wmi_dfs_phyerr_offload_cmd *cmd; in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd() local
2814 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd()
2818 cmd = (struct wmi_dfs_phyerr_offload_cmd *)skb->data; in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd()
2819 cmd->tlv_header = in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd()
2822 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd()
2824 cmd->pdev_id = pdev_id; in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd()
2830 "failed to send WMI_PDEV_DFS_PHYERR_OFFLOAD_ENABLE cmd\n"); in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd()
2835 "cmd pdev dfs phyerr offload enable pdev id %d\n", pdev_id); in ath11k_wmi_send_dfs_phyerr_offload_enable_cmd()
2844 struct wmi_delba_send_cmd *cmd; in ath11k_wmi_delba_send() local
2848 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_delba_send()
2852 cmd = (struct wmi_delba_send_cmd *)skb->data; in ath11k_wmi_delba_send()
2853 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_DELBA_SEND_CMD) | in ath11k_wmi_delba_send()
2854 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_delba_send()
2855 cmd->vdev_id = vdev_id; in ath11k_wmi_delba_send()
2856 ether_addr_copy(cmd->peer_macaddr.addr, mac); in ath11k_wmi_delba_send()
2857 cmd->tid = tid; in ath11k_wmi_delba_send()
2858 cmd->initiator = initiator; in ath11k_wmi_delba_send()
2859 cmd->reasoncode = reason; in ath11k_wmi_delba_send()
2865 "failed to send WMI_DELBA_SEND_CMDID cmd\n"); in ath11k_wmi_delba_send()
2870 "cmd delba send vdev_id 0x%X mac_addr %pM tid %u initiator %u reason %u\n", in ath11k_wmi_delba_send()
2880 struct wmi_addba_setresponse_cmd *cmd; in ath11k_wmi_addba_set_resp() local
2884 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_addba_set_resp()
2888 cmd = (struct wmi_addba_setresponse_cmd *)skb->data; in ath11k_wmi_addba_set_resp()
2889 cmd->tlv_header = in ath11k_wmi_addba_set_resp()
2891 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_addba_set_resp()
2892 cmd->vdev_id = vdev_id; in ath11k_wmi_addba_set_resp()
2893 ether_addr_copy(cmd->peer_macaddr.addr, mac); in ath11k_wmi_addba_set_resp()
2894 cmd->tid = tid; in ath11k_wmi_addba_set_resp()
2895 cmd->statuscode = status; in ath11k_wmi_addba_set_resp()
2901 "failed to send WMI_ADDBA_SET_RESP_CMDID cmd\n"); in ath11k_wmi_addba_set_resp()
2906 "cmd addba set resp vdev_id 0x%X mac_addr %pM tid %u status %u\n", in ath11k_wmi_addba_set_resp()
2916 struct wmi_addba_send_cmd *cmd; in ath11k_wmi_addba_send() local
2920 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_addba_send()
2924 cmd = (struct wmi_addba_send_cmd *)skb->data; in ath11k_wmi_addba_send()
2925 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ADDBA_SEND_CMD) | in ath11k_wmi_addba_send()
2926 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_addba_send()
2927 cmd->vdev_id = vdev_id; in ath11k_wmi_addba_send()
2928 ether_addr_copy(cmd->peer_macaddr.addr, mac); in ath11k_wmi_addba_send()
2929 cmd->tid = tid; in ath11k_wmi_addba_send()
2930 cmd->buffersize = buf_size; in ath11k_wmi_addba_send()
2936 "failed to send WMI_ADDBA_SEND_CMDID cmd\n"); in ath11k_wmi_addba_send()
2941 "cmd addba send vdev_id 0x%X mac_addr %pM tid %u bufsize %u\n", in ath11k_wmi_addba_send()
2950 struct wmi_addba_clear_resp_cmd *cmd; in ath11k_wmi_addba_clear_resp() local
2954 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_addba_clear_resp()
2958 cmd = (struct wmi_addba_clear_resp_cmd *)skb->data; in ath11k_wmi_addba_clear_resp()
2959 cmd->tlv_header = in ath11k_wmi_addba_clear_resp()
2961 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_addba_clear_resp()
2962 cmd->vdev_id = vdev_id; in ath11k_wmi_addba_clear_resp()
2963 ether_addr_copy(cmd->peer_macaddr.addr, mac); in ath11k_wmi_addba_clear_resp()
2969 "failed to send WMI_ADDBA_CLEAR_RESP_CMDID cmd\n"); in ath11k_wmi_addba_clear_resp()
2974 "cmd addba clear resp vdev_id 0x%X mac_addr %pM\n", in ath11k_wmi_addba_clear_resp()
2983 struct wmi_pdev_pktlog_filter_cmd *cmd; in ath11k_wmi_pdev_peer_pktlog_filter() local
2994 len = sizeof(*cmd) + sizeof(*info) + TLV_HDR_SIZE; in ath11k_wmi_pdev_peer_pktlog_filter()
2999 cmd = (struct wmi_pdev_pktlog_filter_cmd *)skb->data; in ath11k_wmi_pdev_peer_pktlog_filter()
3001 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_PEER_PKTLOG_FILTER_CMD) | in ath11k_wmi_pdev_peer_pktlog_filter()
3002 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_peer_pktlog_filter()
3004 cmd->pdev_id = DP_HW2SW_MACID(ar->pdev->pdev_id); in ath11k_wmi_pdev_peer_pktlog_filter()
3005 cmd->num_mac = 1; in ath11k_wmi_pdev_peer_pktlog_filter()
3006 cmd->enable = enable; in ath11k_wmi_pdev_peer_pktlog_filter()
3008 ptr = skb->data + sizeof(*cmd); in ath11k_wmi_pdev_peer_pktlog_filter()
3037 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd pdev pktlog filter"); in ath11k_wmi_pdev_peer_pktlog_filter()
3047 struct wmi_init_country_cmd *cmd; in ath11k_wmi_send_init_country_cmd() local
3051 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_init_country_cmd()
3055 cmd = (struct wmi_init_country_cmd *)skb->data; in ath11k_wmi_send_init_country_cmd()
3056 cmd->tlv_header = in ath11k_wmi_send_init_country_cmd()
3059 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_init_country_cmd()
3061 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_send_init_country_cmd()
3065 cmd->init_cc_type = WMI_COUNTRY_INFO_TYPE_ALPHA; in ath11k_wmi_send_init_country_cmd()
3066 memcpy((u8 *)&cmd->cc_info.alpha2, in ath11k_wmi_send_init_country_cmd()
3070 cmd->init_cc_type = WMI_COUNTRY_INFO_TYPE_COUNTRY_CODE; in ath11k_wmi_send_init_country_cmd()
3071 cmd->cc_info.country_code = init_cc_params.cc_info.country_code; in ath11k_wmi_send_init_country_cmd()
3074 cmd->init_cc_type = WMI_COUNTRY_INFO_TYPE_REGDOMAIN; in ath11k_wmi_send_init_country_cmd()
3075 cmd->cc_info.regdom_id = init_cc_params.cc_info.regdom_id; in ath11k_wmi_send_init_country_cmd()
3088 "failed to send WMI_SET_INIT_COUNTRY CMD :%d\n", in ath11k_wmi_send_init_country_cmd()
3093 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd set init country"); in ath11k_wmi_send_init_country_cmd()
3106 struct wmi_set_current_country_cmd *cmd; in ath11k_wmi_send_set_current_country_cmd() local
3110 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_set_current_country_cmd()
3114 cmd = (struct wmi_set_current_country_cmd *)skb->data; in ath11k_wmi_send_set_current_country_cmd()
3115 cmd->tlv_header = in ath11k_wmi_send_set_current_country_cmd()
3117 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_set_current_country_cmd()
3119 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_send_set_current_country_cmd()
3120 memcpy(&cmd->new_alpha2, ¶m->alpha2, 3); in ath11k_wmi_send_set_current_country_cmd()
3130 "cmd set current country pdev id %d alpha2 %c%c\n", in ath11k_wmi_send_set_current_country_cmd()
3143 struct wmi_therm_throt_config_request_cmd *cmd; in ath11k_wmi_send_thermal_mitigation_param_cmd() local
3149 len = sizeof(*cmd) + TLV_HDR_SIZE + in ath11k_wmi_send_thermal_mitigation_param_cmd()
3156 cmd = (struct wmi_therm_throt_config_request_cmd *)skb->data; in ath11k_wmi_send_thermal_mitigation_param_cmd()
3158 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_THERM_THROT_CONFIG_REQUEST) | in ath11k_wmi_send_thermal_mitigation_param_cmd()
3159 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_thermal_mitigation_param_cmd()
3161 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_send_thermal_mitigation_param_cmd()
3162 cmd->enable = param->enable; in ath11k_wmi_send_thermal_mitigation_param_cmd()
3163 cmd->dc = param->dc; in ath11k_wmi_send_thermal_mitigation_param_cmd()
3164 cmd->dc_per_event = param->dc_per_event; in ath11k_wmi_send_thermal_mitigation_param_cmd()
3165 cmd->therm_throt_levels = THERMAL_LEVELS; in ath11k_wmi_send_thermal_mitigation_param_cmd()
3167 tlv = (struct wmi_tlv *)(skb->data + sizeof(*cmd)); in ath11k_wmi_send_thermal_mitigation_param_cmd()
3174 sizeof(*cmd) + in ath11k_wmi_send_thermal_mitigation_param_cmd()
3190 ath11k_warn(ar->ab, "failed to send THERM_THROT_SET_CONF cmd\n"); in ath11k_wmi_send_thermal_mitigation_param_cmd()
3195 "cmd therm throt set conf pdev_id %d enable %d dc %d dc_per_event %x levels %d\n", in ath11k_wmi_send_thermal_mitigation_param_cmd()
3206 struct wmi_11d_scan_start_cmd *cmd; in ath11k_wmi_send_11d_scan_start_cmd() local
3210 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_11d_scan_start_cmd()
3214 cmd = (struct wmi_11d_scan_start_cmd *)skb->data; in ath11k_wmi_send_11d_scan_start_cmd()
3215 cmd->tlv_header = in ath11k_wmi_send_11d_scan_start_cmd()
3217 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_11d_scan_start_cmd()
3219 cmd->vdev_id = param->vdev_id; in ath11k_wmi_send_11d_scan_start_cmd()
3220 cmd->scan_period_msec = param->scan_period_msec; in ath11k_wmi_send_11d_scan_start_cmd()
3221 cmd->start_interval_msec = param->start_interval_msec; in ath11k_wmi_send_11d_scan_start_cmd()
3231 "cmd 11d scan start vdev id %d period %d ms internal %d ms\n", in ath11k_wmi_send_11d_scan_start_cmd()
3232 cmd->vdev_id, in ath11k_wmi_send_11d_scan_start_cmd()
3233 cmd->scan_period_msec, in ath11k_wmi_send_11d_scan_start_cmd()
3234 cmd->start_interval_msec); in ath11k_wmi_send_11d_scan_start_cmd()
3242 struct wmi_11d_scan_stop_cmd *cmd; in ath11k_wmi_send_11d_scan_stop_cmd() local
3246 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_send_11d_scan_stop_cmd()
3250 cmd = (struct wmi_11d_scan_stop_cmd *)skb->data; in ath11k_wmi_send_11d_scan_stop_cmd()
3251 cmd->tlv_header = in ath11k_wmi_send_11d_scan_stop_cmd()
3253 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_send_11d_scan_stop_cmd()
3255 cmd->vdev_id = vdev_id; in ath11k_wmi_send_11d_scan_stop_cmd()
3265 "cmd 11d scan stop vdev id %d\n", in ath11k_wmi_send_11d_scan_stop_cmd()
3266 cmd->vdev_id); in ath11k_wmi_send_11d_scan_stop_cmd()
3274 struct wmi_pktlog_enable_cmd *cmd; in ath11k_wmi_pdev_pktlog_enable() local
3278 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_pktlog_enable()
3282 cmd = (struct wmi_pktlog_enable_cmd *)skb->data; in ath11k_wmi_pdev_pktlog_enable()
3284 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_PKTLOG_ENABLE_CMD) | in ath11k_wmi_pdev_pktlog_enable()
3285 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_pktlog_enable()
3287 cmd->pdev_id = DP_HW2SW_MACID(ar->pdev->pdev_id); in ath11k_wmi_pdev_pktlog_enable()
3288 cmd->evlist = pktlog_filter; in ath11k_wmi_pdev_pktlog_enable()
3289 cmd->enable = ATH11K_WMI_PKTLOG_ENABLE_FORCE; in ath11k_wmi_pdev_pktlog_enable()
3298 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd pdev pktlog enable"); in ath11k_wmi_pdev_pktlog_enable()
3306 struct wmi_pktlog_disable_cmd *cmd; in ath11k_wmi_pdev_pktlog_disable() local
3310 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_pktlog_disable()
3314 cmd = (struct wmi_pktlog_disable_cmd *)skb->data; in ath11k_wmi_pdev_pktlog_disable()
3316 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_PKTLOG_DISABLE_CMD) | in ath11k_wmi_pdev_pktlog_disable()
3317 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_pktlog_disable()
3319 cmd->pdev_id = DP_HW2SW_MACID(ar->pdev->pdev_id); in ath11k_wmi_pdev_pktlog_disable()
3328 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd pdev pktlog disable"); in ath11k_wmi_pdev_pktlog_disable()
3364 struct wmi_twt_enable_params_cmd *cmd; in ath11k_wmi_send_twt_enable_cmd() local
3368 len = sizeof(*cmd); in ath11k_wmi_send_twt_enable_cmd()
3374 cmd = (struct wmi_twt_enable_params_cmd *)skb->data; in ath11k_wmi_send_twt_enable_cmd()
3375 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_TWT_ENABLE_CMD) | in ath11k_wmi_send_twt_enable_cmd()
3377 cmd->pdev_id = pdev_id; in ath11k_wmi_send_twt_enable_cmd()
3378 cmd->sta_cong_timer_ms = params->sta_cong_timer_ms; in ath11k_wmi_send_twt_enable_cmd()
3379 cmd->default_slot_size = params->default_slot_size; in ath11k_wmi_send_twt_enable_cmd()
3380 cmd->congestion_thresh_setup = params->congestion_thresh_setup; in ath11k_wmi_send_twt_enable_cmd()
3381 cmd->congestion_thresh_teardown = params->congestion_thresh_teardown; in ath11k_wmi_send_twt_enable_cmd()
3382 cmd->congestion_thresh_critical = params->congestion_thresh_critical; in ath11k_wmi_send_twt_enable_cmd()
3383 cmd->interference_thresh_teardown = params->interference_thresh_teardown; in ath11k_wmi_send_twt_enable_cmd()
3384 cmd->interference_thresh_setup = params->interference_thresh_setup; in ath11k_wmi_send_twt_enable_cmd()
3385 cmd->min_no_sta_setup = params->min_no_sta_setup; in ath11k_wmi_send_twt_enable_cmd()
3386 cmd->min_no_sta_teardown = params->min_no_sta_teardown; in ath11k_wmi_send_twt_enable_cmd()
3387 cmd->no_of_bcast_mcast_slots = params->no_of_bcast_mcast_slots; in ath11k_wmi_send_twt_enable_cmd()
3388 cmd->min_no_twt_slots = params->min_no_twt_slots; in ath11k_wmi_send_twt_enable_cmd()
3389 cmd->max_no_sta_twt = params->max_no_sta_twt; in ath11k_wmi_send_twt_enable_cmd()
3390 cmd->mode_check_interval = params->mode_check_interval; in ath11k_wmi_send_twt_enable_cmd()
3391 cmd->add_sta_slot_interval = params->add_sta_slot_interval; in ath11k_wmi_send_twt_enable_cmd()
3392 cmd->remove_sta_slot_interval = params->remove_sta_slot_interval; in ath11k_wmi_send_twt_enable_cmd()
3393 cmd->mbss_support = params->mbss_support; in ath11k_wmi_send_twt_enable_cmd()
3404 ath11k_dbg(ab, ATH11K_DBG_WMI, "cmd twt enable"); in ath11k_wmi_send_twt_enable_cmd()
3414 struct wmi_twt_disable_params_cmd *cmd; in ath11k_wmi_send_twt_disable_cmd() local
3418 len = sizeof(*cmd); in ath11k_wmi_send_twt_disable_cmd()
3424 cmd = (struct wmi_twt_disable_params_cmd *)skb->data; in ath11k_wmi_send_twt_disable_cmd()
3425 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_TWT_DISABLE_CMD) | in ath11k_wmi_send_twt_disable_cmd()
3427 cmd->pdev_id = pdev_id; in ath11k_wmi_send_twt_disable_cmd()
3436 ath11k_dbg(ab, ATH11K_DBG_WMI, "cmd twt disable"); in ath11k_wmi_send_twt_disable_cmd()
3448 struct wmi_twt_add_dialog_params_cmd *cmd; in ath11k_wmi_send_twt_add_dialog_cmd() local
3452 len = sizeof(*cmd); in ath11k_wmi_send_twt_add_dialog_cmd()
3458 cmd = (struct wmi_twt_add_dialog_params_cmd *)skb->data; in ath11k_wmi_send_twt_add_dialog_cmd()
3459 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_TWT_ADD_DIALOG_CMD) | in ath11k_wmi_send_twt_add_dialog_cmd()
3462 cmd->vdev_id = params->vdev_id; in ath11k_wmi_send_twt_add_dialog_cmd()
3463 ether_addr_copy(cmd->peer_macaddr.addr, params->peer_macaddr); in ath11k_wmi_send_twt_add_dialog_cmd()
3464 cmd->dialog_id = params->dialog_id; in ath11k_wmi_send_twt_add_dialog_cmd()
3465 cmd->wake_intvl_us = params->wake_intvl_us; in ath11k_wmi_send_twt_add_dialog_cmd()
3466 cmd->wake_intvl_mantis = params->wake_intvl_mantis; in ath11k_wmi_send_twt_add_dialog_cmd()
3467 cmd->wake_dura_us = params->wake_dura_us; in ath11k_wmi_send_twt_add_dialog_cmd()
3468 cmd->sp_offset_us = params->sp_offset_us; in ath11k_wmi_send_twt_add_dialog_cmd()
3469 cmd->flags = params->twt_cmd; in ath11k_wmi_send_twt_add_dialog_cmd()
3471 cmd->flags |= WMI_TWT_ADD_DIALOG_FLAG_BCAST; in ath11k_wmi_send_twt_add_dialog_cmd()
3473 cmd->flags |= WMI_TWT_ADD_DIALOG_FLAG_TRIGGER; in ath11k_wmi_send_twt_add_dialog_cmd()
3475 cmd->flags |= WMI_TWT_ADD_DIALOG_FLAG_FLOW_TYPE; in ath11k_wmi_send_twt_add_dialog_cmd()
3477 cmd->flags |= WMI_TWT_ADD_DIALOG_FLAG_PROTECTION; in ath11k_wmi_send_twt_add_dialog_cmd()
3489 …"cmd twt add dialog vdev %u dialog id %u wake interval %u mantissa %u wake duration %u service per… in ath11k_wmi_send_twt_add_dialog_cmd()
3490 cmd->vdev_id, cmd->dialog_id, cmd->wake_intvl_us, in ath11k_wmi_send_twt_add_dialog_cmd()
3491 cmd->wake_intvl_mantis, cmd->wake_dura_us, cmd->sp_offset_us, in ath11k_wmi_send_twt_add_dialog_cmd()
3492 cmd->flags); in ath11k_wmi_send_twt_add_dialog_cmd()
3502 struct wmi_twt_del_dialog_params_cmd *cmd; in ath11k_wmi_send_twt_del_dialog_cmd() local
3506 len = sizeof(*cmd); in ath11k_wmi_send_twt_del_dialog_cmd()
3512 cmd = (struct wmi_twt_del_dialog_params_cmd *)skb->data; in ath11k_wmi_send_twt_del_dialog_cmd()
3513 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_TWT_DEL_DIALOG_CMD) | in ath11k_wmi_send_twt_del_dialog_cmd()
3516 cmd->vdev_id = params->vdev_id; in ath11k_wmi_send_twt_del_dialog_cmd()
3517 ether_addr_copy(cmd->peer_macaddr.addr, params->peer_macaddr); in ath11k_wmi_send_twt_del_dialog_cmd()
3518 cmd->dialog_id = params->dialog_id; in ath11k_wmi_send_twt_del_dialog_cmd()
3530 "cmd twt del dialog vdev %u dialog id %u\n", in ath11k_wmi_send_twt_del_dialog_cmd()
3531 cmd->vdev_id, cmd->dialog_id); in ath11k_wmi_send_twt_del_dialog_cmd()
3541 struct wmi_twt_pause_dialog_params_cmd *cmd; in ath11k_wmi_send_twt_pause_dialog_cmd() local
3545 len = sizeof(*cmd); in ath11k_wmi_send_twt_pause_dialog_cmd()
3551 cmd = (struct wmi_twt_pause_dialog_params_cmd *)skb->data; in ath11k_wmi_send_twt_pause_dialog_cmd()
3552 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_twt_pause_dialog_cmd()
3556 cmd->vdev_id = params->vdev_id; in ath11k_wmi_send_twt_pause_dialog_cmd()
3557 ether_addr_copy(cmd->peer_macaddr.addr, params->peer_macaddr); in ath11k_wmi_send_twt_pause_dialog_cmd()
3558 cmd->dialog_id = params->dialog_id; in ath11k_wmi_send_twt_pause_dialog_cmd()
3570 "cmd twt pause dialog vdev %u dialog id %u\n", in ath11k_wmi_send_twt_pause_dialog_cmd()
3571 cmd->vdev_id, cmd->dialog_id); in ath11k_wmi_send_twt_pause_dialog_cmd()
3581 struct wmi_twt_resume_dialog_params_cmd *cmd; in ath11k_wmi_send_twt_resume_dialog_cmd() local
3585 len = sizeof(*cmd); in ath11k_wmi_send_twt_resume_dialog_cmd()
3591 cmd = (struct wmi_twt_resume_dialog_params_cmd *)skb->data; in ath11k_wmi_send_twt_resume_dialog_cmd()
3592 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_twt_resume_dialog_cmd()
3596 cmd->vdev_id = params->vdev_id; in ath11k_wmi_send_twt_resume_dialog_cmd()
3597 ether_addr_copy(cmd->peer_macaddr.addr, params->peer_macaddr); in ath11k_wmi_send_twt_resume_dialog_cmd()
3598 cmd->dialog_id = params->dialog_id; in ath11k_wmi_send_twt_resume_dialog_cmd()
3599 cmd->sp_offset_us = params->sp_offset_us; in ath11k_wmi_send_twt_resume_dialog_cmd()
3600 cmd->next_twt_size = params->next_twt_size; in ath11k_wmi_send_twt_resume_dialog_cmd()
3612 … "cmd twt resume dialog vdev %u dialog id %u service period offset %u next twt subfield size %u\n", in ath11k_wmi_send_twt_resume_dialog_cmd()
3613 cmd->vdev_id, cmd->dialog_id, cmd->sp_offset_us, in ath11k_wmi_send_twt_resume_dialog_cmd()
3614 cmd->next_twt_size); in ath11k_wmi_send_twt_resume_dialog_cmd()
3625 struct wmi_obss_spatial_reuse_params_cmd *cmd; in ath11k_wmi_send_obss_spr_cmd() local
3629 len = sizeof(*cmd); in ath11k_wmi_send_obss_spr_cmd()
3635 cmd = (struct wmi_obss_spatial_reuse_params_cmd *)skb->data; in ath11k_wmi_send_obss_spr_cmd()
3636 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_obss_spr_cmd()
3639 cmd->vdev_id = vdev_id; in ath11k_wmi_send_obss_spr_cmd()
3640 cmd->enable = he_obss_pd->enable; in ath11k_wmi_send_obss_spr_cmd()
3641 cmd->obss_min = he_obss_pd->min_offset; in ath11k_wmi_send_obss_spr_cmd()
3642 cmd->obss_max = he_obss_pd->max_offset; in ath11k_wmi_send_obss_spr_cmd()
3653 ath11k_dbg(ab, ATH11K_DBG_WMI, "cmd pdev obss pd spatial reuse"); in ath11k_wmi_send_obss_spr_cmd()
3663 struct wmi_pdev_obss_pd_bitmap_cmd *cmd; in ath11k_wmi_pdev_set_srg_bss_color_bitmap() local
3667 len = sizeof(*cmd); in ath11k_wmi_pdev_set_srg_bss_color_bitmap()
3673 cmd = (struct wmi_pdev_obss_pd_bitmap_cmd *)skb->data; in ath11k_wmi_pdev_set_srg_bss_color_bitmap()
3674 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_pdev_set_srg_bss_color_bitmap()
3677 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_pdev_set_srg_bss_color_bitmap()
3678 memcpy(cmd->bitmap, bitmap, sizeof(cmd->bitmap)); in ath11k_wmi_pdev_set_srg_bss_color_bitmap()
3690 "cmd pdev set srg bss color bitmap pdev_id %d bss color bitmap %08x %08x\n", in ath11k_wmi_pdev_set_srg_bss_color_bitmap()
3691 cmd->pdev_id, cmd->bitmap[0], cmd->bitmap[1]); in ath11k_wmi_pdev_set_srg_bss_color_bitmap()
3701 struct wmi_pdev_obss_pd_bitmap_cmd *cmd; in ath11k_wmi_pdev_set_srg_patial_bssid_bitmap() local
3705 len = sizeof(*cmd); in ath11k_wmi_pdev_set_srg_patial_bssid_bitmap()
3711 cmd = (struct wmi_pdev_obss_pd_bitmap_cmd *)skb->data; in ath11k_wmi_pdev_set_srg_patial_bssid_bitmap()
3712 cmd->tlv_header = in ath11k_wmi_pdev_set_srg_patial_bssid_bitmap()
3716 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_pdev_set_srg_patial_bssid_bitmap()
3717 memcpy(cmd->bitmap, bitmap, sizeof(cmd->bitmap)); in ath11k_wmi_pdev_set_srg_patial_bssid_bitmap()
3729 "cmd pdev set srg partial bssid bitmap pdev_id %d partial bssid bitmap %08x %08x\n", in ath11k_wmi_pdev_set_srg_patial_bssid_bitmap()
3730 cmd->pdev_id, cmd->bitmap[0], cmd->bitmap[1]); in ath11k_wmi_pdev_set_srg_patial_bssid_bitmap()
3740 struct wmi_pdev_obss_pd_bitmap_cmd *cmd; in ath11k_wmi_pdev_srg_obss_color_enable_bitmap() local
3744 len = sizeof(*cmd); in ath11k_wmi_pdev_srg_obss_color_enable_bitmap()
3750 cmd = (struct wmi_pdev_obss_pd_bitmap_cmd *)skb->data; in ath11k_wmi_pdev_srg_obss_color_enable_bitmap()
3751 cmd->tlv_header = in ath11k_wmi_pdev_srg_obss_color_enable_bitmap()
3755 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_pdev_srg_obss_color_enable_bitmap()
3756 memcpy(cmd->bitmap, bitmap, sizeof(cmd->bitmap)); in ath11k_wmi_pdev_srg_obss_color_enable_bitmap()
3768 "cmd pdev set srg obsscolor enable pdev_id %d bss color enable bitmap %08x %08x\n", in ath11k_wmi_pdev_srg_obss_color_enable_bitmap()
3769 cmd->pdev_id, cmd->bitmap[0], cmd->bitmap[1]); in ath11k_wmi_pdev_srg_obss_color_enable_bitmap()
3779 struct wmi_pdev_obss_pd_bitmap_cmd *cmd; in ath11k_wmi_pdev_srg_obss_bssid_enable_bitmap() local
3783 len = sizeof(*cmd); in ath11k_wmi_pdev_srg_obss_bssid_enable_bitmap()
3789 cmd = (struct wmi_pdev_obss_pd_bitmap_cmd *)skb->data; in ath11k_wmi_pdev_srg_obss_bssid_enable_bitmap()
3790 cmd->tlv_header = in ath11k_wmi_pdev_srg_obss_bssid_enable_bitmap()
3794 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_pdev_srg_obss_bssid_enable_bitmap()
3795 memcpy(cmd->bitmap, bitmap, sizeof(cmd->bitmap)); in ath11k_wmi_pdev_srg_obss_bssid_enable_bitmap()
3807 "cmd pdev set srg obss bssid enable bitmap pdev_id %d bssid enable bitmap %08x %08x\n", in ath11k_wmi_pdev_srg_obss_bssid_enable_bitmap()
3808 cmd->pdev_id, cmd->bitmap[0], cmd->bitmap[1]); in ath11k_wmi_pdev_srg_obss_bssid_enable_bitmap()
3818 struct wmi_pdev_obss_pd_bitmap_cmd *cmd; in ath11k_wmi_pdev_non_srg_obss_color_enable_bitmap() local
3822 len = sizeof(*cmd); in ath11k_wmi_pdev_non_srg_obss_color_enable_bitmap()
3828 cmd = (struct wmi_pdev_obss_pd_bitmap_cmd *)skb->data; in ath11k_wmi_pdev_non_srg_obss_color_enable_bitmap()
3829 cmd->tlv_header = in ath11k_wmi_pdev_non_srg_obss_color_enable_bitmap()
3833 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_pdev_non_srg_obss_color_enable_bitmap()
3834 memcpy(cmd->bitmap, bitmap, sizeof(cmd->bitmap)); in ath11k_wmi_pdev_non_srg_obss_color_enable_bitmap()
3846 "cmd pdev set non srg obss color enable bitmap pdev_id %d bss color enable bitmap %08x %08x\n", in ath11k_wmi_pdev_non_srg_obss_color_enable_bitmap()
3847 cmd->pdev_id, cmd->bitmap[0], cmd->bitmap[1]); in ath11k_wmi_pdev_non_srg_obss_color_enable_bitmap()
3857 struct wmi_pdev_obss_pd_bitmap_cmd *cmd; in ath11k_wmi_pdev_non_srg_obss_bssid_enable_bitmap() local
3861 len = sizeof(*cmd); in ath11k_wmi_pdev_non_srg_obss_bssid_enable_bitmap()
3867 cmd = (struct wmi_pdev_obss_pd_bitmap_cmd *)skb->data; in ath11k_wmi_pdev_non_srg_obss_bssid_enable_bitmap()
3868 cmd->tlv_header = in ath11k_wmi_pdev_non_srg_obss_bssid_enable_bitmap()
3872 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_pdev_non_srg_obss_bssid_enable_bitmap()
3873 memcpy(cmd->bitmap, bitmap, sizeof(cmd->bitmap)); in ath11k_wmi_pdev_non_srg_obss_bssid_enable_bitmap()
3885 "cmd pdev set non srg obss bssid enable bitmap pdev_id %d bssid enable bitmap %08x %08x\n", in ath11k_wmi_pdev_non_srg_obss_bssid_enable_bitmap()
3886 cmd->pdev_id, cmd->bitmap[0], cmd->bitmap[1]); in ath11k_wmi_pdev_non_srg_obss_bssid_enable_bitmap()
3898 struct wmi_obss_color_collision_cfg_params_cmd *cmd; in ath11k_wmi_send_obss_color_collision_cfg_cmd() local
3902 len = sizeof(*cmd); in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3908 cmd = (struct wmi_obss_color_collision_cfg_params_cmd *)skb->data; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3909 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3912 cmd->vdev_id = vdev_id; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3913 cmd->evt_type = enable ? ATH11K_OBSS_COLOR_COLLISION_DETECTION : in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3915 cmd->current_bss_color = bss_color; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3916 cmd->detection_period_ms = period; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3917 cmd->scan_period_ms = ATH11K_BSS_COLOR_COLLISION_SCAN_PERIOD_MS; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3918 cmd->free_slot_expiry_time_ms = 0; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3919 cmd->flags = 0; in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3930 …"cmd obss color collision det config id %d type %d bss_color %d detect_period %d scan_period %d\n", in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3931 cmd->vdev_id, cmd->evt_type, cmd->current_bss_color, in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3932 cmd->detection_period_ms, cmd->scan_period_ms); in ath11k_wmi_send_obss_color_collision_cfg_cmd()
3942 struct wmi_bss_color_change_enable_params_cmd *cmd; in ath11k_wmi_send_bss_color_change_enable_cmd() local
3946 len = sizeof(*cmd); in ath11k_wmi_send_bss_color_change_enable_cmd()
3952 cmd = (struct wmi_bss_color_change_enable_params_cmd *)skb->data; in ath11k_wmi_send_bss_color_change_enable_cmd()
3953 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_BSS_COLOR_CHANGE_ENABLE) | in ath11k_wmi_send_bss_color_change_enable_cmd()
3955 cmd->vdev_id = vdev_id; in ath11k_wmi_send_bss_color_change_enable_cmd()
3956 cmd->enable = enable ? 1 : 0; in ath11k_wmi_send_bss_color_change_enable_cmd()
3967 "cmd bss color change enable id %d enable %d\n", in ath11k_wmi_send_bss_color_change_enable_cmd()
3968 cmd->vdev_id, cmd->enable); in ath11k_wmi_send_bss_color_change_enable_cmd()
3981 struct wmi_fils_discovery_tmpl_cmd *cmd; in ath11k_wmi_fils_discovery_tmpl() local
3984 len = sizeof(*cmd) + TLV_HDR_SIZE + aligned_len; in ath11k_wmi_fils_discovery_tmpl()
3993 cmd = (struct wmi_fils_discovery_tmpl_cmd *)skb->data; in ath11k_wmi_fils_discovery_tmpl()
3994 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_fils_discovery_tmpl()
3996 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_fils_discovery_tmpl()
3997 cmd->vdev_id = vdev_id; in ath11k_wmi_fils_discovery_tmpl()
3998 cmd->buf_len = tmpl->len; in ath11k_wmi_fils_discovery_tmpl()
3999 ptr = skb->data + sizeof(*cmd); in ath11k_wmi_fils_discovery_tmpl()
4015 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd fils discovery tmpl"); in ath11k_wmi_fils_discovery_tmpl()
4023 struct wmi_probe_tmpl_cmd *cmd; in ath11k_wmi_probe_resp_tmpl() local
4038 len = sizeof(*cmd) + sizeof(*probe_info) + TLV_HDR_SIZE + aligned_len; in ath11k_wmi_probe_resp_tmpl()
4044 cmd = (struct wmi_probe_tmpl_cmd *)skb->data; in ath11k_wmi_probe_resp_tmpl()
4045 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PRB_TMPL_CMD) | in ath11k_wmi_probe_resp_tmpl()
4046 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_probe_resp_tmpl()
4047 cmd->vdev_id = vdev_id; in ath11k_wmi_probe_resp_tmpl()
4048 cmd->buf_len = tmpl->len; in ath11k_wmi_probe_resp_tmpl()
4050 ptr = skb->data + sizeof(*cmd); in ath11k_wmi_probe_resp_tmpl()
4084 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd "); in ath11k_wmi_probe_resp_tmpl()
4094 struct wmi_fils_discovery_cmd *cmd; in ath11k_wmi_fils_discovery() local
4102 len = sizeof(*cmd); in ath11k_wmi_fils_discovery()
4107 cmd = (struct wmi_fils_discovery_cmd *)skb->data; in ath11k_wmi_fils_discovery()
4108 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_ENABLE_FILS_CMD) | in ath11k_wmi_fils_discovery()
4110 cmd->vdev_id = vdev_id; in ath11k_wmi_fils_discovery()
4111 cmd->interval = interval; in ath11k_wmi_fils_discovery()
4112 cmd->config = unsol_bcast_probe_resp_enabled; in ath11k_wmi_fils_discovery()
4123 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd enable fils"); in ath11k_wmi_fils_discovery()
4294 struct wmi_init_cmd *cmd; in ath11k_init_cmd_send() local
4313 len = sizeof(*cmd) + TLV_HDR_SIZE + sizeof(*cfg) + hw_mode_len + in ath11k_init_cmd_send()
4320 cmd = (struct wmi_init_cmd *)skb->data; in ath11k_init_cmd_send()
4322 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_INIT_CMD) | in ath11k_init_cmd_send()
4323 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_init_cmd_send()
4325 ptr = skb->data + sizeof(*cmd); in ath11k_init_cmd_send()
4367 cmd->num_host_mem_chunks = param->num_mem_chunks; in ath11k_init_cmd_send()
4427 ath11k_dbg(ab, ATH11K_DBG_WMI, "cmd wmi init"); in ath11k_init_cmd_send()
4435 struct ath11k_wmi_pdev_lro_config_cmd *cmd; in ath11k_wmi_pdev_lro_cfg() local
4439 skb = ath11k_wmi_alloc_skb(ar->wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_lro_cfg()
4443 cmd = (struct ath11k_wmi_pdev_lro_config_cmd *)skb->data; in ath11k_wmi_pdev_lro_cfg()
4444 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_LRO_INFO_CMD) | in ath11k_wmi_pdev_lro_cfg()
4445 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_lro_cfg()
4447 get_random_bytes(cmd->th_4, sizeof(uint32_t) * ATH11K_IPV4_TH_SEED_SIZE); in ath11k_wmi_pdev_lro_cfg()
4448 get_random_bytes(cmd->th_6, sizeof(uint32_t) * ATH11K_IPV6_TH_SEED_SIZE); in ath11k_wmi_pdev_lro_cfg()
4450 cmd->pdev_id = pdev_id; in ath11k_wmi_pdev_lro_cfg()
4455 "failed to send lro cfg req wmi cmd\n"); in ath11k_wmi_pdev_lro_cfg()
4460 "cmd lro config pdev_id 0x%x\n", pdev_id); in ath11k_wmi_pdev_lro_cfg()
4494 struct wmi_pdev_set_hw_mode_cmd_param *cmd; in ath11k_wmi_set_hw_mode() local
4500 len = sizeof(*cmd); in ath11k_wmi_set_hw_mode()
4506 cmd = (struct wmi_pdev_set_hw_mode_cmd_param *)skb->data; in ath11k_wmi_set_hw_mode()
4508 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_SET_HW_MODE_CMD) | in ath11k_wmi_set_hw_mode()
4509 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_set_hw_mode()
4511 cmd->pdev_id = WMI_PDEV_ID_SOC; in ath11k_wmi_set_hw_mode()
4512 cmd->hw_mode_index = mode; in ath11k_wmi_set_hw_mode()
4521 ath11k_dbg(ab, ATH11K_DBG_WMI, "cmd pdev set hw mode %d", cmd->hw_mode_index); in ath11k_wmi_set_hw_mode()
4560 struct ath11k_wmi_vdev_spectral_conf_cmd *cmd; in ath11k_wmi_vdev_spectral_conf() local
4564 skb = ath11k_wmi_alloc_skb(ar->wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_spectral_conf()
4568 cmd = (struct ath11k_wmi_vdev_spectral_conf_cmd *)skb->data; in ath11k_wmi_vdev_spectral_conf()
4569 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_vdev_spectral_conf()
4571 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_spectral_conf()
4573 memcpy(&cmd->param, param, sizeof(*param)); in ath11k_wmi_vdev_spectral_conf()
4579 "failed to send spectral scan config wmi cmd\n"); in ath11k_wmi_vdev_spectral_conf()
4584 "cmd vdev spectral scan configure vdev_id 0x%x\n", in ath11k_wmi_vdev_spectral_conf()
4596 struct ath11k_wmi_vdev_spectral_enable_cmd *cmd; in ath11k_wmi_vdev_spectral_enable() local
4600 skb = ath11k_wmi_alloc_skb(ar->wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_vdev_spectral_enable()
4604 cmd = (struct ath11k_wmi_vdev_spectral_enable_cmd *)skb->data; in ath11k_wmi_vdev_spectral_enable()
4605 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_vdev_spectral_enable()
4607 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_vdev_spectral_enable()
4609 cmd->vdev_id = vdev_id; in ath11k_wmi_vdev_spectral_enable()
4610 cmd->trigger_cmd = trigger; in ath11k_wmi_vdev_spectral_enable()
4611 cmd->enable_cmd = enable; in ath11k_wmi_vdev_spectral_enable()
4617 "failed to send spectral enable wmi cmd\n"); in ath11k_wmi_vdev_spectral_enable()
4622 "cmd vdev spectral scan enable vdev id 0x%x\n", in ath11k_wmi_vdev_spectral_enable()
4634 struct ath11k_wmi_pdev_dma_ring_cfg_req_cmd *cmd; in ath11k_wmi_pdev_dma_ring_cfg() local
4638 skb = ath11k_wmi_alloc_skb(ar->wmi->wmi_ab, sizeof(*cmd)); in ath11k_wmi_pdev_dma_ring_cfg()
4642 cmd = (struct ath11k_wmi_pdev_dma_ring_cfg_req_cmd *)skb->data; in ath11k_wmi_pdev_dma_ring_cfg()
4643 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_DMA_RING_CFG_REQ) | in ath11k_wmi_pdev_dma_ring_cfg()
4644 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_dma_ring_cfg()
4646 cmd->pdev_id = param->pdev_id; in ath11k_wmi_pdev_dma_ring_cfg()
4647 cmd->module_id = param->module_id; in ath11k_wmi_pdev_dma_ring_cfg()
4648 cmd->base_paddr_lo = param->base_paddr_lo; in ath11k_wmi_pdev_dma_ring_cfg()
4649 cmd->base_paddr_hi = param->base_paddr_hi; in ath11k_wmi_pdev_dma_ring_cfg()
4650 cmd->head_idx_paddr_lo = param->head_idx_paddr_lo; in ath11k_wmi_pdev_dma_ring_cfg()
4651 cmd->head_idx_paddr_hi = param->head_idx_paddr_hi; in ath11k_wmi_pdev_dma_ring_cfg()
4652 cmd->tail_idx_paddr_lo = param->tail_idx_paddr_lo; in ath11k_wmi_pdev_dma_ring_cfg()
4653 cmd->tail_idx_paddr_hi = param->tail_idx_paddr_hi; in ath11k_wmi_pdev_dma_ring_cfg()
4654 cmd->num_elems = param->num_elems; in ath11k_wmi_pdev_dma_ring_cfg()
4655 cmd->buf_size = param->buf_size; in ath11k_wmi_pdev_dma_ring_cfg()
4656 cmd->num_resp_per_event = param->num_resp_per_event; in ath11k_wmi_pdev_dma_ring_cfg()
4657 cmd->event_timeout_ms = param->event_timeout_ms; in ath11k_wmi_pdev_dma_ring_cfg()
4663 "failed to send dma ring cfg req wmi cmd\n"); in ath11k_wmi_pdev_dma_ring_cfg()
4668 "cmd pdev dma ring cfg req pdev_id 0x%x\n", in ath11k_wmi_pdev_dma_ring_cfg()
5791 * shown multiple times in iw cmd. in ath11k_pull_reg_chan_list_ext_update_ev()
7507 * reverted at the fw and the old SCAN_CHAN_LIST cmd needs to be sent. in ath11k_reg_chan_list_event()
9172 struct wmi_unit_test_cmd *cmd; in ath11k_wmi_send_unit_test_cmd() local
9192 cmd = (struct wmi_unit_test_cmd *)skb->data; in ath11k_wmi_send_unit_test_cmd()
9193 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_UNIT_TEST_CMD) | in ath11k_wmi_send_unit_test_cmd()
9196 cmd->vdev_id = ut_cmd.vdev_id; in ath11k_wmi_send_unit_test_cmd()
9197 cmd->module_id = ut_cmd.module_id; in ath11k_wmi_send_unit_test_cmd()
9198 cmd->num_args = ut_cmd.num_args; in ath11k_wmi_send_unit_test_cmd()
9199 cmd->diag_token = ut_cmd.diag_token; in ath11k_wmi_send_unit_test_cmd()
9224 ath11k_warn(ar->ab, "failed to send WMI_UNIT_TEST CMD :%d\n", in ath11k_wmi_send_unit_test_cmd()
9230 "cmd unit test module %d vdev %d n_args %d token %d\n", in ath11k_wmi_send_unit_test_cmd()
9231 cmd->module_id, cmd->vdev_id, cmd->num_args, in ath11k_wmi_send_unit_test_cmd()
9232 cmd->diag_token); in ath11k_wmi_send_unit_test_cmd()
9276 struct wmi_debug_log_config_cmd_fixed_param *cmd; in ath11k_wmi_fw_dbglog_cfg() local
9281 len = sizeof(*cmd) + TLV_HDR_SIZE + (MAX_MODULE_ID_BITMAP_WORDS * sizeof(u32)); in ath11k_wmi_fw_dbglog_cfg()
9286 cmd = (struct wmi_debug_log_config_cmd_fixed_param *)skb->data; in ath11k_wmi_fw_dbglog_cfg()
9287 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_DEBUG_LOG_CONFIG_CMD) | in ath11k_wmi_fw_dbglog_cfg()
9288 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_fw_dbglog_cfg()
9289 cmd->dbg_log_param = dbglog->param; in ath11k_wmi_fw_dbglog_cfg()
9291 tlv = (struct wmi_tlv *)((u8 *)cmd + sizeof(*cmd)); in ath11k_wmi_fw_dbglog_cfg()
9300 cmd->value = dbglog->value; in ath11k_wmi_fw_dbglog_cfg()
9304 cmd->value = dbglog->value; in ath11k_wmi_fw_dbglog_cfg()
9323 ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "cmd dbglog cfg"); in ath11k_wmi_fw_dbglog_cfg()
9406 struct wmi_hw_data_filter_cmd *cmd; in ath11k_wmi_hw_data_filter_cmd() local
9410 len = sizeof(*cmd); in ath11k_wmi_hw_data_filter_cmd()
9416 cmd = (struct wmi_hw_data_filter_cmd *)skb->data; in ath11k_wmi_hw_data_filter_cmd()
9417 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_HW_DATA_FILTER_CMD) | in ath11k_wmi_hw_data_filter_cmd()
9418 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_hw_data_filter_cmd()
9420 cmd->vdev_id = vdev_id; in ath11k_wmi_hw_data_filter_cmd()
9421 cmd->enable = enable; in ath11k_wmi_hw_data_filter_cmd()
9424 if (cmd->enable) in ath11k_wmi_hw_data_filter_cmd()
9425 cmd->hw_filter_bitmap = filter_bitmap; in ath11k_wmi_hw_data_filter_cmd()
9427 cmd->hw_filter_bitmap = ((u32)~0U); in ath11k_wmi_hw_data_filter_cmd()
9438 struct wmi_wow_host_wakeup_ind *cmd; in ath11k_wmi_wow_host_wakeup_ind() local
9442 len = sizeof(*cmd); in ath11k_wmi_wow_host_wakeup_ind()
9447 cmd = (struct wmi_wow_host_wakeup_ind *)skb->data; in ath11k_wmi_wow_host_wakeup_ind()
9448 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_wow_host_wakeup_ind()
9450 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_wow_host_wakeup_ind()
9459 struct wmi_wow_enable_cmd *cmd; in ath11k_wmi_wow_enable() local
9463 len = sizeof(*cmd); in ath11k_wmi_wow_enable()
9468 cmd = (struct wmi_wow_enable_cmd *)skb->data; in ath11k_wmi_wow_enable()
9469 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_WOW_ENABLE_CMD) | in ath11k_wmi_wow_enable()
9470 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_wow_enable()
9472 cmd->enable = 1; in ath11k_wmi_wow_enable()
9473 cmd->pause_iface_config = WOW_IFACE_PAUSE_ENABLED; in ath11k_wmi_wow_enable()
9483 struct wmi_scan_prob_req_oui_cmd *cmd; in ath11k_wmi_scan_prob_req_oui() local
9490 len = sizeof(*cmd); in ath11k_wmi_scan_prob_req_oui()
9495 cmd = (struct wmi_scan_prob_req_oui_cmd *)skb->data; in ath11k_wmi_scan_prob_req_oui()
9496 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_scan_prob_req_oui()
9498 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_scan_prob_req_oui()
9499 cmd->prob_req_oui = prob_req_oui; in ath11k_wmi_scan_prob_req_oui()
9511 struct wmi_wow_add_del_event_cmd *cmd; in ath11k_wmi_wow_add_wakeup_event() local
9515 len = sizeof(*cmd); in ath11k_wmi_wow_add_wakeup_event()
9520 cmd = (struct wmi_wow_add_del_event_cmd *)skb->data; in ath11k_wmi_wow_add_wakeup_event()
9521 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_WOW_ADD_DEL_EVT_CMD) | in ath11k_wmi_wow_add_wakeup_event()
9522 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_wow_add_wakeup_event()
9524 cmd->vdev_id = vdev_id; in ath11k_wmi_wow_add_wakeup_event()
9525 cmd->is_add = enable; in ath11k_wmi_wow_add_wakeup_event()
9526 cmd->event_bitmap = (1 << event); in ath11k_wmi_wow_add_wakeup_event()
9538 struct wmi_wow_add_pattern_cmd *cmd; in ath11k_wmi_wow_add_pattern() local
9545 len = sizeof(*cmd) + in ath11k_wmi_wow_add_pattern()
9558 /* cmd */ in ath11k_wmi_wow_add_pattern()
9560 cmd = (struct wmi_wow_add_pattern_cmd *)ptr; in ath11k_wmi_wow_add_pattern()
9561 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_wow_add_pattern()
9563 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_wow_add_pattern()
9565 cmd->vdev_id = vdev_id; in ath11k_wmi_wow_add_pattern()
9566 cmd->pattern_id = pattern_id; in ath11k_wmi_wow_add_pattern()
9567 cmd->pattern_type = WOW_BITMAP_PATTERN; in ath11k_wmi_wow_add_pattern()
9569 ptr += sizeof(*cmd); in ath11k_wmi_wow_add_pattern()
9641 struct wmi_wow_del_pattern_cmd *cmd; in ath11k_wmi_wow_del_pattern() local
9645 len = sizeof(*cmd); in ath11k_wmi_wow_del_pattern()
9650 cmd = (struct wmi_wow_del_pattern_cmd *)skb->data; in ath11k_wmi_wow_del_pattern()
9651 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_wow_del_pattern()
9653 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_wow_del_pattern()
9655 cmd->vdev_id = vdev_id; in ath11k_wmi_wow_del_pattern()
9656 cmd->pattern_id = pattern_id; in ath11k_wmi_wow_del_pattern()
9657 cmd->pattern_type = WOW_BITMAP_PATTERN; in ath11k_wmi_wow_del_pattern()
9671 struct wmi_wow_nlo_config_cmd *cmd; in ath11k_wmi_op_gen_config_pno_start() local
9679 len = sizeof(*cmd) + in ath11k_wmi_op_gen_config_pno_start()
9698 cmd = (struct wmi_wow_nlo_config_cmd *)ptr; in ath11k_wmi_op_gen_config_pno_start()
9699 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_NLO_CONFIG_CMD) | in ath11k_wmi_op_gen_config_pno_start()
9700 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_op_gen_config_pno_start()
9702 cmd->vdev_id = pno->vdev_id; in ath11k_wmi_op_gen_config_pno_start()
9703 cmd->flags = WMI_NLO_CONFIG_START | WMI_NLO_CONFIG_SSID_HIDE_EN; in ath11k_wmi_op_gen_config_pno_start()
9706 cmd->active_dwell_time = pno->active_max_time; in ath11k_wmi_op_gen_config_pno_start()
9707 cmd->passive_dwell_time = pno->passive_max_time; in ath11k_wmi_op_gen_config_pno_start()
9710 cmd->flags |= WMI_NLO_CONFIG_SCAN_PASSIVE; in ath11k_wmi_op_gen_config_pno_start()
9712 cmd->fast_scan_period = pno->fast_scan_period; in ath11k_wmi_op_gen_config_pno_start()
9713 cmd->slow_scan_period = pno->slow_scan_period; in ath11k_wmi_op_gen_config_pno_start()
9714 cmd->fast_scan_max_cycles = pno->fast_scan_max_cycles; in ath11k_wmi_op_gen_config_pno_start()
9715 cmd->delay_start_time = pno->delay_start_time; in ath11k_wmi_op_gen_config_pno_start()
9718 cmd->flags |= WMI_NLO_CONFIG_SPOOFED_MAC_IN_PROBE_REQ | in ath11k_wmi_op_gen_config_pno_start()
9720 ether_addr_copy(cmd->mac_addr.addr, pno->mac_addr); in ath11k_wmi_op_gen_config_pno_start()
9721 ether_addr_copy(cmd->mac_mask.addr, pno->mac_addr_mask); in ath11k_wmi_op_gen_config_pno_start()
9722 ath11k_ce_byte_swap(cmd->mac_addr.addr, 8); in ath11k_wmi_op_gen_config_pno_start()
9723 ath11k_ce_byte_swap(cmd->mac_mask.addr, 8); in ath11k_wmi_op_gen_config_pno_start()
9726 ptr += sizeof(*cmd); in ath11k_wmi_op_gen_config_pno_start()
9729 cmd->no_of_ssids = pno->uc_networks_count; in ath11k_wmi_op_gen_config_pno_start()
9737 for (i = 0; i < cmd->no_of_ssids; i++) { in ath11k_wmi_op_gen_config_pno_start()
9763 cmd->num_of_channels = pno->a_networks[0].channel_count; in ath11k_wmi_op_gen_config_pno_start()
9769 for (i = 0; i < cmd->num_of_channels; i++) in ath11k_wmi_op_gen_config_pno_start()
9781 struct wmi_wow_nlo_config_cmd *cmd; in ath11k_wmi_op_gen_config_pno_stop() local
9785 len = sizeof(*cmd); in ath11k_wmi_op_gen_config_pno_stop()
9790 cmd = (struct wmi_wow_nlo_config_cmd *)skb->data; in ath11k_wmi_op_gen_config_pno_stop()
9791 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_NLO_CONFIG_CMD) | in ath11k_wmi_op_gen_config_pno_stop()
9794 cmd->vdev_id = vdev_id; in ath11k_wmi_op_gen_config_pno_stop()
9795 cmd->flags = WMI_NLO_CONFIG_STOP; in ath11k_wmi_op_gen_config_pno_stop()
9927 struct wmi_set_arp_ns_offload_cmd *cmd; in ath11k_wmi_arp_ns_offload() local
9937 len = sizeof(*cmd) + in ath11k_wmi_arp_ns_offload()
9954 cmd = (struct wmi_set_arp_ns_offload_cmd *)buf_ptr; in ath11k_wmi_arp_ns_offload()
9955 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_arp_ns_offload()
9957 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_arp_ns_offload()
9959 cmd->flags = 0; in ath11k_wmi_arp_ns_offload()
9960 cmd->vdev_id = arvif->vdev_id; in ath11k_wmi_arp_ns_offload()
9961 cmd->num_ns_ext_tuples = ns_ext_tuples; in ath11k_wmi_arp_ns_offload()
9963 buf_ptr += sizeof(*cmd); in ath11k_wmi_arp_ns_offload()
9977 struct wmi_gtk_rekey_offload_cmd *cmd; in ath11k_wmi_gtk_rekey_offload() local
9983 len = sizeof(*cmd); in ath11k_wmi_gtk_rekey_offload()
9988 cmd = (struct wmi_gtk_rekey_offload_cmd *)skb->data; in ath11k_wmi_gtk_rekey_offload()
9989 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_GTK_OFFLOAD_CMD) | in ath11k_wmi_gtk_rekey_offload()
9990 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_gtk_rekey_offload()
9992 cmd->vdev_id = arvif->vdev_id; in ath11k_wmi_gtk_rekey_offload()
9995 cmd->flags = GTK_OFFLOAD_ENABLE_OPCODE; in ath11k_wmi_gtk_rekey_offload()
9997 /* the length in rekey_data and cmd is equal */ in ath11k_wmi_gtk_rekey_offload()
9998 memcpy(cmd->kck, rekey_data->kck, sizeof(cmd->kck)); in ath11k_wmi_gtk_rekey_offload()
9999 ath11k_ce_byte_swap(cmd->kck, GTK_OFFLOAD_KEK_BYTES); in ath11k_wmi_gtk_rekey_offload()
10000 memcpy(cmd->kek, rekey_data->kek, sizeof(cmd->kek)); in ath11k_wmi_gtk_rekey_offload()
10001 ath11k_ce_byte_swap(cmd->kek, GTK_OFFLOAD_KEK_BYTES); in ath11k_wmi_gtk_rekey_offload()
10004 memcpy(cmd->replay_ctr, &replay_ctr, in ath11k_wmi_gtk_rekey_offload()
10006 ath11k_ce_byte_swap(cmd->replay_ctr, GTK_REPLAY_COUNTER_BYTES); in ath11k_wmi_gtk_rekey_offload()
10008 cmd->flags = GTK_OFFLOAD_DISABLE_OPCODE; in ath11k_wmi_gtk_rekey_offload()
10019 struct wmi_gtk_rekey_offload_cmd *cmd; in ath11k_wmi_gtk_rekey_getinfo() local
10023 len = sizeof(*cmd); in ath11k_wmi_gtk_rekey_getinfo()
10028 cmd = (struct wmi_gtk_rekey_offload_cmd *)skb->data; in ath11k_wmi_gtk_rekey_getinfo()
10029 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_GTK_OFFLOAD_CMD) | in ath11k_wmi_gtk_rekey_getinfo()
10030 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_gtk_rekey_getinfo()
10032 cmd->vdev_id = arvif->vdev_id; in ath11k_wmi_gtk_rekey_getinfo()
10033 cmd->flags = GTK_OFFLOAD_REQUEST_STATUS_OPCODE; in ath11k_wmi_gtk_rekey_getinfo()
10042 struct wmi_pdev_set_sar_table_cmd *cmd; in ath11k_wmi_pdev_set_bios_sar_table_param() local
10050 len = sizeof(*cmd) + in ath11k_wmi_pdev_set_bios_sar_table_param()
10058 cmd = (struct wmi_pdev_set_sar_table_cmd *)skb->data; in ath11k_wmi_pdev_set_bios_sar_table_param()
10059 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_SET_BIOS_SAR_TABLE_CMD) | in ath11k_wmi_pdev_set_bios_sar_table_param()
10060 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_set_bios_sar_table_param()
10061 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_pdev_set_bios_sar_table_param()
10062 cmd->sar_len = BIOS_SAR_TABLE_LEN; in ath11k_wmi_pdev_set_bios_sar_table_param()
10063 cmd->rsvd_len = BIOS_SAR_RSVD1_LEN; in ath11k_wmi_pdev_set_bios_sar_table_param()
10065 buf_ptr = skb->data + sizeof(*cmd); in ath11k_wmi_pdev_set_bios_sar_table_param()
10083 struct wmi_pdev_set_geo_table_cmd *cmd; in ath11k_wmi_pdev_set_bios_geo_table_param() local
10090 len = sizeof(*cmd) + TLV_HDR_SIZE + rsvd_len_aligned; in ath11k_wmi_pdev_set_bios_geo_table_param()
10096 cmd = (struct wmi_pdev_set_geo_table_cmd *)skb->data; in ath11k_wmi_pdev_set_bios_geo_table_param()
10097 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, WMI_TAG_PDEV_SET_BIOS_GEO_TABLE_CMD) | in ath11k_wmi_pdev_set_bios_geo_table_param()
10098 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_pdev_set_bios_geo_table_param()
10099 cmd->pdev_id = ar->pdev->pdev_id; in ath11k_wmi_pdev_set_bios_geo_table_param()
10100 cmd->rsvd_len = BIOS_SAR_RSVD2_LEN; in ath11k_wmi_pdev_set_bios_geo_table_param()
10102 buf_ptr = skb->data + sizeof(*cmd); in ath11k_wmi_pdev_set_bios_geo_table_param()
10114 struct wmi_sta_keepalive_cmd *cmd; in ath11k_wmi_sta_keepalive() local
10119 len = sizeof(*cmd) + sizeof(*arp); in ath11k_wmi_sta_keepalive()
10124 cmd = (struct wmi_sta_keepalive_cmd *)skb->data; in ath11k_wmi_sta_keepalive()
10125 cmd->tlv_header = FIELD_PREP(WMI_TLV_TAG, in ath11k_wmi_sta_keepalive()
10127 FIELD_PREP(WMI_TLV_LEN, sizeof(*cmd) - TLV_HDR_SIZE); in ath11k_wmi_sta_keepalive()
10128 cmd->vdev_id = arg->vdev_id; in ath11k_wmi_sta_keepalive()
10129 cmd->enabled = arg->enabled; in ath11k_wmi_sta_keepalive()
10130 cmd->interval = arg->interval; in ath11k_wmi_sta_keepalive()
10131 cmd->method = arg->method; in ath11k_wmi_sta_keepalive()
10133 arp = (struct wmi_sta_keepalive_arp_resp *)(cmd + 1); in ath11k_wmi_sta_keepalive()