|
@@ -54,7 +54,7 @@ static QDF_STATUS fake_vdev_create_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
uint8_t macaddr[QDF_MAC_ADDR_SIZE],
|
|
|
struct vdev_create_params *param)
|
|
|
{
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
@@ -68,7 +68,7 @@ static QDF_STATUS fake_vdev_create_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
static QDF_STATUS fake_vdev_delete_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
uint8_t if_id)
|
|
|
{
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
@@ -82,7 +82,7 @@ static QDF_STATUS fake_vdev_delete_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
static QDF_STATUS fake_ocb_set_utc_time_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
struct ocb_utc_param *utc)
|
|
|
{
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
@@ -102,10 +102,10 @@ static QDF_STATUS fake_ocb_get_tsf_timer_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
struct ocb_get_tsf_timer_response response;
|
|
|
ol_scn_t scn = (ol_scn_t) wmi_handle->scn_handle;
|
|
|
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
psoc = target_if_get_psoc_from_scn_hdl(scn);
|
|
|
if (!psoc) {
|
|
|
- WMI_LOGP("null psoc");
|
|
|
+ wmi_err("null psoc");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
response.vdev_id = vdev_id;
|
|
@@ -116,11 +116,11 @@ static QDF_STATUS fake_ocb_get_tsf_timer_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
if (ocb_rx_ops->ocb_tsf_timer) {
|
|
|
status = ocb_rx_ops->ocb_tsf_timer(psoc, &response);
|
|
|
if (status != QDF_STATUS_SUCCESS) {
|
|
|
- WMI_LOGP("ocb_tsf_timer failed.");
|
|
|
+ wmi_err("ocb_tsf_timer failed");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
} else {
|
|
|
- WMI_LOGP("No ocb_tsf_timer callback");
|
|
|
+ wmi_err("No ocb_tsf_timer callback");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
return QDF_STATUS_SUCCESS;
|
|
@@ -137,7 +137,7 @@ static QDF_STATUS fake_ocb_get_tsf_timer_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
static QDF_STATUS fake_dcc_clear_stats_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
uint32_t vdev_id, uint32_t dcc_stats_bitmap)
|
|
|
{
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
@@ -173,11 +173,11 @@ static QDF_STATUS fake_dcc_get_stats_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
struct wlan_ocb_rx_ops *ocb_rx_ops;
|
|
|
ol_scn_t scn = (ol_scn_t) wmi_handle->scn_handle;
|
|
|
struct ocb_dcc_get_stats_response *response;
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
|
|
|
+ wmi_debug("called");
|
|
|
psoc = target_if_get_psoc_from_scn_hdl(scn);
|
|
|
if (!psoc) {
|
|
|
- WMI_LOGP("null psoc");
|
|
|
+ wmi_err("null psoc");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
response = qdf_mem_malloc(sizeof(*response) + 2 *
|
|
@@ -190,20 +190,20 @@ static QDF_STATUS fake_dcc_get_stats_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
qdf_mem_copy(response->channel_stats_array,
|
|
|
&chan1_info,
|
|
|
2 * sizeof(wmi_dcc_ndl_stats_per_channel));
|
|
|
- WMI_LOGP("channel1 freq %d, channel2 freq %d", chan1_info[0].chan_info,
|
|
|
- chan1_info[1].chan_info);
|
|
|
+ wmi_debug("channel1 freq %d, channel2 freq %d", chan1_info[0].chan_info,
|
|
|
+ chan1_info[1].chan_info);
|
|
|
ocb_rx_ops = target_if_ocb_get_rx_ops(psoc);
|
|
|
if (ocb_rx_ops->ocb_dcc_stats_indicate) {
|
|
|
status = ocb_rx_ops->ocb_dcc_stats_indicate(psoc,
|
|
|
response, true);
|
|
|
if (status != QDF_STATUS_SUCCESS) {
|
|
|
- WMI_LOGP("dcc_stats_indicate failed.");
|
|
|
+ wmi_err("dcc_stats_indicate failed");
|
|
|
status = -EINVAL;
|
|
|
} else {
|
|
|
status = 0;
|
|
|
}
|
|
|
} else {
|
|
|
- WMI_LOGP("No dcc_stats_indicate callback");
|
|
|
+ wmi_err("No dcc_stats_indicate callback");
|
|
|
status = -EINVAL;
|
|
|
}
|
|
|
|
|
@@ -226,7 +226,8 @@ static QDF_STATUS fake_dcc_update_ndl_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
struct wlan_ocb_rx_ops *ocb_rx_ops;
|
|
|
ol_scn_t scn = (ol_scn_t) wmi_handle->scn_handle;
|
|
|
struct ocb_dcc_update_ndl_response *resp;
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+
|
|
|
+ wmi_debug("called");
|
|
|
/* Allocate and populate the response */
|
|
|
resp = qdf_mem_malloc(sizeof(*resp));
|
|
|
if (!resp)
|
|
@@ -237,7 +238,7 @@ static QDF_STATUS fake_dcc_update_ndl_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
|
|
|
psoc = target_if_get_psoc_from_scn_hdl(scn);
|
|
|
if (!psoc) {
|
|
|
- WMI_LOGP("null psoc");
|
|
|
+ wmi_err("null psoc");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
@@ -245,13 +246,13 @@ static QDF_STATUS fake_dcc_update_ndl_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
if (ocb_rx_ops->ocb_dcc_ndl_update) {
|
|
|
status = ocb_rx_ops->ocb_dcc_ndl_update(psoc, resp);
|
|
|
if (status != QDF_STATUS_SUCCESS) {
|
|
|
- WMI_LOGP("dcc_ndl_update failed.");
|
|
|
+ wmi_err("dcc_ndl_update failed");
|
|
|
status = -EINVAL;
|
|
|
} else {
|
|
|
status = 0;
|
|
|
}
|
|
|
} else {
|
|
|
- WMI_LOGP("No dcc_ndl_update callback");
|
|
|
+ wmi_err("No dcc_ndl_update callback");
|
|
|
status = -EINVAL;
|
|
|
}
|
|
|
|
|
@@ -275,7 +276,7 @@ static QDF_STATUS fake_ocb_set_config_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
struct wlan_ocb_rx_ops *ocb_rx_ops;
|
|
|
ol_scn_t scn = (ol_scn_t) wmi_handle->scn_handle;
|
|
|
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
WMI_LOGI("%s: vdev_id=%d, channel_count=%d, schedule_size=%d, flag=%x",
|
|
|
__func__, config->vdev_id, config->channel_count,
|
|
|
config->schedule_size, config->flags);
|
|
@@ -304,7 +305,7 @@ static QDF_STATUS fake_ocb_set_config_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
}
|
|
|
psoc = target_if_get_psoc_from_scn_hdl(scn);
|
|
|
if (!psoc) {
|
|
|
- WMI_LOGP("null psoc");
|
|
|
+ wmi_err("null psoc");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
@@ -312,11 +313,11 @@ static QDF_STATUS fake_ocb_set_config_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
if (ocb_rx_ops->ocb_set_config_status) {
|
|
|
status = ocb_rx_ops->ocb_set_config_status(psoc, 0);
|
|
|
if (status != QDF_STATUS_SUCCESS) {
|
|
|
- WMI_LOGP("ocb_set_config_status failed.");
|
|
|
+ wmi_err("ocb_set_config_status failed");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
} else {
|
|
|
- WMI_LOGP("No ocb_set_config_status callback");
|
|
|
+ wmi_err("No ocb_set_config_status callback");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
return QDF_STATUS_SUCCESS;
|
|
@@ -333,7 +334,7 @@ static QDF_STATUS fake_ocb_set_config_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
static QDF_STATUS fake_ocb_stop_timing_advert_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
struct ocb_timing_advert_param *timing_advert)
|
|
|
{
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
@@ -349,7 +350,7 @@ static QDF_STATUS
|
|
|
fake_ocb_start_timing_advert_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
struct ocb_timing_advert_param *timing_advert)
|
|
|
{
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
@@ -365,7 +366,7 @@ fake_ocb_start_timing_advert_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
static QDF_STATUS fake_peer_create_cmd_tlv(wmi_unified_t wmi,
|
|
|
struct peer_create_params *param)
|
|
|
{
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
@@ -381,7 +382,7 @@ static QDF_STATUS fake_peer_delete_cmd_tlv(wmi_unified_t wmi,
|
|
|
uint8_t peer_addr[QDF_MAC_ADDR_SIZE],
|
|
|
uint8_t vdev_id)
|
|
|
{
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
@@ -396,7 +397,7 @@ static QDF_STATUS fake_vdev_start_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
struct vdev_start_params *req)
|
|
|
{
|
|
|
tp_wma_handle wma = (tp_wma_handle) wmi_handle->scn_handle;
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
WMI_LOGI("%s: vdev_id %d freq %d chanmode %d ch_info is_dfs %d "
|
|
|
"beacon interval %d dtim %d center_chan %d center_freq2 %d "
|
|
|
"max_txpow: 0x%x "
|
|
@@ -422,7 +423,7 @@ static QDF_STATUS fake_vdev_start_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
*/
|
|
|
static QDF_STATUS fake_vdev_down_cmd_tlv(wmi_unified_t wmi, uint8_t vdev_id)
|
|
|
{
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
@@ -437,7 +438,7 @@ static QDF_STATUS fake_vdev_down_cmd_tlv(wmi_unified_t wmi, uint8_t vdev_id)
|
|
|
static QDF_STATUS fake_vdev_set_param_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
struct vdev_set_params *param)
|
|
|
{
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
@@ -455,7 +456,7 @@ static QDF_STATUS fake_set_enable_disable_mcc_adaptive_scheduler_cmd_tlv(
|
|
|
wmi_unified_t wmi_handle, uint32_t mcc_adaptive_scheduler,
|
|
|
uint32_t pdev_id)
|
|
|
{
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
@@ -472,7 +473,7 @@ static QDF_STATUS fake_set_enable_disable_mcc_adaptive_scheduler_cmd_tlv(
|
|
|
static QDF_STATUS fake_process_set_ie_info_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
struct vdev_ie_info_param *ie_info)
|
|
|
{
|
|
|
- WMI_LOGP("%s : called", __func__);
|
|
|
+ wmi_debug("called");
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
@@ -481,7 +482,7 @@ void wmi_ocb_ut_attach(struct wmi_unified *wmi_handle)
|
|
|
struct wmi_ops *wmi_ops;
|
|
|
|
|
|
if (!wmi_handle) {
|
|
|
- WMI_LOGP("%s: null wmi handle", __func__);
|
|
|
+ wmi_err("null wmi handle");
|
|
|
return;
|
|
|
}
|
|
|
|