From a31a11a628ece9136abb9732b89c751106caa8a1 Mon Sep 17 00:00:00 2001 From: Alok Singh Date: Thu, 20 Sep 2018 16:07:28 +0530 Subject: [PATCH] qcacmn: Add ctl failsafe event CTL failsafe event handler adds the capability to inform host when failsafe algorithm invoked. CRs-Fixed: 2333137 Change-Id: I91298c9be1f0f8291c927dbd3ac4a2a9f1b9f31b --- wmi_unified_api.h | 15 +++++++++++++++ wmi_unified_param.h | 9 +++++++++ wmi_unified_priv.h | 6 ++++++ 3 files changed, 30 insertions(+) diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 6ee763c35e..7a4c1fe99e 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -1548,6 +1548,21 @@ QDF_STATUS wmi_extract_smartlog_ev void wmi_process_fw_event_worker_thread_ctx(struct wmi_unified *wmi_handle, HTC_PACKET * htc_packet); +/** + * wmi_extract_ctl_failsafe_check_ev_param() - extract ctl failsafe + * status from event + * @wmi_handle: wmi handle + * @param evt_buf: pointer to event buffer + * @param ev: Pointer to hold ctl status + * + * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure + */ +QDF_STATUS +wmi_extract_ctl_failsafe_check_ev_param(void *wmi_hdl, + void *evt_buf, + struct wmi_host_pdev_ctl_failsafe_event + *param); + #ifdef OBSS_PD /** * wmi_extract_smartlog_ev() - extract smartlog event info from event diff --git a/wmi_unified_param.h b/wmi_unified_param.h index 99bbfd1edd..d956d8598b 100644 --- a/wmi_unified_param.h +++ b/wmi_unified_param.h @@ -4715,6 +4715,7 @@ typedef enum { #endif /* OL_ATH_SMART_LOGGING */ wmi_wlan_sar2_result_event_id, wmi_esp_estimate_event_id, + wmi_pdev_ctl_failsafe_check_event_id, wmi_events_max, } wmi_conv_event_id; @@ -6609,6 +6610,14 @@ typedef struct { uint32_t reserved; } wmi_host_pdev_bss_chan_info_event; +/** + * struct wmi_host_pdev_ctl_failsafe_event + * @ctl_failsafe_status: Indicate if Failsafe value is imposed on CTL + */ +struct wmi_host_pdev_ctl_failsafe_event { + uint32_t ctl_failsafe_status; +}; + #define WMI_HOST_INST_STATS_INVALID_RSSI 0 /** * struct wmi_host_inst_stats_resp diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index a90e5ef2af..1be405fa70 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1817,6 +1817,12 @@ QDF_STATUS (*send_obss_spatial_reuse_set)(wmi_unified_t wmi_handle, struct wmi_host_obss_spatial_reuse_set_param *obss_spatial_reuse_param); #endif + +QDF_STATUS +(*extract_ctl_failsafe_check_ev_param)( + wmi_unified_t wmi_handle, + void *evt_buf, + struct wmi_host_pdev_ctl_failsafe_event *param); }; /* Forward declartion for psoc*/