Kaynağa Gözat

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
Alok Singh 6 yıl önce
ebeveyn
işleme
a31a11a628
3 değiştirilmiş dosya ile 30 ekleme ve 0 silme
  1. 15 0
      wmi_unified_api.h
  2. 9 0
      wmi_unified_param.h
  3. 6 0
      wmi_unified_priv.h

+ 15 - 0
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

+ 9 - 0
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

+ 6 - 0
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*/