qcacmn: Add feature flag for Health Monitor Feature
Adding feature flag for Health Monitor so that it can be disabled for 16M and 256M profiles CRs-Fixed: 3277434 Change-Id: Ibbbe582acd15ebff7e189fcbaa36429ea519db37
This commit is contained in:

committed by
Madan Koyyalamudi

parent
5f09e5188b
commit
d276b0eda6
@@ -225,7 +225,9 @@ struct tgt_info {
|
|||||||
struct wlan_psoc_host_scan_radio_caps *scan_radio_caps;
|
struct wlan_psoc_host_scan_radio_caps *scan_radio_caps;
|
||||||
uint32_t device_mode;
|
uint32_t device_mode;
|
||||||
uint32_t sbs_lower_band_end_freq;
|
uint32_t sbs_lower_band_end_freq;
|
||||||
|
#ifdef HEALTH_MON_SUPPORT
|
||||||
struct wmi_health_mon_params health_mon_param;
|
struct wmi_health_mon_params health_mon_param;
|
||||||
|
#endif /* HEALTH_MON_SUPPORT */
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -960,6 +960,7 @@ exit:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HEALTH_MON_SUPPORT
|
||||||
static int init_deinit_health_mon_event_handler(ol_scn_t scn_handle,
|
static int init_deinit_health_mon_event_handler(ol_scn_t scn_handle,
|
||||||
uint8_t *event,
|
uint8_t *event,
|
||||||
uint32_t data_len)
|
uint32_t data_len)
|
||||||
@@ -995,6 +996,7 @@ static int init_deinit_health_mon_event_handler(ol_scn_t scn_handle,
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif /* HEALTH_MON_SUPPORT */
|
||||||
|
|
||||||
#if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
|
#if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
|
||||||
static void init_deinit_mlo_setup_done_event(struct wlan_objmgr_psoc *psoc)
|
static void init_deinit_mlo_setup_done_event(struct wlan_objmgr_psoc *psoc)
|
||||||
@@ -1159,12 +1161,13 @@ QDF_STATUS init_deinit_register_tgt_psoc_ev_handlers(
|
|||||||
WMI_RX_WORK_CTX);
|
WMI_RX_WORK_CTX);
|
||||||
retval = init_deinit_register_mlo_ev_handlers(wmi_handle);
|
retval = init_deinit_register_mlo_ev_handlers(wmi_handle);
|
||||||
|
|
||||||
|
#ifdef HEALTH_MON_SUPPORT
|
||||||
retval = wmi_unified_register_event_handler(
|
retval = wmi_unified_register_event_handler(
|
||||||
wmi_handle,
|
wmi_handle,
|
||||||
wmi_extract_health_mon_init_done_info_eventid,
|
wmi_extract_health_mon_init_done_info_eventid,
|
||||||
init_deinit_health_mon_event_handler,
|
init_deinit_health_mon_event_handler,
|
||||||
WMI_RX_WORK_CTX);
|
WMI_RX_WORK_CTX);
|
||||||
|
#endif /* HEALTH_MON_SUPPORT */
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
@@ -4977,6 +4977,7 @@ QDF_STATUS wmi_feature_set_cmd_send(
|
|||||||
struct target_feature_set *feature_set);
|
struct target_feature_set *feature_set);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HEALTH_MON_SUPPORT
|
||||||
/**
|
/**
|
||||||
* wmi_extract_health_mon_event - extract health monitor params
|
* wmi_extract_health_mon_event - extract health monitor params
|
||||||
* @wmi_handle: wmi handle
|
* @wmi_handle: wmi handle
|
||||||
@@ -4990,5 +4991,5 @@ QDF_STATUS wmi_extract_health_mon_event(
|
|||||||
wmi_unified_t wmi_handle,
|
wmi_unified_t wmi_handle,
|
||||||
void *ev,
|
void *ev,
|
||||||
struct wmi_health_mon_params *param);
|
struct wmi_health_mon_params *param);
|
||||||
|
#endif /* HEALTH_MON_SUPPORT */
|
||||||
#endif /* _WMI_UNIFIED_API_H_ */
|
#endif /* _WMI_UNIFIED_API_H_ */
|
||||||
|
@@ -5114,7 +5114,9 @@ typedef enum {
|
|||||||
#ifdef WLAN_FEATURE_COAP
|
#ifdef WLAN_FEATURE_COAP
|
||||||
wmi_wow_coap_buf_info_eventid,
|
wmi_wow_coap_buf_info_eventid,
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HEALTH_MON_SUPPORT
|
||||||
wmi_extract_health_mon_init_done_info_eventid,
|
wmi_extract_health_mon_init_done_info_eventid,
|
||||||
|
#endif /* HEALTH_MON_SUPPORT */
|
||||||
wmi_events_max,
|
wmi_events_max,
|
||||||
} wmi_conv_event_id;
|
} wmi_conv_event_id;
|
||||||
|
|
||||||
@@ -9144,6 +9146,7 @@ struct wmi_host_sw_cal_ver {
|
|||||||
uint32_t status;
|
uint32_t status;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef HEALTH_MON_SUPPORT
|
||||||
/**
|
/**
|
||||||
* struct wmi_health_mon_params - Health mon params
|
* struct wmi_health_mon_params - Health mon params
|
||||||
* @ring_buf_paddr_low: Ring buffer physical address LOW
|
* @ring_buf_paddr_low: Ring buffer physical address LOW
|
||||||
@@ -9157,5 +9160,6 @@ struct wmi_health_mon_params {
|
|||||||
uint32_t initial_upload_period_ms;
|
uint32_t initial_upload_period_ms;
|
||||||
uint32_t read_index;
|
uint32_t read_index;
|
||||||
};
|
};
|
||||||
|
#endif /* HEALTH_MON_SUPPORT */
|
||||||
|
|
||||||
#endif /* _WMI_UNIFIED_PARAM_H_ */
|
#endif /* _WMI_UNIFIED_PARAM_H_ */
|
||||||
|
@@ -3123,10 +3123,12 @@ QDF_STATUS
|
|||||||
QDF_STATUS (*extract_coap_buf_info)(wmi_unified_t wmi_handle, void *evt_buf,
|
QDF_STATUS (*extract_coap_buf_info)(wmi_unified_t wmi_handle, void *evt_buf,
|
||||||
struct coap_buf_info *info);
|
struct coap_buf_info *info);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HEALTH_MON_SUPPORT
|
||||||
QDF_STATUS
|
QDF_STATUS
|
||||||
(*extract_health_mon_init_done_info_event)(wmi_unified_t wmi_handle,
|
(*extract_health_mon_init_done_info_event)(wmi_unified_t wmi_handle,
|
||||||
void *evt_buf,
|
void *evt_buf,
|
||||||
struct wmi_health_mon_params *param);
|
struct wmi_health_mon_params *param);
|
||||||
|
#endif /* HEALTH_MON_SUPPORT */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Forward declartion for psoc*/
|
/* Forward declartion for psoc*/
|
||||||
|
@@ -1461,6 +1461,7 @@ QDF_STATUS wmi_unified_thermal_mitigation_param_cmd_send(
|
|||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HEALTH_MON_SUPPORT
|
||||||
QDF_STATUS wmi_extract_health_mon_event(
|
QDF_STATUS wmi_extract_health_mon_event(
|
||||||
wmi_unified_t wmi_handle,
|
wmi_unified_t wmi_handle,
|
||||||
void *ev,
|
void *ev,
|
||||||
@@ -1472,6 +1473,8 @@ QDF_STATUS wmi_extract_health_mon_event(
|
|||||||
|
|
||||||
return QDF_STATUS_E_FAILURE;
|
return QDF_STATUS_E_FAILURE;
|
||||||
}
|
}
|
||||||
|
#endif /* HEALTH_MON_SUPPORT */
|
||||||
|
|
||||||
QDF_STATUS
|
QDF_STATUS
|
||||||
wmi_unified_vdev_set_fwtest_param_cmd_send(wmi_unified_t wmi_handle,
|
wmi_unified_vdev_set_fwtest_param_cmd_send(wmi_unified_t wmi_handle,
|
||||||
struct set_fwtest_params *param)
|
struct set_fwtest_params *param)
|
||||||
|
@@ -19359,6 +19359,7 @@ extract_pktlog_decode_info_event_tlv(wmi_unified_t wmi_handle, void *evt_buf,
|
|||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HEALTH_MON_SUPPORT
|
||||||
/**
|
/**
|
||||||
* extract_health_mon_init_done_info_event_tlv() - Extract health monitor from
|
* extract_health_mon_init_done_info_event_tlv() - Extract health monitor from
|
||||||
* fw
|
* fw
|
||||||
@@ -19388,6 +19389,7 @@ extract_health_mon_init_done_info_event_tlv(wmi_unified_t wmi_handle,
|
|||||||
|
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
#endif /* HEALTH_MON_SUPPORT */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* extract_pdev_telemetry_stats_tlv - extract pdev telemetry stats
|
* extract_pdev_telemetry_stats_tlv - extract pdev telemetry stats
|
||||||
@@ -19889,8 +19891,10 @@ struct wmi_ops tlv_ops = {
|
|||||||
#ifdef FEATURE_SET
|
#ifdef FEATURE_SET
|
||||||
.feature_set_cmd_send = feature_set_cmd_send_tlv,
|
.feature_set_cmd_send = feature_set_cmd_send_tlv,
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HEALTH_MON_SUPPORT
|
||||||
.extract_health_mon_init_done_info_event =
|
.extract_health_mon_init_done_info_event =
|
||||||
extract_health_mon_init_done_info_event_tlv,
|
extract_health_mon_init_done_info_event_tlv,
|
||||||
|
#endif /* HEALTH_MON_SUPPORT */
|
||||||
.send_multiple_vdev_param_cmd = send_multiple_vdev_param_cmd_tlv,
|
.send_multiple_vdev_param_cmd = send_multiple_vdev_param_cmd_tlv,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -20382,8 +20386,10 @@ static void populate_tlv_events_id(uint32_t *event_ids)
|
|||||||
event_ids[wmi_wow_coap_buf_info_eventid] =
|
event_ids[wmi_wow_coap_buf_info_eventid] =
|
||||||
WMI_WOW_COAP_BUF_INFO_EVENTID;
|
WMI_WOW_COAP_BUF_INFO_EVENTID;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HEALTH_MON_SUPPORT
|
||||||
event_ids[wmi_extract_health_mon_init_done_info_eventid] =
|
event_ids[wmi_extract_health_mon_init_done_info_eventid] =
|
||||||
WMI_HEALTH_MON_INIT_DONE_EVENTID;
|
WMI_HEALTH_MON_INIT_DONE_EVENTID;
|
||||||
|
#endif /* HEALTH_MON_SUPPORT */
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WLAN_FEATURE_LINK_LAYER_STATS
|
#ifdef WLAN_FEATURE_LINK_LAYER_STATS
|
||||||
|
Reference in New Issue
Block a user