diff --git a/dp/inc/cdp_txrx_host_stats.h b/dp/inc/cdp_txrx_host_stats.h index 558c8e9659..cc863f5c26 100644 --- a/dp/inc/cdp_txrx_host_stats.h +++ b/dp/inc/cdp_txrx_host_stats.h @@ -982,7 +982,7 @@ cdp_get_pdev_tid_stats(ol_txrx_soc_handle soc, uint8_t pdev_id, tid_stats); } -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT /** * cdp_get_pdev_telemetry_stats() - function to get pdev telemetry stats * @soc: soc handle diff --git a/dp/inc/cdp_txrx_mon.h b/dp/inc/cdp_txrx_mon.h index 58ccec4f52..f8415de6a2 100644 --- a/dp/inc/cdp_txrx_mon.h +++ b/dp/inc/cdp_txrx_mon.h @@ -275,7 +275,7 @@ cdp_set_params_rssi_dbm_conversion(ol_txrx_soc_handle soc, } #endif -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT /* * cdp_update_pdev_mon_telemetry_airtime_stats() - update telemetry airtime * stats in monitor pdev diff --git a/dp/inc/cdp_txrx_ops.h b/dp/inc/cdp_txrx_ops.h index 2c178c242d..0247321c10 100644 --- a/dp/inc/cdp_txrx_ops.h +++ b/dp/inc/cdp_txrx_ops.h @@ -1068,7 +1068,7 @@ struct cdp_mon_ops { (struct cdp_soc_t *soc, struct cdp_rssi_db2dbm_param_dp *params); -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT QDF_STATUS (*txrx_update_pdev_mon_telemetry_airtime_stats) (struct cdp_soc_t *soc, uint8_t pdev_id); @@ -1280,7 +1280,7 @@ struct cdp_host_stats_ops { QDF_STATUS (*txrx_get_pdev_tid_stats)(struct cdp_soc_t *soc, uint8_t pdev_id, struct cdp_tid_stats_intf *tid_stats); -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT QDF_STATUS (*txrx_pdev_telemetry_stats)( struct cdp_soc_t *soc, diff --git a/dp/inc/cdp_txrx_stats_struct.h b/dp/inc/cdp_txrx_stats_struct.h index b05b8f5581..fd03ea79f9 100644 --- a/dp/inc/cdp_txrx_stats_struct.h +++ b/dp/inc/cdp_txrx_stats_struct.h @@ -2956,7 +2956,7 @@ struct cdp_soc_stats { } mec; }; -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT /** * struct cdp_pdev_telemetry_stats- Structure to hold pdev telemetry stats * @tx_mpdu_failed: Tx mpdu failed @@ -3252,7 +3252,7 @@ struct cdp_pdev_stats { } rx_refill_buff_pool; uint32_t peer_unauth_rx_pkt_drop; -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT struct cdp_pdev_telemetry_stats telemetry_stats; struct cdp_pdev_deter_stats deter_stats; #endif diff --git a/dp/wifi3.0/dp_internal.h b/dp/wifi3.0/dp_internal.h index 581478e395..9963b615b3 100644 --- a/dp/wifi3.0/dp_internal.h +++ b/dp/wifi3.0/dp_internal.h @@ -973,7 +973,7 @@ dp_mon_rx_enable_fpmo(struct dp_soc *soc, uint32_t *msg_word, { } -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT static inline void dp_monitor_peer_telemetry_stats(struct dp_peer *peer, struct cdp_peer_telemetry_stats *stats) @@ -985,7 +985,7 @@ void dp_monitor_peer_deter_stats(struct dp_peer *peer, struct cdp_peer_telemetry_stats *stats) { } -#endif /* WLAN_TELEMETRY_STATS_SUPPORT */ +#endif /* WLAN_CONFIG_TELEMETRY_AGENT */ #endif /* !WIFI_MONITOR_SUPPORT */ /** @@ -4802,7 +4802,7 @@ dp_get_rx_hash_key_bytes(struct cdp_lro_hash_config *lro_hash) LRO_IPV6_SEED_ARR_SZ)); } -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT /** * dp_get_pdev_telemetry_stats- API to get pdev telemetry stats * @soc_hdl: soc handle @@ -4870,7 +4870,7 @@ dp_get_pdev_deter_stats(struct cdp_soc_t *soc_hdl, uint8_t pdev_id, QDF_STATUS dp_update_pdev_chan_util_stats(struct cdp_soc_t *soc_hdl, uint8_t pdev_id, struct cdp_pdev_chan_util_stats *ch_util); -#endif /* WLAN_TELEMETRY_STATS_SUPPORT */ +#endif /* WLAN_CONFIG_TELEMETRY_AGENT */ #ifdef CONNECTIVITY_PKTLOG /** diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index a37faa946a..01aef70619 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -14380,7 +14380,7 @@ static struct cdp_host_stats_ops dp_ops_host_stats = { .is_tx_delay_stats_enabled = dp_check_vdev_tx_delay_stats_enabled, #endif .txrx_get_pdev_tid_stats = dp_pdev_get_tid_stats, -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT .txrx_pdev_telemetry_stats = dp_get_pdev_telemetry_stats, .txrx_peer_telemetry_stats = dp_get_peer_telemetry_stats, .txrx_pdev_deter_stats = dp_get_pdev_deter_stats, diff --git a/dp/wifi3.0/dp_stats.c b/dp/wifi3.0/dp_stats.c index 52767c5449..f2923519d1 100644 --- a/dp/wifi3.0/dp_stats.c +++ b/dp/wifi3.0/dp_stats.c @@ -9341,7 +9341,7 @@ dp_pdev_get_tx_capture_stats(struct cdp_soc_t *soc_hdl, uint8_t pdev_id, } #endif /* WLAN_TX_PKT_CAPTURE_ENH */ -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT QDF_STATUS dp_get_pdev_telemetry_stats(struct cdp_soc_t *soc_hdl, uint8_t pdev_id, struct cdp_pdev_telemetry_stats *stats) diff --git a/dp/wifi3.0/monitor/2.0/dp_mon_2.0.c b/dp/wifi3.0/monitor/2.0/dp_mon_2.0.c index 96dd55b9d3..d9f3875c57 100644 --- a/dp/wifi3.0/monitor/2.0/dp_mon_2.0.c +++ b/dp/wifi3.0/monitor/2.0/dp_mon_2.0.c @@ -1679,7 +1679,7 @@ struct cdp_mon_ops dp_ops_mon_2_0 = { #endif .txrx_set_mon_pdev_params_rssi_dbm_conv = dp_mon_pdev_params_rssi_dbm_conv, -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT .txrx_update_pdev_mon_telemetry_airtime_stats = dp_pdev_update_telemetry_airtime_stats, #endif diff --git a/dp/wifi3.0/monitor/dp_mon.c b/dp/wifi3.0/monitor/dp_mon.c index 028a281f3a..c32c03a557 100644 --- a/dp/wifi3.0/monitor/dp_mon.c +++ b/dp/wifi3.0/monitor/dp_mon.c @@ -2285,7 +2285,7 @@ QDF_STATUS dp_rx_populate_cbf_hdr(struct dp_soc *soc, } #ifdef ATH_SUPPORT_EXT_STAT -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT /** * dp_pdev_clear_link_airtime_stats() - clear airtime stats for given pdev * @pdev: DP PDEV handle @@ -2991,7 +2991,7 @@ static uint32_t dp_mon_get_ru_width_from_ru_size(uint16_t ru_size) } #endif -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT /** * dp_pdev_telemetry_stats_update() - Update pdev telemetry stats * @pdev: Datapath pdev handle @@ -4746,7 +4746,7 @@ static void dp_process_ppdu_tag(struct dp_pdev *pdev, } } -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT static inline void dp_ppdu_desc_user_airtime_consumption_update( struct dp_peer *peer, @@ -4771,7 +4771,7 @@ void dp_ppdu_desc_user_airtime_consumption_update( { } #endif -#if defined(WLAN_ATF_ENABLE) || defined(WLAN_TELEMETRY_STATS_SUPPORT) +#if defined(WLAN_ATF_ENABLE) || defined(WLAN_CONFIG_TELEMETRY_AGENT) static void dp_ppdu_desc_user_phy_tx_time_update(struct dp_pdev *pdev, struct dp_peer *peer, diff --git a/dp/wifi3.0/monitor/dp_mon.h b/dp/wifi3.0/monitor/dp_mon.h index 5a9567462b..5cfa93206d 100644 --- a/dp/wifi3.0/monitor/dp_mon.h +++ b/dp/wifi3.0/monitor/dp_mon.h @@ -898,7 +898,7 @@ struct dp_mon_soc { struct dp_mon_soc_stats stats; }; -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT struct dp_mon_peer_airtime_consumption { uint32_t consumption; uint16_t avg_consumption_per_sec; @@ -938,7 +938,7 @@ struct dp_mon_peer_stats { #ifdef QCA_ENHANCED_STATS_SUPPORT dp_mon_peer_tx_stats tx; dp_mon_peer_rx_stats rx; -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT struct dp_mon_peer_airtime_stats airtime_stats; struct dp_mon_peer_deterministic deter_stats; #endif @@ -4483,7 +4483,7 @@ dp_lite_mon_get_legacy_feature_enabled(struct cdp_soc_t *soc, } #endif -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT static inline void dp_monitor_peer_telemetry_stats(struct dp_peer *peer, struct cdp_peer_telemetry_stats *stats) @@ -4595,7 +4595,7 @@ dp_mon_rx_print_advanced_stats(struct dp_soc *soc, return monitor_ops->mon_rx_print_advanced_stats(soc, pdev); } -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT /* * dp_update_pdev_mon_telemetry_airtime_stats() - update telemetry airtime * stats in monitor pdev diff --git a/dp/wifi3.0/monitor/dp_rx_mon.c b/dp/wifi3.0/monitor/dp_rx_mon.c index 55aa0ac16f..6f34f33e56 100644 --- a/dp/wifi3.0/monitor/dp_rx_mon.c +++ b/dp/wifi3.0/monitor/dp_rx_mon.c @@ -808,7 +808,7 @@ static inline uint8_t dp_get_bw_offset_frm_bw(struct dp_soc *soc, } #endif -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT static void dp_ppdu_desc_user_rx_time_update(struct dp_pdev *pdev, struct dp_peer *peer, diff --git a/target_if/cp_stats/src/target_if_cp_stats.c b/target_if/cp_stats/src/target_if_cp_stats.c index 28ac88e619..66d4ba73e4 100644 --- a/target_if/cp_stats/src/target_if_cp_stats.c +++ b/target_if/cp_stats/src/target_if_cp_stats.c @@ -549,7 +549,7 @@ static void target_if_register_infra_cp_stats_txops( } #endif /* WLAN_SUPPORT_INFRA_CTRL_PATH_STATS */ -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT /** * target_if_telemetry_cp_stats_req() - API to send stats request to wmi * @pdev: pointer to pdev object diff --git a/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.c b/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.c index b1c1e7fd5b..795ea1f143 100644 --- a/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.c +++ b/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.c @@ -466,7 +466,7 @@ wlan_cp_stats_send_infra_cp_req(struct wlan_objmgr_psoc *psoc, } #endif /* WLAN_SUPPORT_INFRA_CTRL_PATH_STATS */ -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT QDF_STATUS wlan_cp_stats_send_telemetry_cp_req(struct wlan_objmgr_pdev *pdev, struct infra_cp_stats_cmd_info *req) diff --git a/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.h b/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.h index bbcc0ecb13..a1246cd2a2 100644 --- a/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.h +++ b/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.h @@ -167,7 +167,7 @@ wlan_cp_stats_send_infra_cp_req(struct wlan_objmgr_psoc *psoc, struct infra_cp_stats_cmd_info *req); #endif /* WLAN_SUPPORT_INFRA_CTRL_PATH_STATS */ -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT /** * wlan_cp_stats_send_telemetry_cp_req() - API to send telemetry cp stats * request to lmac diff --git a/umac/cp_stats/dispatcher/inc/wlan_cp_stats_public_structs.h b/umac/cp_stats/dispatcher/inc/wlan_cp_stats_public_structs.h index 10f32a66ad..f41b39b6b9 100644 --- a/umac/cp_stats/dispatcher/inc/wlan_cp_stats_public_structs.h +++ b/umac/cp_stats/dispatcher/inc/wlan_cp_stats_public_structs.h @@ -125,7 +125,7 @@ struct bmiss_infra_cp_stats_event { }; #endif /* CONFIG_WLAN_BMISS */ -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT /** * struct ctrl_path_pmlo_telemetry_stats_struct - pmlo telemetry * stats struct @@ -200,7 +200,7 @@ struct infra_cp_stats_event { #ifdef CONFIG_WLAN_BMISS struct bmiss_infra_cp_stats_event *bmiss_infra_cp_stats; #endif -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT struct ctrl_path_pmlo_telemetry_stats_struct *telemetry_stats; #endif /* Extend with other required infra_cp_stats structs */ diff --git a/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ucfg_api.h b/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ucfg_api.h index 576c76cbe7..7ff0bf5215 100644 --- a/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ucfg_api.h +++ b/umac/cp_stats/dispatcher/inc/wlan_cp_stats_ucfg_api.h @@ -56,7 +56,7 @@ QDF_STATUS ucfg_send_infra_cp_stats_request(struct wlan_objmgr_vdev *vdev, struct infra_cp_stats_cmd_info *req); -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT /** * ucfg_send_telemetry_cp_stats_request() - send a telemetry cp stats command * @pdev: pointer to pdev object diff --git a/umac/cp_stats/dispatcher/src/wlan_cp_stats_ucfg_api.c b/umac/cp_stats/dispatcher/src/wlan_cp_stats_ucfg_api.c index 76aaa909f0..20c76e3854 100644 --- a/umac/cp_stats/dispatcher/src/wlan_cp_stats_ucfg_api.c +++ b/umac/cp_stats/dispatcher/src/wlan_cp_stats_ucfg_api.c @@ -43,7 +43,7 @@ ucfg_send_infra_cp_stats_request(struct wlan_objmgr_vdev *vdev, } #endif /* WLAN_SUPPORT_INFRA_CTRL_PATH_STATS */ -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT QDF_STATUS ucfg_send_telemetry_cp_stats_request(struct wlan_objmgr_pdev *pdev, struct infra_cp_stats_cmd_info *req) diff --git a/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h b/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h index 3f71cc31d6..6cfaf323d3 100644 --- a/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h +++ b/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h @@ -180,7 +180,7 @@ struct wlan_lmac_if_cp_stats_tx_ops { struct wlan_objmgr_psoc *psoc, stats_req_info *req); #endif -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT QDF_STATUS (*send_req_telemetry_cp_stats)( struct wlan_objmgr_pdev *pdev, struct infra_cp_stats_cmd_info *req); diff --git a/wmi/inc/wmi_unified_cp_stats_api.h b/wmi/inc/wmi_unified_cp_stats_api.h index e118dd8433..aecabc6685 100644 --- a/wmi/inc/wmi_unified_cp_stats_api.h +++ b/wmi/inc/wmi_unified_cp_stats_api.h @@ -27,7 +27,7 @@ #include #if defined(WLAN_SUPPORT_INFRA_CTRL_PATH_STATS) || \ - defined(WLAN_TELEMETRY_STATS_SUPPORT) + defined(WLAN_CONFIG_TELEMETRY_AGENT) /** * wmi_unified_infra_cp_stats_request_send() - WMI request infra_cp_stats * function diff --git a/wmi/inc/wmi_unified_priv.h b/wmi/inc/wmi_unified_priv.h index e28c0d6b1e..87bc4edf27 100644 --- a/wmi/inc/wmi_unified_priv.h +++ b/wmi/inc/wmi_unified_priv.h @@ -2953,7 +2953,7 @@ QDF_STATUS (*extract_halphy_stats_event_count)(wmi_unified_t wmi_handle, void *evt_buf, uint32_t *event_count_flag); #if defined(WLAN_SUPPORT_INFRA_CTRL_PATH_STATS) || \ - defined(WLAN_TELEMETRY_STATS_SUPPORT) + defined(WLAN_CONFIG_TELEMETRY_AGENT) QDF_STATUS (*extract_infra_cp_stats)(wmi_unified_t wmi_handle, void *evt_buf, uint32_t evt_buf_len, diff --git a/wmi/src/wmi_unified_cp_stats_api.c b/wmi/src/wmi_unified_cp_stats_api.c index 275f440d0c..095f950ce7 100644 --- a/wmi/src/wmi_unified_cp_stats_api.c +++ b/wmi/src/wmi_unified_cp_stats_api.c @@ -23,7 +23,7 @@ #include "wmi_unified_cp_stats_api.h" #if defined(WLAN_SUPPORT_INFRA_CTRL_PATH_STATS) || \ - defined(WLAN_TELEMETRY_STATS_SUPPORT) + defined(WLAN_CONFIG_TELEMETRY_AGENT) QDF_STATUS wmi_unified_infra_cp_stats_request_send(wmi_unified_t wmi_handle, struct infra_cp_stats_cmd_info *param) diff --git a/wmi/src/wmi_unified_cp_stats_tlv.c b/wmi/src/wmi_unified_cp_stats_tlv.c index f8e9fd7620..51dff7c7f5 100644 --- a/wmi/src/wmi_unified_cp_stats_tlv.c +++ b/wmi/src/wmi_unified_cp_stats_tlv.c @@ -23,7 +23,7 @@ #include #if defined(WLAN_SUPPORT_INFRA_CTRL_PATH_STATS) || \ - defined(WLAN_TELEMETRY_STATS_SUPPORT) + defined(WLAN_CONFIG_TELEMETRY_AGENT) /** * get_infra_cp_stats_id() - convert from to wmi_ctrl_path_stats_id * @type: type from enum infra_cp_stats_id @@ -230,7 +230,7 @@ void wmi_bmiss_extract_stats_struct(void *tag_buf, #endif/* CONFIG_WLAN_BMISS */ -#ifdef WLAN_TELEMETRY_STATS_SUPPORT +#ifdef WLAN_CONFIG_TELEMETRY_AGENT static void wmi_extract_ctrl_path_pmlo_stats_tlv(wmi_unified_t wmi_handle, void *tag_buf, struct ctrl_path_pmlo_telemetry_stats_struct *param) @@ -1147,7 +1147,7 @@ extract_pmf_bcn_protect_stats_tlv(wmi_unified_t wmi_handle, void *evt_buf, } #if defined(WLAN_SUPPORT_INFRA_CTRL_PATH_STATS) || \ - defined(WLAN_TELEMETRY_STATS_SUPPORT) + defined(WLAN_CONFIG_TELEMETRY_AGENT) static void wmi_infra_cp_stats_ops_attach_tlv(struct wmi_ops *ops) { ops->send_infra_cp_stats_request_cmd = diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 1aae39c1f6..b50ed03bc7 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -20908,7 +20908,7 @@ struct wmi_ops tlv_ops = { #ifdef FEATURE_MEC_OFFLOAD .send_pdev_set_mec_timer_cmd = send_pdev_set_mec_timer_cmd_tlv, #endif -#if defined(WLAN_SUPPORT_INFRA_CTRL_PATH_STATS) || defined(WLAN_TELEMETRY_STATS_SUPPORT) +#if defined(WLAN_SUPPORT_INFRA_CTRL_PATH_STATS) || defined(WLAN_CONFIG_TELEMETRY_AGENT) .extract_infra_cp_stats = extract_infra_cp_stats_tlv, #endif /* WLAN_SUPPORT_INFRA_CTRL_PATH_STATS */ .extract_cp_stats_more_pending =