diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 1c8c307ff6ea..0b5b13410ff7 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -4553,6 +4553,7 @@ typedef enum { wmi_peer_tx_pn_response_event_id, wmi_roam_stats_event_id, wmi_oem_data_event_id, + wmi_mgmt_offload_data_event_id, wmi_events_max, } wmi_conv_event_id; @@ -5054,6 +5055,7 @@ typedef enum { wmi_service_ext2_msg, wmi_service_6ghz_support, wmi_service_bw_165mhz_support, + wmi_service_packet_capture_support, wmi_services_max, } wmi_conv_service_ids; #define WMI_SERVICE_UNAVAILABLE 0xFFFF @@ -5224,7 +5226,8 @@ typedef struct { mgmt_comp_evt_bundle_support:1, tx_msdu_new_partition_id_support:1, new_htt_msg_format:1, - peer_unmap_conf_support:1; + peer_unmap_conf_support:1, + pktcapture_support:1; uint32_t iphdr_pad_config; uint32_t qwrap_config:16, diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 2a1214e7a3e5..ae26432f4186 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -6723,6 +6723,9 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg, if (tgt_res_cfg->three_way_coex_config_legacy_en) WMI_RSRC_CFG_FLAG_THREE_WAY_COEX_CONFIG_LEGACY_SUPPORT_SET( resource_cfg->flag1, 1); + if (tgt_res_cfg->pktcapture_support) + WMI_RSRC_CFG_FLAG_PACKET_CAPTURE_SUPPORT_SET( + resource_cfg->flag1, 1); /* * Control padding using config param/ini of iphdr_pad_config @@ -13523,6 +13526,8 @@ static void populate_tlv_events_id(uint32_t *event_ids) WMI_PEER_TX_PN_RESPONSE_EVENTID; event_ids[wmi_roam_stats_event_id] = WMI_ROAM_STATS_EVENTID; event_ids[wmi_oem_data_event_id] = WMI_OEM_DATA_EVENTID; + event_ids[wmi_mgmt_offload_data_event_id] = + WMI_VDEV_MGMT_OFFLOAD_EVENTID; } /** @@ -13801,6 +13806,8 @@ static void populate_tlv_service(uint32_t *wmi_service) WMI_SERVICE_6GHZ_SUPPORT; wmi_service[wmi_service_bw_165mhz_support] = WMI_SERVICE_BW_165MHZ_SUPPORT; + wmi_service[wmi_service_packet_capture_support] = + WMI_SERVICE_PACKET_CAPTURE_SUPPORT; } /**