qcacmn: Fix compilation issue for WMI Recording feature

Fix compilation issues when WMI_INTERFACE_EVENT_LOGGING
feature is disabled.

Change-Id: I30e9b96cc8d387a7fbe94ae786f9d36ea58b8c21
CRs-Fixed: 1019979
This commit is contained in:
Govind Singh
2016-06-10 10:33:19 +05:30
committed by Vishwajith Upendra
parent dc8d1ae217
commit 06c18396b9
2 changed files with 7 additions and 6 deletions

View File

@@ -848,10 +848,11 @@ out:
* *
* Return: none * Return: none
*/ */
static void wmi_debugfs_remove(wmi_unified_t wmi_handle, struct dentry *dentry static void wmi_debugfs_remove(wmi_unified_t wmi_handle)
, int id)
{ {
int i; int i;
struct dentry *dentry = wmi_handle->log_info.wmi_log_debugfs_dir;
int id = wmi_handle->log_info.wmi_instance_id;
if (dentry && (!(id < 0) || (id >= MAX_WMI_INSTANCES))) { if (dentry && (!(id < 0) || (id >= MAX_WMI_INSTANCES))) {
for (i = 0; i < NUM_DEBUG_INFOS; ++i) { for (i = 0; i < NUM_DEBUG_INFOS; ++i) {
@@ -901,8 +902,7 @@ static QDF_STATUS wmi_debugfs_init(wmi_unified_t wmi_handle)
* *
* Return: none * Return: none
*/ */
static void wmi_debugfs_remove(wmi_unified_t wmi_handle, struct dentry *dentry static void wmi_debugfs_remove(wmi_unified_t wmi_handle) { }
, int id) { }
#endif /*WMI_INTERFACE_EVENT_LOGGING */ #endif /*WMI_INTERFACE_EVENT_LOGGING */
int wmi_get_host_credits(wmi_unified_t wmi_handle); int wmi_get_host_credits(wmi_unified_t wmi_handle);
@@ -2204,8 +2204,7 @@ void wmi_unified_detach(struct wmi_unified *wmi_handle)
cancel_work_sync(&wmi_handle->rx_event_work); cancel_work_sync(&wmi_handle->rx_event_work);
wmi_debugfs_remove(wmi_handle, wmi_handle->log_info.wmi_log_debugfs_dir, wmi_debugfs_remove(wmi_handle);
wmi_handle->log_info.wmi_instance_id);
qdf_spin_lock_bh(&wmi_handle->eventq_lock); qdf_spin_lock_bh(&wmi_handle->eventq_lock);
buf = qdf_nbuf_queue_remove(&wmi_handle->event_queue); buf = qdf_nbuf_queue_remove(&wmi_handle->event_queue);

View File

@@ -11530,6 +11530,7 @@ static QDF_STATUS extract_channel_hopping_event_tlv(wmi_unified_t wmi_handle,
return QDF_STATUS_SUCCESS; return QDF_STATUS_SUCCESS;
} }
#ifdef WMI_INTERFACE_EVENT_LOGGING
static bool is_management_record_tlv(uint32_t cmd_id) static bool is_management_record_tlv(uint32_t cmd_id)
{ {
if ((cmd_id == WMI_MGMT_TX_SEND_CMDID) || if ((cmd_id == WMI_MGMT_TX_SEND_CMDID) ||
@@ -11538,6 +11539,7 @@ static bool is_management_record_tlv(uint32_t cmd_id)
return false; return false;
} }
#endif
struct wmi_ops tlv_ops = { struct wmi_ops tlv_ops = {
.send_vdev_create_cmd = send_vdev_create_cmd_tlv, .send_vdev_create_cmd = send_vdev_create_cmd_tlv,