qcacmn: Log the debug information before freeing the buffer
Log the necessary debug information before freeing the dynamically
allocated memory while sending WMI commands
WMI_ROAM_CONFIGURE_MAWC_CMDID and WMI_NLO_CONFIGURE_MAWC_CMDID.
Change-Id: I10c8a96f8bb1a6cb661501f9ae9b9b21560980de
CRs-Fixed: 2094763
diff --git a/wmi_unified_tlv.c b/wmi_unified_tlv.c
index 5cdc67c..82718fa 100644
--- a/wmi_unified_tlv.c
+++ b/wmi_unified_tlv.c
@@ -5960,6 +5960,12 @@
params->rssi_stationary_high_adjust;
wmi_roam_mawc_params->rssi_stationary_low_adjust =
params->rssi_stationary_low_adjust;
+ WMI_LOGD(FL("MAWC roam en=%d, vdev=%d, tr=%d, ap=%d, high=%d, low=%d"),
+ wmi_roam_mawc_params->enable, wmi_roam_mawc_params->vdev_id,
+ wmi_roam_mawc_params->traffic_load_threshold,
+ wmi_roam_mawc_params->best_ap_rssi_threshold,
+ wmi_roam_mawc_params->rssi_stationary_high_adjust,
+ wmi_roam_mawc_params->rssi_stationary_low_adjust);
status = wmi_unified_cmd_send(wmi_handle, buf,
len, WMI_ROAM_CONFIGURE_MAWC_CMDID);
@@ -5969,12 +5975,6 @@
wmi_buf_free(buf);
return status;
}
- WMI_LOGD(FL("MAWC roam en=%d, vdev=%d, tr=%d, ap=%d, high=%d, low=%d"),
- wmi_roam_mawc_params->enable, wmi_roam_mawc_params->vdev_id,
- wmi_roam_mawc_params->traffic_load_threshold,
- wmi_roam_mawc_params->best_ap_rssi_threshold,
- wmi_roam_mawc_params->rssi_stationary_high_adjust,
- wmi_roam_mawc_params->rssi_stationary_low_adjust);
return QDF_STATUS_SUCCESS;
}
@@ -7595,6 +7595,11 @@
wmi_nlo_mawc_params->exp_backoff_ratio = params->exp_backoff_ratio;
wmi_nlo_mawc_params->init_scan_interval = params->init_scan_interval;
wmi_nlo_mawc_params->max_scan_interval = params->max_scan_interval;
+ WMI_LOGD(FL("MAWC NLO en=%d, vdev=%d, ratio=%d, SCAN init=%d, max=%d"),
+ wmi_nlo_mawc_params->enable, wmi_nlo_mawc_params->vdev_id,
+ wmi_nlo_mawc_params->exp_backoff_ratio,
+ wmi_nlo_mawc_params->init_scan_interval,
+ wmi_nlo_mawc_params->max_scan_interval);
status = wmi_unified_cmd_send(wmi_handle, buf,
len, WMI_NLO_CONFIGURE_MAWC_CMDID);
@@ -7604,11 +7609,6 @@
wmi_buf_free(buf);
return QDF_STATUS_E_FAILURE;
}
- WMI_LOGD(FL("MAWC NLO en=%d, vdev=%d, ratio=%d, SCAN init=%d, max=%d"),
- wmi_nlo_mawc_params->enable, wmi_nlo_mawc_params->vdev_id,
- wmi_nlo_mawc_params->exp_backoff_ratio,
- wmi_nlo_mawc_params->init_scan_interval,
- wmi_nlo_mawc_params->max_scan_interval);
return QDF_STATUS_SUCCESS;
}