Browse Source

qcacmn: Featurize dbglog_host

Featurize parsing support for WLAN firmware logs in WLAN host driver

Change-Id: I94a75a0ab09f086209298bdd4870df78e9733a3f
CRs-Fixed: 2228370
Wen Gong 7 years ago
parent
commit
ca17401144
2 changed files with 6 additions and 0 deletions
  1. 2 0
      wmi_unified_api.c
  2. 4 0
      wmi_unified_tlv.c

+ 2 - 0
wmi_unified_api.c

@@ -634,6 +634,7 @@ QDF_STATUS wmi_crash_inject(void *wmi_hdl,
 	return QDF_STATUS_E_FAILURE;
 }
 
+#ifdef FEATURE_FW_LOG_PARSING
 /**
  *  wmi_unified_dbglog_cmd_send() - set debug log level
  *  @param wmi_handle      : handle to WMI.
@@ -654,6 +655,7 @@ wmi_unified_dbglog_cmd_send(void *wmi_hdl,
 	return QDF_STATUS_E_FAILURE;
 }
 qdf_export_symbol(wmi_unified_dbglog_cmd_send);
+#endif
 
 /**
  *  wmi_unified_vdev_set_param_send() - WMI vdev set parameter function

+ 4 - 0
wmi_unified_tlv.c

@@ -1574,6 +1574,7 @@ static QDF_STATUS send_crash_inject_cmd_tlv(wmi_unified_t wmi_handle,
 	return ret;
 }
 
+#ifdef FEATURE_FW_LOG_PARSING
 /**
  *  send_dbglog_cmd_tlv() - set debug log level
  *  @param wmi_handle      : handle to WMI.
@@ -1635,6 +1636,7 @@ send_dbglog_cmd_tlv(wmi_unified_t wmi_handle,
 
 	return status;
 }
+#endif
 
 #ifdef CONFIG_MCL
 static inline uint32_t convert_host_vdev_param_tlv(wmi_unified_t wmi_handle,
@@ -22598,7 +22600,9 @@ struct wmi_ops tlv_ops =  {
 	.send_set_ap_ps_param_cmd = send_set_ap_ps_param_cmd_tlv,
 	.send_set_sta_ps_param_cmd = send_set_sta_ps_param_cmd_tlv,
 	.send_crash_inject_cmd = send_crash_inject_cmd_tlv,
+#ifdef FEATURE_FW_LOG_PARSING
 	.send_dbglog_cmd = send_dbglog_cmd_tlv,
+#endif
 	.send_vdev_set_param_cmd = send_vdev_set_param_cmd_tlv,
 	.send_stats_request_cmd = send_stats_request_cmd_tlv,
 	.send_packet_log_enable_cmd = send_packet_log_enable_cmd_tlv,