diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 7aae99460125..d10529c54919 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -109,9 +109,7 @@ #include #endif -#ifdef WLAN_FEATURE_PKT_CAPTURE #include "wlan_pkt_capture_ucfg_api.h" -#endif #define WMA_LOG_COMPLETION_TIMER 3000 /* 3 seconds */ #define WMI_TLV_HEADROOM 128 @@ -6732,6 +6730,13 @@ int wma_rx_service_ready_ext_event(void *handle, uint8_t *event, wma_update_num_peers_tids(wma_handle, wlan_res_cfg); } + if (ucfg_pkt_capture_get_mode(wma_handle->psoc) && + wmi_service_enabled(wmi_handle, + wmi_service_packet_capture_support)) + wlan_res_cfg->pktcapture_support = true; + else + wlan_res_cfg->pktcapture_support = false; + WMA_LOGD("%s: num_vdevs: %u", __func__, wlan_res_cfg->num_vdevs); wma_init_dbr_params(wma_handle);