diff --git a/wmi_unified.c b/wmi_unified.c index d83784d0aa..0d3417fbeb 100644 --- a/wmi_unified.c +++ b/wmi_unified.c @@ -258,7 +258,7 @@ static QDF_STATUS wmi_ext_dbgfs_init(struct wmi_unified *wmi_handle) dentry = qdf_debugfs_create_dir(WMI_EXT_DBG_DIR, NULL); if (!dentry) { - qdf_print("error while creating extended wmi debugfs dir"); + WMI_LOGE("error while creating extended wmi debugfs dir"); return QDF_STATUS_E_FAILURE; } @@ -266,7 +266,7 @@ static QDF_STATUS wmi_ext_dbgfs_init(struct wmi_unified *wmi_handle) if (!qdf_debugfs_create_file(WMI_EXT_DBG_FILE, WMI_EXT_DBG_FILE_PERM, dentry, &wmi_ext_dbgfs_ops)) { qdf_debugfs_remove_dir(dentry); - qdf_print("error while creating extended wmi debugfs file"); + WMI_LOGE("error while creating extended wmi debugfs file"); return QDF_STATUS_E_FAILURE; } @@ -668,7 +668,7 @@ static QDF_STATUS wmi_log_init(struct wmi_unified *wmi_handle) cmd_log_buf->size = wmi_log_max_entry; if (!cmd_log_buf->buf) { - qdf_print("no memory for WMI command log buffer.."); + WMI_LOGE("no memory for WMI command log buffer.."); return QDF_STATUS_E_NOMEM; } cmd_log_buf->p_buf_tail_idx = &cmd_log_buf->buf_tail_idx; @@ -681,7 +681,7 @@ static QDF_STATUS wmi_log_init(struct wmi_unified *wmi_handle) cmd_tx_cmpl_log_buf->size = wmi_log_max_entry; if (!cmd_tx_cmpl_log_buf->buf) { - qdf_print("no memory for WMI Command Tx Complete log buffer.."); + WMI_LOGE("no memory for WMI Command Tx Complete log buffer.."); return QDF_STATUS_E_NOMEM; } cmd_tx_cmpl_log_buf->p_buf_tail_idx = @@ -695,7 +695,7 @@ static QDF_STATUS wmi_log_init(struct wmi_unified *wmi_handle) event_log_buf->size = wmi_log_max_entry; if (!event_log_buf->buf) { - qdf_print("no memory for WMI Event log buffer.."); + WMI_LOGE("no memory for WMI Event log buffer.."); return QDF_STATUS_E_NOMEM; } event_log_buf->p_buf_tail_idx = &event_log_buf->buf_tail_idx; @@ -708,7 +708,7 @@ static QDF_STATUS wmi_log_init(struct wmi_unified *wmi_handle) rx_event_log_buf->size = wmi_log_max_entry; if (!rx_event_log_buf->buf) { - qdf_print("no memory for WMI Event Rx log buffer.."); + WMI_LOGE("no memory for WMI Event Rx log buffer.."); return QDF_STATUS_E_NOMEM; } rx_event_log_buf->p_buf_tail_idx = &rx_event_log_buf->buf_tail_idx; @@ -721,7 +721,7 @@ static QDF_STATUS wmi_log_init(struct wmi_unified *wmi_handle) mgmt_cmd_log_buf->size = wmi_mgmt_log_max_entry; if (!mgmt_cmd_log_buf->buf) { - qdf_print("no memory for WMI Management Command log buffer.."); + WMI_LOGE("no memory for WMI Management Command log buffer.."); return QDF_STATUS_E_NOMEM; } mgmt_cmd_log_buf->p_buf_tail_idx = &mgmt_cmd_log_buf->buf_tail_idx; @@ -736,7 +736,7 @@ static QDF_STATUS wmi_log_init(struct wmi_unified *wmi_handle) mgmt_cmd_tx_cmp_log_buf->size = wmi_mgmt_log_max_entry; if (!mgmt_cmd_tx_cmp_log_buf->buf) { - qdf_print("no memory for WMI Management Command Tx complete log buffer.."); + WMI_LOGE("no memory for WMI Management Command Tx complete log buffer.."); return QDF_STATUS_E_NOMEM; } mgmt_cmd_tx_cmp_log_buf->p_buf_tail_idx = @@ -752,7 +752,7 @@ static QDF_STATUS wmi_log_init(struct wmi_unified *wmi_handle) mgmt_event_log_buf->size = wmi_mgmt_log_max_entry; if (!mgmt_event_log_buf->buf) { - qdf_print("no memory for WMI Management Event log buffer.."); + WMI_LOGE("no memory for WMI Management Event log buffer.."); return QDF_STATUS_E_NOMEM; } mgmt_event_log_buf->p_buf_tail_idx = &mgmt_event_log_buf->buf_tail_idx; @@ -1179,7 +1179,7 @@ static int debug_wmi_log_size_show(struct seq_file *m, void *v) \ ret = sscanf(locbuf, "%d", &k); \ if ((ret != 1) || (k != 0)) { \ - qdf_print("Wrong input, echo 0 to clear the wmi buffer");\ + WMI_LOGE("Wrong input, echo 0 to clear the wmi buffer");\ return -EINVAL; \ } \ \ @@ -1338,7 +1338,7 @@ static void wmi_debugfs_create(wmi_unified_t wmi_handle, wmi_handle, wmi_debugfs_infos[i].ops); if (!wmi_handle->debugfs_de[i]) { - qdf_print("debug Entry creation failed!"); + WMI_LOGE("debug Entry creation failed!"); goto out; } } @@ -1346,7 +1346,7 @@ static void wmi_debugfs_create(wmi_unified_t wmi_handle, return; out: - qdf_print("debug Entry creation failed!"); + WMI_LOGE("debug Entry creation failed!"); wmi_log_buffer_free(wmi_handle); return; } @@ -1394,7 +1394,7 @@ static QDF_STATUS wmi_debugfs_init(wmi_unified_t wmi_handle, uint32_t pdev_idx) debugfs_create_dir(buf, NULL); if (!wmi_handle->log_info.wmi_log_debugfs_dir) { - qdf_print("error while creating debugfs dir for %s", buf); + WMI_LOGE("error while creating debugfs dir for %s", buf); return QDF_STATUS_E_FAILURE; } wmi_debugfs_create(wmi_handle, @@ -1784,12 +1784,12 @@ int wmi_unified_register_event_handler(wmi_unified_t wmi_handle, evt_id = wmi_handle->wmi_events[event_id]; if (wmi_unified_get_event_handler_ix(wmi_handle, evt_id) != -1) { - qdf_print("event handler already registered 0x%x", + WMI_LOGE("event handler already registered 0x%x", evt_id); return QDF_STATUS_E_FAILURE; } if (soc->max_event_idx == WMI_UNIFIED_MAX_EVENT) { - qdf_print("no more event handlers 0x%x", + WMI_LOGE("no more event handlers 0x%x", evt_id); return QDF_STATUS_E_FAILURE; } @@ -1832,7 +1832,7 @@ int wmi_unified_unregister_event(wmi_unified_t wmi_handle, idx = wmi_unified_get_event_handler_ix(wmi_handle, evt_id); if (idx == -1) { - qdf_print("event handler is not registered: evt id 0x%x", + WMI_LOGE("event handler is not registered: evt id 0x%x", evt_id); return QDF_STATUS_E_FAILURE; } @@ -1863,7 +1863,7 @@ int wmi_unified_unregister_event_handler(wmi_unified_t wmi_handle, if (event_id >= wmi_events_max || wmi_handle->wmi_events[event_id] == WMI_EVENT_ID_INVALID) { - qdf_print("Event id %d is unavailable", + WMI_LOGE("Event id %d is unavailable", event_id); return QDF_STATUS_E_FAILURE; } @@ -1871,7 +1871,7 @@ int wmi_unified_unregister_event_handler(wmi_unified_t wmi_handle, idx = wmi_unified_get_event_handler_ix(wmi_handle, evt_id); if (idx == -1) { - qdf_print("event handler is not registered: evt id 0x%x", + WMI_LOGE("event handler is not registered: evt id 0x%x", evt_id); return QDF_STATUS_E_FAILURE; } @@ -2013,7 +2013,7 @@ static void wmi_control_rx(void *ctx, HTC_PACKET *htc_packet) wmi_handle = wmi_get_pdev_ep(soc, htc_packet->Endpoint); if (wmi_handle == NULL) { - qdf_print + WMI_LOGE ("unable to get wmi_handle to Endpoint %d\n", htc_packet->Endpoint); qdf_nbuf_free(evt_buf); @@ -2023,7 +2023,7 @@ static void wmi_control_rx(void *ctx, HTC_PACKET *htc_packet) id = WMI_GET_FIELD(qdf_nbuf_data(evt_buf), WMI_CMD_HDR, COMMANDID); idx = wmi_unified_get_event_handler_ix(wmi_handle, id); if (qdf_unlikely(idx == A_ERROR)) { - WMI_LOGD("%s :event handler is not registered: event id 0x%x\n", + WMI_LOGE("%s :event handler is not registered: event id 0x%x\n", __func__, id); qdf_nbuf_free(evt_buf); return; @@ -2053,7 +2053,7 @@ static void wmi_control_rx(void *ctx, HTC_PACKET *htc_packet) wmi_process_fw_event_default_ctx (wmi_handle, htc_packet, exec_ctx); } else { - qdf_print("Invalid event context %d", exec_ctx); + WMI_LOGE("Invalid event context %d", exec_ctx); qdf_nbuf_free(evt_buf); } @@ -2333,7 +2333,7 @@ void *wmi_unified_get_pdev_handle(struct wmi_soc *soc, uint32_t pdev_idx) (struct wmi_unified *) qdf_mem_malloc( sizeof(struct wmi_unified)); if (wmi_handle == NULL) { - qdf_print("allocation of wmi handle failed %zu", + WMI_LOGE("allocation of wmi handle failed %zu", sizeof(struct wmi_unified)); return NULL; } @@ -2411,7 +2411,7 @@ void *wmi_unified_attach(void *scn_handle, soc = (struct wmi_soc *) qdf_mem_malloc(sizeof(struct wmi_soc)); if (soc == NULL) { - qdf_print("Allocation of wmi_soc failed %zu", + WMI_LOGE("Allocation of wmi_soc failed %zu", sizeof(struct wmi_soc)); return NULL; } @@ -2421,7 +2421,7 @@ void *wmi_unified_attach(void *scn_handle, sizeof(struct wmi_unified)); if (wmi_handle == NULL) { qdf_mem_free(soc); - qdf_print("allocation of wmi handle failed %zu", + WMI_LOGE("allocation of wmi handle failed %zu", sizeof(struct wmi_unified)); return NULL; } @@ -2476,7 +2476,7 @@ void *wmi_unified_attach(void *scn_handle, soc->ops = wmi_handle->ops; soc->wmi_pdev[0] = wmi_handle; if (wmi_ext_dbgfs_init(wmi_handle) != QDF_STATUS_SUCCESS) - qdf_print("failed to initialize wmi extended debugfs"); + WMI_LOGE("failed to initialize wmi extended debugfs"); return wmi_handle; @@ -2664,7 +2664,7 @@ static int wmi_connect_pdev_htc_service(struct wmi_soc *soc, if (status != EOK) { - qdf_print + WMI_LOGE ("Failed to connect to WMI CONTROL service status:%d\n", status); return status; diff --git a/wmi_unified_non_tlv.c b/wmi_unified_non_tlv.c index f0d65dda5e..6930650921 100644 --- a/wmi_unified_non_tlv.c +++ b/wmi_unified_non_tlv.c @@ -53,7 +53,7 @@ static QDF_STATUS send_vdev_create_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_vdev_create_cmd *)wmi_buf_data(buf); @@ -61,7 +61,7 @@ static QDF_STATUS send_vdev_create_cmd_non_tlv(wmi_unified_t wmi_handle, cmd->vdev_type = param->type; cmd->vdev_subtype = param->subtype; WMI_CHAR_ARRAY_TO_MAC_ADDR(macaddr, &cmd->vdev_macaddr); - qdf_print("%s: ID = %d Type = %d, Subtype = %d VAP Addr = %02x:%02x:%02x:%02x:%02x:%02x:", + WMI_LOGD("%s: ID = %d Type = %d, Subtype = %d VAP Addr = %02x:%02x:%02x:%02x:%02x:%02x:", __func__, param->if_id, param->type, param->subtype, macaddr[0], macaddr[1], macaddr[2], macaddr[3], macaddr[4], macaddr[5]); @@ -85,12 +85,12 @@ static QDF_STATUS send_vdev_delete_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_vdev_delete_cmd *)wmi_buf_data(buf); cmd->vdev_id = if_id; - qdf_print("%s for vap %d (%pK)", __func__, if_id, wmi_handle); + WMI_LOGD("%s for vap %d (%pK)", __func__, if_id, wmi_handle); return wmi_unified_cmd_send(wmi_handle, buf, len, WMI_VDEV_DELETE_CMDID); } @@ -111,7 +111,7 @@ static QDF_STATUS send_vdev_stop_cmd_non_tlv(wmi_unified_t wmi, buf = wmi_buf_alloc(wmi, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_vdev_stop_cmd *)wmi_buf_data(buf); @@ -136,12 +136,12 @@ static QDF_STATUS send_vdev_down_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_vdev_down_cmd *)wmi_buf_data(buf); cmd->vdev_id = vdev_id; - qdf_print("%s for vap %d (%pK)", __func__, vdev_id, wmi_handle); + WMI_LOGD("%s for vap %d (%pK)", __func__, vdev_id, wmi_handle); return wmi_unified_cmd_send(wmi_handle, buf, len, WMI_VDEV_DOWN_CMDID); } @@ -162,7 +162,7 @@ static QDF_STATUS send_vdev_start_cmd_non_tlv(wmi_unified_t wmi, buf = wmi_buf_alloc(wmi, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -199,11 +199,11 @@ static QDF_STATUS send_vdev_start_cmd_non_tlv(wmi_unified_t wmi, WMI_SET_CHANNEL_FLAG(&cmd->chan, WMI_CHAN_FLAG_QUARTER); if (param->is_restart) { - qdf_print("VDEV RESTART"); + WMI_LOGD("VDEV RESTART"); ret = wmi_unified_cmd_send(wmi, buf, len, WMI_VDEV_RESTART_REQUEST_CMDID); } else { - qdf_print("VDEV START"); + WMI_LOGD("VDEV START"); ret = wmi_unified_cmd_send(wmi, buf, len, WMI_VDEV_START_REQUEST_CMDID); } @@ -235,7 +235,7 @@ QDF_STATUS send_vdev_set_nac_rssi_cmd_non_tlv(wmi_unified_t wmi, buf = wmi_buf_alloc(wmi, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -246,7 +246,7 @@ QDF_STATUS send_vdev_set_nac_rssi_cmd_non_tlv(wmi_unified_t wmi, WMI_CHAR_ARRAY_TO_MAC_ADDR(param->bssid_addr, &cmd->bssid_addr); WMI_CHAR_ARRAY_TO_MAC_ADDR(param->client_addr, &cmd->client_addr); if (wmi_unified_cmd_send(wmi, buf, len, WMI_VDEV_SET_SCAN_NAC_RSSI_CMDID)) { - qdf_print("%s: ERROR: Host unable to send LOWI request to FW", __func__); + WMI_LOGE("%s: ERROR: Host unable to send LOWI request to FW", __func__); wmi_buf_free(buf); return QDF_STATUS_E_FAILURE; } @@ -271,7 +271,7 @@ static QDF_STATUS send_vdev_set_neighbour_rx_cmd_non_tlv(wmi_unified_t wmi_handl buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_vdev_filter_nrp_config_cmd *)wmi_buf_data(buf); @@ -301,7 +301,7 @@ static QDF_STATUS send_vdev_set_fwtest_param_cmd_non_tlv(wmi_unified_t wmi_handl buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -328,7 +328,7 @@ static QDF_STATUS send_vdev_config_ratemask_cmd_non_tlv(wmi_unified_t wmi_handle buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_vdev_config_ratemask *)wmi_buf_data(buf); @@ -336,7 +336,7 @@ static QDF_STATUS send_vdev_config_ratemask_cmd_non_tlv(wmi_unified_t wmi_handle cmd->type = param->type; cmd->mask_lower32 = param->lower32; cmd->mask_higher32 = param->higher32; - qdf_print("Setting vdev ratemask vdev id = 0x%X, type = 0x%X, mask_l32 = 0x%X mask_h32 = 0x%X", + WMI_LOGD("Setting vdev ratemask vdev id = 0x%X, type = 0x%X, mask_l32 = 0x%X mask_h32 = 0x%X", param->vdev_id, param->type, param->lower32, param->higher32); return wmi_unified_cmd_send(wmi_handle, buf, len, WMI_VDEV_RATEMASK_CMDID); @@ -370,7 +370,7 @@ static QDF_STATUS send_setup_install_key_cmd_non_tlv(wmi_unified_t wmi_handle, len = roundup(len, sizeof(u_int32_t)); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_vdev_install_key_cmd *)wmi_buf_data(buf); @@ -416,17 +416,17 @@ static QDF_STATUS send_setup_install_key_cmd_non_tlv(wmi_unified_t wmi_handle, param->tx_iv[i]; } - qdf_print("RSC:"); + WMI_LOGD("RSC:"); for (i = 0; i < 16; i++) - qdf_print("0x%x ", + WMI_LOGD("0x%x ", *(((uint8_t *)&cmd->wpi_key_rsc_counter)+i)); - qdf_print("\n"); + WMI_LOGD("\n"); - qdf_print("TSC:"); + WMI_LOGD("TSC:"); for (i = 0; i < 16; i++) - qdf_print("0x%x ", + WMI_LOGD("0x%x ", *(((uint8_t *)&cmd->wpi_key_tsc_counter)+i)); - qdf_print("\n"); + WMI_LOGD("\n"); } #endif @@ -462,7 +462,7 @@ static QDF_STATUS send_peer_flush_tids_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_peer_flush_tids_cmd *)wmi_buf_data(buf); @@ -492,7 +492,7 @@ static QDF_STATUS send_peer_delete_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_peer_delete_cmd *)wmi_buf_data(buf); @@ -581,7 +581,7 @@ static QDF_STATUS send_peer_param_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_peer_set_param_cmd *)wmi_buf_data(buf); @@ -611,14 +611,14 @@ static QDF_STATUS send_vdev_up_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_vdev_up_cmd *)wmi_buf_data(buf); cmd->vdev_id = param->vdev_id; cmd->vdev_assoc_id = param->assoc_id; WMI_CHAR_ARRAY_TO_MAC_ADDR(bssid, &cmd->vdev_bssid); - qdf_print("%s for vap %d (%pK)", __func__, param->vdev_id, wmi_handle); + WMI_LOGD("%s for vap %d (%pK)", __func__, param->vdev_id, wmi_handle); return wmi_unified_cmd_send(wmi_handle, buf, len, WMI_VDEV_UP_CMDID); } @@ -638,7 +638,7 @@ static QDF_STATUS send_peer_create_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_peer_create_cmd *)wmi_buf_data(buf); @@ -664,7 +664,7 @@ static QDF_STATUS send_peer_add_wds_entry_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_peer_add_wds_entry_cmd *)wmi_buf_data(buf); @@ -691,7 +691,7 @@ static QDF_STATUS send_peer_del_wds_entry_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_peer_remove_wds_entry_cmd *)wmi_buf_data(buf); @@ -717,7 +717,7 @@ QDF_STATUS send_set_bridge_mac_addr_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } qdf_mem_zero(null_macaddr, IEEE80211_ADDR_LEN); @@ -746,7 +746,7 @@ static QDF_STATUS send_peer_update_wds_entry_cmd_non_tlv(wmi_unified_t wmi_handl buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -783,7 +783,7 @@ static QDF_STATUS send_green_ap_ps_cmd_non_tlv(wmi_unified_t wmi_handle, len = sizeof(wmi_pdev_green_ap_ps_enable_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -796,7 +796,7 @@ static QDF_STATUS send_green_ap_ps_cmd_non_tlv(wmi_unified_t wmi_handle, WMI_PDEV_GREEN_AP_PS_ENABLE_CMDID); #ifdef OL_GREEN_AP_DEBUG_CONFIG_INTERACTIONS - qdf_print("%s: Sent WMI_PDEV_GREEN_AP_PS_ENABLE_CMDID.\n" + WMI_LOGD("%s: Sent WMI_PDEV_GREEN_AP_PS_ENABLE_CMDID.\n" "enable=%u status=%d", __func__, value, @@ -845,7 +845,7 @@ send_pdev_utf_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, (chunkLen + sizeof(segHdrInfo))); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -923,11 +923,6 @@ send_pdev_qvit_cmd_non_tlv(wmi_unified_t wmi_handle, u_int8_t *bufpos; QVIT_SEG_HDR_INFO_STRUCT segHdrInfo; -/* -#ifdef QVIT_DEBUG - qdf_print(KERN_INFO "QVIT: %s: called", __func__); -#endif -*/ bufpos = param->utf_payload; totalBytes = param->len; numSegments = (totalBytes / MAX_WMI_QVIT_LEN); @@ -944,7 +939,7 @@ send_pdev_qvit_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, (chunkLen + sizeof(segHdrInfo))); if (!buf) { - qdf_print("QVIT: %s: wmi_buf_alloc failed", + WMI_LOGE("QVIT: %s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -965,7 +960,7 @@ send_pdev_qvit_cmd_non_tlv(wmi_unified_t wmi_handle, (chunkLen + sizeof(segHdrInfo)), WMI_PDEV_QVIT_CMDID); if (ret != 0) { - qdf_print + WMI_LOGE (KERN_ERR "QVIT: %s: wmi_unified_cmd_send failed\n", __func__); break; @@ -1002,7 +997,7 @@ send_pdev_param_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_pdev_set_param_cmd *)wmi_buf_data(buf); @@ -1088,11 +1083,11 @@ static QDF_STATUS send_wow_enable_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, 4); if (!buf) { - qdf_print("buf alloc failed"); + WMI_LOGE("buf alloc failed"); return QDF_STATUS_E_NOMEM; } res = wmi_unified_cmd_send(wmi_handle, buf, 4, WMI_WOW_ENABLE_CMDID); - qdf_print("send_wow_enable result: %d", res); + WMI_LOGD("send_wow_enable result: %d", res); return (res == QDF_STATUS_SUCCESS) ? QDF_STATUS_SUCCESS : QDF_STATUS_E_FAILURE; } @@ -1110,12 +1105,12 @@ static QDF_STATUS send_wow_wakeup_cmd_non_tlv(wmi_unified_t wmi_handle) buf = wmi_buf_alloc(wmi_handle, 4); if (!buf) { - qdf_print("buf alloc failed"); + WMI_LOGE("buf alloc failed"); return QDF_STATUS_E_NOMEM; } res = wmi_unified_cmd_send(wmi_handle, buf, 4, WMI_WOW_HOSTWAKEUP_FROM_SLEEP_CMDID); - qdf_print("ol_wow_wakeup result: %d", res); + WMI_LOGD("ol_wow_wakeup result: %d", res); return (res == QDF_STATUS_SUCCESS) ? QDF_STATUS_SUCCESS : QDF_STATUS_E_FAILURE; } @@ -1137,7 +1132,7 @@ static QDF_STATUS send_wow_add_wakeup_event_cmd_non_tlv(wmi_unified_t wmi_handle buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("buf alloc failed"); + WMI_LOGE("buf alloc failed"); return QDF_STATUS_E_NOMEM; } cmd = (WMI_WOW_ADD_DEL_EVT_CMD *)wmi_buf_data(buf); @@ -1173,7 +1168,7 @@ static QDF_STATUS send_wow_add_wakeup_pattern_cmd_non_tlv(wmi_unified_t wmi_hand buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("buf alloc failed"); + WMI_LOGE("buf alloc failed"); return QDF_STATUS_E_NOMEM; } cmd = (WMI_WOW_ADD_PATTERN_CMD *)wmi_buf_data(buf); @@ -1214,7 +1209,7 @@ static QDF_STATUS send_wow_remove_wakeup_pattern_cmd_non_tlv(wmi_unified_t wmi_h buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("buf alloc failed"); + WMI_LOGE("buf alloc failed"); return QDF_STATUS_E_NOMEM; } cmd = (WMI_WOW_DEL_PATTERN_CMD *)wmi_buf_data(buf); @@ -1243,7 +1238,7 @@ static QDF_STATUS send_set_ap_ps_param_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, sizeof(*cmd)); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -1272,7 +1267,7 @@ static QDF_STATUS send_set_sta_ps_param_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, sizeof(*cmd)); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -1301,10 +1296,10 @@ static QDF_STATUS send_set_ps_mode_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, sizeof(*cmd)); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } - qdf_print("%s:set psmode=%d", __func__, param->psmode); + WMI_LOGD("%s:set psmode=%d", __func__, param->psmode); cmd = (wmi_sta_powersave_mode_cmd *)wmi_buf_data(buf); cmd->vdev_id = param->vdev_id; cmd->sta_ps_mode = param->psmode; @@ -1331,7 +1326,7 @@ static QDF_STATUS send_crash_inject_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (WMI_FORCE_FW_HANG_CMD *)wmi_buf_data(buf); @@ -1365,7 +1360,7 @@ send_dbglog_cmd_non_tlv(wmi_unified_t wmi_handle, cmd = (WMI_DBGLOG_CFG_CMD *)(wmi_buf_data(osbuf)); - qdf_print("wmi_dbg_cfg_send: mod[0]%08x dbgcfg%08x cfgvalid[0] %08x cfgvalid[1] %08x", + WMI_LOGD("wmi_dbg_cfg_send: mod[0]%08x dbgcfg%08x cfgvalid[0] %08x cfgvalid[1] %08x", dbglog_param->module_id_bitmap[0], dbglog_param->val, dbglog_param->cfgvalid[0], dbglog_param->cfgvalid[1]); @@ -1404,7 +1399,7 @@ static QDF_STATUS send_vdev_set_param_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_vdev_set_param_cmd *)wmi_buf_data(buf); @@ -1458,7 +1453,7 @@ static QDF_STATUS send_stats_request_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_INVAL; } @@ -1493,7 +1488,7 @@ static QDF_STATUS send_bss_chan_info_request_cmd_non_tlv(wmi_unified_t wmi_handl buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_INVAL; } @@ -1527,7 +1522,7 @@ static QDF_STATUS send_packet_log_enable_cmd_non_tlv(wmi_unified_t wmi_handle, len = sizeof(wmi_pdev_pktlog_enable_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_pdev_pktlog_enable_cmd *)wmi_buf_data(buf); @@ -1554,7 +1549,7 @@ static QDF_STATUS send_packet_log_disable_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, 0); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } if (wmi_unified_cmd_send(wmi_handle, buf, len, @@ -1589,7 +1584,7 @@ static QDF_STATUS send_beacon_send_cmd_non_tlv(wmi_unified_t wmi_handle, wmi_buf = wmi_buf_alloc(wmi_handle, roundup(len, sizeof(u_int32_t))); if (!wmi_buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_bcn_tx_cmd *)wmi_buf_data(wmi_buf); @@ -1618,7 +1613,7 @@ static QDF_STATUS send_beacon_send_cmd_non_tlv(wmi_unified_t wmi_handle, qdf_mem_copy(cmd->bufp, wmi_buf_data(param->wbuf), bcn_len); #endif #ifdef DEBUG_BEACON - qdf_print("%s frm length %d", __func__, bcn_len); + WMI_LOGD("%s frm length %d", __func__, bcn_len); #endif wmi_unified_cmd_send(wmi_handle, wmi_buf, roundup(len, sizeof(u_int32_t)), WMI_BCN_TX_CMDID); @@ -1643,7 +1638,7 @@ static QDF_STATUS send_beacon_send_cmd_non_tlv(wmi_unified_t wmi_handle, wmi_buf = wmi_buf_alloc(wmi_handle, roundup(len, sizeof(u_int32_t))); if (!wmi_buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -1662,50 +1657,6 @@ static QDF_STATUS send_beacon_send_cmd_non_tlv(wmi_unified_t wmi_handle, return QDF_STATUS_SUCCESS; } -#if 0 -/** - * send_bcn_prb_template_cmd_non_tlv() - WMI beacon probe template function - * - * @param wmi_handle : handle to WMI. - * @param macaddr : MAC address - * @param param : pointer to hold beacon prb template cmd parameter - * @return QDF_STATUS_SUCCESS on success and -ve on failure. - */ -static QDF_STATUS send_bcn_prb_template_cmd_non_tlv(wmi_unified_t wmi_handle, - struct bcn_prb_template_params *param) -{ - wmi_bcn_prb_tmpl_cmd *cmd; - wmi_buf_t buf; - wmi_bcn_prb_info *template; - int len = sizeof(wmi_bcn_prb_tmpl_cmd); - int ret; - - /* - * The target will store this information for use with - * the beacons and probes. - */ - buf = wmi_buf_alloc(wmi_handle, len); - if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); - return QDF_STATUS_E_NOMEM; - } - cmd = (wmi_bcn_prb_tmpl_cmd *)wmi_buf_data(buf); - cmd->vdev_id = param->vdev_id; - cmd->buf_len = param->buf_len; - template = &cmd->bcn_prb_info; - template->caps = param->caps; - template->erp = param->erp; - - /* TODO: Few more elements to be added and copied to the template - * buffer */ - - /* Send the beacon probe template to the target */ - ret = wmi_unified_cmd_send(wmi_handle, buf, len, - WMI_BCN_PRB_TMPL_CMDID); - return ret; -} -#endif - /** * send_peer_assoc_cmd_non_tlv() - WMI peer assoc function * @@ -1726,7 +1677,7 @@ static QDF_STATUS send_peer_assoc_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_peer_assoc_complete_cmd *)wmi_buf_data(buf); @@ -1933,7 +1884,7 @@ static QDF_STATUS send_scan_start_cmd_non_tlv(wmi_unified_t wmi_handle, } buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_start_scan_cmd *)wmi_buf_data(buf); @@ -2089,7 +2040,7 @@ static QDF_STATUS send_scan_start_cmd_non_tlv(wmi_unified_t wmi_handle, WMI_HOST_IF_MSG_COPY_CHAR_ARRAY(ie_data->ie_data, param->extraie.ptr, param->extraie.len); } - qdf_print("Sending SCAN START cmd"); + WMI_LOGD("Sending SCAN START cmd"); return wmi_unified_cmd_send(wmi_handle, buf, len, WMI_START_SCAN_CMDID); } @@ -2109,7 +2060,7 @@ static QDF_STATUS send_scan_stop_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_stop_scan_cmd *)wmi_buf_data(buf); @@ -2160,7 +2111,7 @@ static QDF_STATUS send_scan_chan_list_cmd_non_tlv(wmi_unified_t wmi_handle, sizeof(wmi_channel)*param->nallchans; buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -2233,7 +2184,7 @@ static QDF_STATUS send_thermal_mitigation_param_cmd_non_tlv(wmi_unified_t wmi_ha len = sizeof(tt_config_t); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (tt_config_t *) wmi_buf_data(buf); @@ -2273,10 +2224,10 @@ static QDF_STATUS send_phyerr_enable_cmd_non_tlv(wmi_unified_t wmi_handle) return QDF_STATUS_E_NOMEM; } - qdf_print("%s: about to send", __func__); + WMI_LOGD("%s: about to send", __func__); if (wmi_unified_cmd_send(wmi_handle, buf, 32, WMI_PDEV_DFS_ENABLE_CMDID) != QDF_STATUS_SUCCESS) { - qdf_print("%s: send failed", __func__); + WMI_LOGE("%s: send failed", __func__); return QDF_STATUS_E_FAILURE; } return QDF_STATUS_SUCCESS; @@ -2302,10 +2253,10 @@ static QDF_STATUS send_phyerr_disable_cmd_non_tlv(wmi_unified_t wmi_handle) return QDF_STATUS_E_NOMEM; } - qdf_print("%s: about to send", __func__); + WMI_LOGD("%s: about to send", __func__); if (wmi_unified_cmd_send(wmi_handle, buf, 32, WMI_PDEV_DFS_DISABLE_CMDID) != QDF_STATUS_SUCCESS) { - qdf_print("%s: send failed", __func__); + WMI_LOGE("%s: send failed", __func__); return QDF_STATUS_E_FAILURE; } return QDF_STATUS_SUCCESS; @@ -2330,7 +2281,7 @@ static QDF_STATUS send_smart_ant_enable_cmd_non_tlv(wmi_unified_t wmi_handle, len = sizeof(wmi_pdev_smart_ant_enable_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -2369,8 +2320,8 @@ static QDF_STATUS send_smart_ant_enable_cmd_non_tlv(wmi_unified_t wmi_handle, WMI_PDEV_SMART_ANT_ENABLE_CMDID); if (ret != 0) { - qdf_print(" %s :WMI Failed", __func__); - qdf_print("%s: Failed to send WMI_PDEV_SMART_ANT_ENABLE_CMDID.\n" + WMI_LOGE(" %s :WMI Failed", __func__); + WMI_LOGE("%s: Failed to send WMI_PDEV_SMART_ANT_ENABLE_CMDID.\n" "enable:%d mode:%d rx_antenna: 0x%08x PINS: [%d %d %d %d] Func[%d %d %d %d] cmdstatus=%d", __func__, cmd->enable, @@ -2407,7 +2358,7 @@ static QDF_STATUS send_smart_ant_set_rx_ant_cmd_non_tlv(wmi_unified_t wmi_handle len = sizeof(wmi_pdev_smart_ant_set_rx_antenna_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -2419,8 +2370,8 @@ static QDF_STATUS send_smart_ant_set_rx_ant_cmd_non_tlv(wmi_unified_t wmi_handle WMI_PDEV_SMART_ANT_SET_RX_ANTENNA_CMDID); if (ret != 0) { - qdf_print(" %s :WMI Failed", __func__); - qdf_print("%s: Failed to send WMI_PDEV_SMART_ANT_SET_RX_ANTENNA_CMDID.\n" + WMI_LOGE(" %s :WMI Failed", __func__); + WMI_LOGE("%s: Failed to send WMI_PDEV_SMART_ANT_SET_RX_ANTENNA_CMDID.\n" " rx_antenna: 0x%08x cmdstatus=%d", __func__, cmd->rx_antenna, @@ -2449,7 +2400,7 @@ static QDF_STATUS send_smart_ant_set_tx_ant_cmd_non_tlv(wmi_unified_t wmi_handle len = sizeof(wmi_peer_sant_set_tx_antenna_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -2465,8 +2416,8 @@ static QDF_STATUS send_smart_ant_set_tx_ant_cmd_non_tlv(wmi_unified_t wmi_handle WMI_PEER_SMART_ANT_SET_TX_ANTENNA_CMDID); if (ret != 0) { - qdf_print(" %s :WMI Failed", __func__); - qdf_print("%s: Failed to send WMI_PEER_SMART_ANT_SET_TX_ANTENNA_CMDID.\n" + WMI_LOGE(" %s :WMI Failed", __func__); + WMI_LOGE("%s: Failed to send WMI_PEER_SMART_ANT_SET_TX_ANTENNA_CMDID.\n" " Node: %s tx_antennas: [0x%08x 0x%08x] cmdstatus=%d", __func__, ether_sprintf(macaddr), @@ -2499,7 +2450,7 @@ static QDF_STATUS send_smart_ant_set_training_info_cmd_non_tlv( len = sizeof(wmi_peer_sant_set_train_antenna_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -2517,8 +2468,8 @@ static QDF_STATUS send_smart_ant_set_training_info_cmd_non_tlv( WMI_PEER_SMART_ANT_SET_TRAIN_INFO_CMDID); if (ret != 0) { - qdf_print(" %s :WMI Failed", __func__); - qdf_print("%s: Failed to Send WMI_PEER_SMART_ANT_SET_TRAIN_INFO_CMDID.\n" + WMI_LOGE(" %s :WMI Failed", __func__); + WMI_LOGE("%s: Failed to Send WMI_PEER_SMART_ANT_SET_TRAIN_INFO_CMDID.\n" " Train Node: %s rate_array[0x%02x 0x%02x] tx_antennas: [0x%08x 0x%08x] cmdstatus=%d", __func__, ether_sprintf(macaddr), @@ -2554,14 +2505,14 @@ static QDF_STATUS send_smart_ant_set_node_config_cmd_non_tlv(wmi_unified_t wmi_h if ((param->args_count == 0) || (param->args_count > (sizeof(cmd->args) / sizeof(cmd->args[0])))) { - qdf_print("%s: Can't send a command with %d arguments", + WMI_LOGE("%s: Can't send a command with %d arguments", __func__, param->args_count); return QDF_STATUS_E_FAILURE; } buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -2579,8 +2530,8 @@ static QDF_STATUS send_smart_ant_set_node_config_cmd_non_tlv(wmi_unified_t wmi_h WMI_PEER_SMART_ANT_SET_NODE_CONFIG_OPS_CMDID); if (ret != 0) { - qdf_print(" %s :WMI Failed", __func__); - qdf_print("%s: Sent WMI_PEER_SMART_ANT_SET_NODE_CONFIG_OPS_CMDID, cmd_id: 0x%x\n Node: %s cmdstatus=%d", + WMI_LOGE(" %s :WMI Failed", __func__); + WMI_LOGE("%s: Sent WMI_PEER_SMART_ANT_SET_NODE_CONFIG_OPS_CMDID, cmd_id: 0x%x\n Node: %s cmdstatus=%d", __func__, param->cmd_id, ether_sprintf(macaddr), ret); } return ret; @@ -2609,7 +2560,7 @@ static QDF_STATUS send_smart_ant_enable_tx_feedback_cmd_non_tlv( len = sizeof(wmi_pdev_pktlog_enable_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_pdev_pktlog_enable_cmd *)wmi_buf_data(buf); @@ -2622,7 +2573,7 @@ static QDF_STATUS send_smart_ant_enable_tx_feedback_cmd_non_tlv( } else if (param->enable == 0) { buf = wmi_buf_alloc(wmi_handle, 0); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } if (!wmi_unified_cmd_send(wmi_handle, buf, len, @@ -2652,7 +2603,7 @@ static QDF_STATUS send_vdev_spectral_configure_cmd_non_tlv(wmi_unified_t wmi_han len = sizeof(wmi_vdev_spectral_configure_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -2684,9 +2635,9 @@ static QDF_STATUS send_vdev_spectral_configure_cmd_non_tlv(wmi_unified_t wmi_han len, WMI_VDEV_SPECTRAL_SCAN_CONFIGURE_CMDID); #ifdef OL_SPECTRAL_DEBUG_CONFIG_INTERACTIONS - qdf_print("%s: Sent WMI_VDEV_SPECTRAL_SCAN_CONFIGURE_CMDID", __func__); + WMI_LOGD("%s: Sent WMI_VDEV_SPECTRAL_SCAN_CONFIGURE_CMDID", __func__); - qdf_print("vdev_id = %u\n" + WMI_LOGD("vdev_id = %u\n" "spectral_scan_count = %u\n" "spectral_scan_period = %u\n" "spectral_scan_priority = %u\n" @@ -2724,7 +2675,7 @@ static QDF_STATUS send_vdev_spectral_configure_cmd_non_tlv(wmi_unified_t wmi_han param->bin_scale, param->dbm_adj, param->chn_mask); - qdf_print("%s: Status: %d", __func__, ret); + WMI_LOGD("%s: Status: %d", __func__, ret); #endif /* OL_SPECTRAL_DEBUG_CONFIG_INTERACTIONS */ return ret; @@ -2793,7 +2744,7 @@ send_vdev_fils_enable_cmd_non_tlv(wmi_unified_t wmi_handle, cmd = (wmi_enable_fils_cmd *)wmi_buf_data(buf); cmd->vdev_id = param->vdev_id; cmd->fd_period = param->fd_period; - WMI_LOGI("Setting FD period to %d vdev id : %d\n", + WMI_LOGD("Setting FD period to %d vdev id : %d\n", param->fd_period, param->vdev_id); status = wmi_unified_cmd_send(wmi_handle, buf, len, @@ -2845,7 +2796,7 @@ static QDF_STATUS send_vdev_spectral_enable_cmd_non_tlv(wmi_unified_t wmi_handle len = sizeof(wmi_vdev_spectral_enable_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -2868,17 +2819,17 @@ static QDF_STATUS send_vdev_spectral_enable_cmd_non_tlv(wmi_unified_t wmi_handle } #ifdef OL_SPECTRAL_DEBUG_CONFIG_INTERACTIONS - qdf_print + WMI_LOGD ("%s: Sent WMI_VDEV_SPECTRAL_SCAN_ENABLE_CMDID\n", __func__); - qdf_print("vdev_id = %u\n" + WMI_LOGD("vdev_id = %u\n" "trigger_cmd = %u\n" "enable_cmd = %u", cmd->vdev_id, cmd->trigger_cmd, cmd->enable_cmd); - qdf_print("%s: Status: %d", __func__, ret); + WMI_LOGD("%s: Status: %d", __func__, ret); #endif /* OL_SPECTRAL_DEBUG_CONFIG_INTERACTIONS */ ret = wmi_unified_cmd_send(wmi_handle, @@ -2906,7 +2857,7 @@ send_pdev_set_regdomain_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -2940,7 +2891,7 @@ send_set_quiet_mode_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } quiet_cmd = (wmi_pdev_set_quiet_cmd *)wmi_buf_data(buf); @@ -2973,12 +2924,12 @@ send_set_beacon_filter_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("buf alloc failed"); + WMI_LOGE("buf alloc failed"); return QDF_STATUS_E_NOMEM; } cmd = (wmi_add_bcn_filter_cmd_t *)wmi_buf_data(buf); cmd->vdev_id = param->vdev_id; - qdf_print("vdev_id: %d", cmd->vdev_id); + WMI_LOGD("vdev_id: %d", cmd->vdev_id); for (i = 0; i < BCN_FLT_MAX_ELEMS_IE_LIST; i++) cmd->ie_map[i] = 0; @@ -3012,7 +2963,7 @@ send_remove_beacon_filter_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("buf alloc failed"); + WMI_LOGE("buf alloc failed"); return QDF_STATUS_E_NOMEM; } cmd = (wmi_rmv_bcn_filter_cmd_t *)wmi_buf_data(buf); @@ -3039,7 +2990,7 @@ send_mgmt_cmd_non_tlv(wmi_unified_t wmi_handle, wmi_buf = wmi_buf_alloc(wmi_handle, roundup(len, sizeof(u_int32_t))); if (!wmi_buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_mgmt_tx_cmd *)wmi_buf_data(wmi_buf); @@ -3095,7 +3046,7 @@ send_addba_clearresponse_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_addba_clear_resp_cmd *)wmi_buf_data(buf); @@ -3125,7 +3076,7 @@ send_addba_send_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_addba_send_cmd *)wmi_buf_data(buf); @@ -3157,7 +3108,7 @@ send_delba_send_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -3191,7 +3142,7 @@ send_addba_setresponse_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -3224,7 +3175,7 @@ send_singleamsdu_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -3257,7 +3208,7 @@ send_set_qboost_param_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, sizeof(*cmd)); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -3286,7 +3237,7 @@ send_mu_scan_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, sizeof(wmi_mu_start_cmd)); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_mu_start_cmd *)wmi_buf_data(buf); @@ -3320,7 +3271,7 @@ send_lteu_config_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, sizeof(wmi_set_lteu_config)); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_set_lteu_config *)wmi_buf_data(buf); @@ -3358,7 +3309,7 @@ send_pdev_get_tpc_config_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_pdev_get_tpc_config_cmd *)wmi_buf_data(buf); @@ -3387,7 +3338,7 @@ send_set_bwf_cmd_non_tlv(wmi_unified_t wmi_handle, len += param->num_peers * sizeof(struct wmi_bwf_peer_info); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_peer_bwf_request *)wmi_buf_data(buf); @@ -3433,7 +3384,7 @@ send_set_atf_cmd_non_tlv(wmi_unified_t wmi_handle, len += param->num_peers * sizeof(struct wmi_atf_peer_info); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -3446,7 +3397,7 @@ send_set_atf_cmd_non_tlv(wmi_unified_t wmi_handle, sizeof(wmi_mac_addr)); peer_info[i].atf_units = param->peer_info[i].percentage_peer; } -/* qdf_print("wmi_unified_pdev_set_atf peer_num=%d", cmd->num_peers); */ + WMI_LOGD("wmi_unified_pdev_set_atf peer_num=%d", cmd->num_peers); retval = wmi_unified_cmd_send(wmi_handle, buf, len, WMI_PEER_ATF_REQUEST_CMDID); return retval; @@ -3472,7 +3423,7 @@ send_atf_peer_request_cmd_non_tlv(wmi_unified_t wmi_handle, len += param->num_peers * sizeof(struct wmi_atf_peer_ext_info); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -3515,7 +3466,7 @@ send_set_atf_grouping_cmd_non_tlv(wmi_unified_t wmi_handle, len += param->num_groups * sizeof(struct wmi_atf_group_info); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -3555,7 +3506,7 @@ send_set_atf_group_ac_cmd_non_tlv(wmi_unified_t wmi_handle, len += param->num_groups * sizeof(struct wmi_atf_group_wmm_ac_info); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed\n", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed\n", __func__); return QDF_STATUS_E_FAILURE; } @@ -3645,7 +3596,7 @@ send_wlan_profile_enable_cmd_non_tlv(wmi_unified_t wmi_handle, len = sizeof(wmi_wlan_profile_enable_profile_id_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_wlan_profile_enable_profile_id_cmd *)wmi_buf_data(buf); @@ -3674,7 +3625,7 @@ send_wlan_profile_trigger_cmd_non_tlv(wmi_unified_t wmi_handle, len = sizeof(wmi_wlan_profile_trigger_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_wlan_profile_trigger_cmd *)wmi_buf_data(buf); @@ -3720,7 +3671,7 @@ send_set_ht_ie_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_pdev_set_ht_ie_cmd *)wmi_buf_data(buf); @@ -3756,7 +3707,7 @@ send_set_vht_ie_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_pdev_set_vht_ie_cmd *)wmi_buf_data(buf); @@ -3790,7 +3741,7 @@ send_wmm_update_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_SUCCESS; } cmd = (wmi_pdev_set_wmm_params_cmd *)wmi_buf_data(buf); @@ -3846,7 +3797,7 @@ send_set_ant_switch_tbl_cmd_non_tlv(wmi_unified_t wmi_handle, len = sizeof(wmi_pdev_set_ant_switch_tbl_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_pdev_set_ant_switch_tbl_cmd *)wmi_buf_data(buf); @@ -3882,10 +3833,10 @@ send_set_ratepwr_table_cmd_non_tlv(wmi_unified_t wmi_handle, len = sizeof(wmi_pdev_ratepwr_table_cmd); len += roundup(param->ratepwr_len, sizeof(uint32_t)) - sizeof(uint32_t); /* already 4 bytes in cmd structure */ - qdf_print("wmi buf len = %d", len); + WMI_LOGD("wmi buf len = %d", len); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_pdev_ratepwr_table_cmd *)wmi_buf_data(buf); @@ -3917,10 +3868,10 @@ send_get_ratepwr_table_cmd_non_tlv(wmi_unified_t wmi_handle) wmi_pdev_ratepwr_table_cmd *cmd; len = sizeof(wmi_pdev_ratepwr_table_cmd); - qdf_print("wmi buf len = %d", len); + WMI_LOGD("wmi buf len = %d", len); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_pdev_ratepwr_table_cmd *)wmi_buf_data(buf); @@ -3975,7 +3926,7 @@ send_set_ctl_table_cmd_non_tlv(wmi_unified_t wmi_handle, (WMI_HOST_NUM_BAND_EDGES_2G_40MHZ * 3) + (WMI_HOST_NUM_CTLS_2G_40MHZ * WMI_HOST_NUM_BAND_EDGES_2G_40MHZ) + 4)) { - qdf_print("CTL array len not correct"); + WMI_LOGD("CTL array len not correct"); return QDF_STATUS_E_FAILURE; } } else { @@ -4001,7 +3952,7 @@ send_set_ctl_table_cmd_non_tlv(wmi_unified_t wmi_handle, (WMI_HOST_NUM_BAND_EDGES_5G_HT160 * 3) + (WMI_HOST_NUM_CTLS_5G_HT160 * WMI_HOST_NUM_BAND_EDGES_5G_HT160))) { - qdf_print("CTL array len not correct"); + WMI_LOGD("CTL array len not correct"); return QDF_STATUS_E_FAILURE; } } @@ -4009,17 +3960,17 @@ send_set_ctl_table_cmd_non_tlv(wmi_unified_t wmi_handle, if (param->ctl_cmd_len != WMI_HOST_NUM_CTLS_2G * WMI_HOST_NUM_BAND_EDGES_2G * 2 + WMI_HOST_NUM_CTLS_5G * WMI_HOST_NUM_BAND_EDGES_5G * 2) { - qdf_print("CTL array len not correct"); + WMI_LOGD("CTL array len not correct"); return QDF_STATUS_E_FAILURE; } } len = sizeof(wmi_pdev_set_ctl_table_cmd); len += roundup(param->ctl_cmd_len, sizeof(uint32_t)) - sizeof(uint32_t); - qdf_print("wmi buf len = %d", len); + WMI_LOGD("wmi buf len = %d", len); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_pdev_set_ctl_table_cmd *)wmi_buf_data(buf); @@ -4032,7 +3983,7 @@ send_set_ctl_table_cmd_non_tlv(wmi_unified_t wmi_handle, if (wmi_unified_cmd_send(wmi_handle, buf, len, WMI_PDEV_SET_CTL_TABLE_CMDID)) { - qdf_print("%s:Failed to send command", __func__); + WMI_LOGE("%s:Failed to send command", __func__); return QDF_STATUS_E_FAILURE; } @@ -4061,7 +4012,7 @@ send_set_mimogain_table_cmd_non_tlv(wmi_unified_t wmi_handle, if (param->tbl_len % ((WMI_HOST_TX_NUM_CHAIN-1) * WMI_HOST_TPC_REGINDEX_MAX * WMI_HOST_ARRAY_GAIN_NUM_STREAMS) != 0) { - qdf_print("Array gain table len not correct"); + WMI_LOGE("Array gain table len not correct"); return QDF_STATUS_E_FAILURE; } @@ -4069,7 +4020,7 @@ send_set_mimogain_table_cmd_non_tlv(wmi_unified_t wmi_handle, len += roundup(param->tbl_len, sizeof(uint32_t)) - sizeof(uint32_t); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_pdev_set_mimogain_table_cmd *)wmi_buf_data(buf); @@ -4114,7 +4065,7 @@ send_set_ratepwr_chainmsk_cmd_non_tlv(wmi_unified_t wmi_handle, len += roundup(param->num_rate*sizeof(uint32_t), sizeof(uint32_t)); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_pdev_ratepwr_chainmsk_tbl_cmd *)wmi_buf_data(buf); @@ -4151,7 +4102,7 @@ send_set_macaddr_cmd_non_tlv(wmi_unified_t wmi_handle, len = sizeof(wmi_pdev_set_base_macaddr_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_pdev_set_base_macaddr_cmd *)wmi_buf_data(buf); @@ -4185,9 +4136,9 @@ send_pdev_scan_start_cmd_non_tlv(wmi_unified_t wmi_handle) int len = sizeof(wmi_pdev_scan_cmd); buf = wmi_buf_alloc(wmi_handle, len); - qdf_print("%s:", __func__); + WMI_LOGD("%s:", __func__); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_pdev_scan_cmd *)wmi_buf_data(buf); @@ -4217,9 +4168,9 @@ send_pdev_scan_end_cmd_non_tlv(wmi_unified_t wmi_handle) int len = sizeof(wmi_pdev_scan_cmd); buf = wmi_buf_alloc(wmi_handle, len); - qdf_print("%s:", __func__); + WMI_LOGD("%s:", __func__); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_pdev_scan_cmd *)wmi_buf_data(buf); @@ -4248,7 +4199,7 @@ send_set_acparams_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } @@ -4279,7 +4230,7 @@ send_set_vap_dscp_tid_map_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len_vdev); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -4289,7 +4240,7 @@ send_set_vap_dscp_tid_map_cmd_non_tlv(wmi_unified_t wmi_handle, cmd_vdev->vdev_id = param->vdev_id; - qdf_print("Setting dscp for vap id: %d", cmd_vdev->vdev_id); + WMI_LOGD("Setting dscp for vap id: %d", cmd_vdev->vdev_id); return wmi_unified_cmd_send(wmi_handle, buf, len_vdev, WMI_VDEV_SET_DSCP_TID_MAP_CMDID); } @@ -4311,7 +4262,7 @@ send_proxy_ast_reserve_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_pdev_reserve_ast_entry_cmd *)wmi_buf_data(buf); @@ -4319,7 +4270,7 @@ send_proxy_ast_reserve_cmd_non_tlv(wmi_unified_t wmi_handle, cmd->key_id = 0; cmd->mcast = 0; - qdf_print("%s macaddr=%s key_id=%d mcast=%d", __func__, + WMI_LOGD("%s macaddr=%s key_id=%d mcast=%d", __func__, ether_sprintf(param->macaddr), cmd->key_id, cmd->mcast); return wmi_unified_cmd_send(wmi_handle, buf, len, @@ -4357,7 +4308,7 @@ send_pdev_fips_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -4464,7 +4415,7 @@ send_pdev_fips_cmd_non_tlv(wmi_unified_t wmi_handle, } else { cmd->mode = FIPS_ENGINE_AES_CTR; } - qdf_print("Key len = %d, Data len = %d", + WMI_LOGD("Key len = %d, Data len = %d", cmd->key_len, cmd->data_len); print_hex_dump(KERN_DEBUG, "Key: ", DUMP_PREFIX_NONE, 16, 1, @@ -4474,9 +4425,9 @@ send_pdev_fips_cmd_non_tlv(wmi_unified_t wmi_handle, retval = wmi_unified_cmd_send(wmi_handle, buf, len, WMI_PDEV_FIPS_CMDID); - qdf_print("%s return value %d", __func__, retval); + WMI_LOGD("%s return value %d", __func__, retval); } else { - qdf_print("\n%s:%d Key or Data is NULL", __func__, __LINE__); + WMI_LOGE("\n%s:%d Key or Data is NULL", __func__, __LINE__); retval = -EFAULT; } @@ -4500,7 +4451,7 @@ send_pdev_set_chan_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -4533,13 +4484,13 @@ send_pdev_set_chan_cmd_non_tlv(wmi_unified_t wmi_handle, if ((param->phy_mode == MODE_11AC_VHT80_80) || (param->phy_mode == MODE_11AC_VHT160)) { - qdf_print( + WMI_LOGD( "WMI channel freq=%d, mode=%x band_center_freq1=%d band_center_freq2=%d", cmd->chan.mhz, WMI_GET_CHANNEL_MODE(&cmd->chan), cmd->chan.band_center_freq1, cmd->chan.band_center_freq2); } else { - qdf_print("WMI channel freq=%d, mode=%x band_center_freq1=%d\n" + WMI_LOGD("WMI channel freq=%d, mode=%x band_center_freq1=%d\n" , cmd->chan.mhz, WMI_GET_CHANNEL_MODE(&cmd->chan), cmd->chan.band_center_freq1); @@ -4569,7 +4520,7 @@ send_mcast_group_update_cmd_non_tlv(wmi_unified_t wmi_handle, len = sizeof(wmi_peer_mcast_group_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_peer_mcast_group_cmd *) wmi_buf_data(buf); @@ -4667,7 +4618,7 @@ send_periodic_chan_stats_config_cmd_non_tlv(wmi_unified_t wmi_handle, len = sizeof(wmi_set_periodic_channel_stats_config); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s: Unable to allocate merory", __func__); + WMI_LOGE("%s: Unable to allocate merory", __func__); return QDF_STATUS_E_NOMEM; } cmd = (wmi_set_periodic_channel_stats_config *) wmi_buf_data(buf); @@ -4678,7 +4629,7 @@ send_periodic_chan_stats_config_cmd_non_tlv(wmi_unified_t wmi_handle, WMI_SET_PERIODIC_CHANNEL_STATS_CONFIG); if (error) - qdf_print(" %s :WMI Failed", __func__); + WMI_LOGE(" %s :WMI Failed", __func__); return error; } @@ -4811,7 +4762,7 @@ send_packet_power_info_get_cmd_non_tlv(wmi_unified_t wmi_handle, cmd->hw_rate = param->hw_rate; cmd->rsvd = 0x0; - WMI_LOGD("%s[%d] commandID %d, wmi_pdev_get_tpc_cmd=0x%x," + WMI_LOGE("%s[%d] commandID %d, wmi_pdev_get_tpc_cmd=0x%x," "rate_flags: 0x%x, nss: %d, preamble: %d, hw_rate: %d\n", __func__, __LINE__, WMI_PDEV_GET_TPC_CMDID, *((u_int32_t *)cmd), cmd->rate_flags, cmd->nss, cmd->preamble, cmd->hw_rate); @@ -4899,14 +4850,14 @@ send_rtt_meas_req_test_cmd_non_tlv(wmi_unified_t wmi_handle, wmi_rtt_measreq_body *body; wmi_channel *w_chan; - qdf_print("%s: The request ID is: %d", __func__, param->req_id); + WMI_LOGD("%s: The request ID is: %d", __func__, param->req_id); len = sizeof(wmi_rtt_measreq_head) + param->req_num_req * sizeof(wmi_rtt_measreq_body); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("No WMI resource!"); + WMI_LOGE("No WMI resource!"); return QDF_STATUS_E_NOMEM; } @@ -4936,7 +4887,7 @@ send_rtt_meas_req_test_cmd_non_tlv(wmi_unified_t wmi_handle, /* qdf_mem_copy(peer, param->mac_addr, 6); - qdf_print("The mac_addr is" + WMI_LOGD("The mac_addr is" " %.2x:%.2x:%.2x:%.2x:%.2x:%.2x extra=%d", peer[0], peer[1], peer[2], peer[3], peer[4], peer[5], param->extra); @@ -4993,7 +4944,7 @@ send_rtt_meas_req_test_cmd_non_tlv(wmi_unified_t wmi_handle, } ret = wmi_unified_cmd_send(wmi_handle, buf, len, WMI_RTT_MEASREQ_CMDID); - qdf_print("send rtt cmd to FW with length %d and return %d", + WMI_LOGD("send rtt cmd to FW with length %d and return %d", len, ret); return QDF_STATUS_SUCCESS; } @@ -5037,7 +4988,7 @@ send_rtt_meas_req_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("No WMI resource!"); + WMI_LOGE("No WMI resource!"); return QDF_STATUS_E_FAILURE; } @@ -5131,7 +5082,7 @@ send_rtt_meas_req_cmd_non_tlv(wmi_unified_t wmi_handle, ret = wmi_unified_cmd_send(wmi_handle, buf, len, WMI_RTT_MEASREQ_CMDID); - qdf_print("send rtt cmd to FW with length %d and return %d", + WMI_LOGD("send rtt cmd to FW with length %d and return %d", len, ret); return ret; } @@ -5155,7 +5106,7 @@ send_rtt_keepalive_req_cmd_non_tlv(wmi_unified_t wmi_handle, len = sizeof(wmi_rtt_keepalive_cmd); buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("No WMI resource"); + WMI_LOGE("No WMI resource"); return QDF_STATUS_E_FAILURE; } ptr = (uint8_t *)wmi_buf_data(buf); @@ -5177,7 +5128,7 @@ send_rtt_keepalive_req_cmd_non_tlv(wmi_unified_t wmi_handle, ret = wmi_unified_cmd_send(wmi_handle, buf, len, WMI_RTT_KEEPALIVE_CMDID); - qdf_print("send rtt keepalive cmd to FW with length %d and return %d\n" + WMI_LOGD("send rtt keepalive cmd to FW with length %d and return %d\n" , len, ret); param->req_id++; @@ -5208,7 +5159,7 @@ send_lci_set_cmd_non_tlv(wmi_unified_t wmi_handle, /* colocated_bss[1] contains num of vaps */ /* Provide colocated bssid subIE only when there are 2 vaps or more */ if (param->colocated_bss[1] > 1) { - qdf_print("%s: Adding %d co-located BSSIDs to LCI data", + WMI_LOGD("%s: Adding %d co-located BSSIDs to LCI data", __func__, param->colocated_bss[1]); /* Convert num_vaps to octets: 6*Num_of_vap + 1 (Max BSSID Indicator field) */ @@ -5219,15 +5170,15 @@ send_lci_set_cmd_non_tlv(wmi_unified_t wmi_handle, param->colocated_bss, colocated_bss_len); rtt_req->co_located_bssid_len = colocated_bss_len; - qdf_print("%s: co_located_bssid_len: %d", __func__, + WMI_LOGD("%s: co_located_bssid_len: %d", __func__, param->colocated_bss[1] + 2); } else { - qdf_print("No co-located BSSID was added to LCI data"); + WMI_LOGD("No co-located BSSID was added to LCI data"); } buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("No WMI resource!"); + WMI_LOGE("No WMI resource!"); return QDF_STATUS_E_FAILURE; } @@ -5295,7 +5246,7 @@ send_lcr_set_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("No WMI resource!"); + WMI_LOGE("No WMI resource!"); return QDF_STATUS_E_FAILURE; } @@ -5327,7 +5278,7 @@ send_start_oem_data_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, data_len); if (!buf) { - qdf_print("%s: No WMI resource!", __func__); + WMI_LOGE("%s: No WMI resource!", __func__); return QDF_STATUS_E_FAILURE; } @@ -5339,7 +5290,7 @@ send_start_oem_data_cmd_non_tlv(wmi_unified_t wmi_handle, if (wmi_unified_cmd_send(wmi_handle, buf, data_len, WMI_OEM_REQ_CMDID)) { - qdf_print("%s: ERROR: Host unable to send LOWI request to FW", + WMI_LOGE("%s: ERROR: Host unable to send LOWI request to FW", __func__); wmi_buf_free(buf); return QDF_STATUS_E_FAILURE; @@ -5363,7 +5314,7 @@ send_get_user_position_cmd_non_tlv(wmi_unified_t wmi_handle, uint32_t value) buf = wmi_buf_alloc(wmi_handle, sizeof(wmi_peer_gid_userpos_list_cmd)); if (!buf) { - qdf_print("No WMI resource!"); + WMI_LOGE("No WMI resource!"); return QDF_STATUS_E_FAILURE; } qdf_nbuf_put_tail(buf, sizeof(wmi_peer_gid_userpos_list_cmd)); @@ -5396,7 +5347,7 @@ send_reset_peer_mumimo_tx_count_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, sizeof(wmi_peer_txmu_rstcnt_cmd)); if (!buf) { - qdf_print("No WMI resource!"); + WMI_LOGE("No WMI resource!"); return QDF_STATUS_E_FAILURE; } qdf_nbuf_put_tail(buf, sizeof(wmi_peer_txmu_rstcnt_cmd)); @@ -5428,7 +5379,7 @@ send_get_peer_mumimo_tx_count_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, sizeof(wmi_peer_txmu_cnt_cmd)); if (!buf) { - qdf_print("No WMI resource!"); + WMI_LOGE("No WMI resource!"); return QDF_STATUS_E_FAILURE; } qdf_nbuf_put_tail(buf, sizeof(wmi_peer_txmu_cnt_cmd)); @@ -5462,7 +5413,7 @@ send_pdev_caldata_version_check_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_pdev_check_cal_version_cmd *)wmi_buf_data(buf); @@ -5493,7 +5444,7 @@ send_btcoex_wlan_priority_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_btcoex_cfg_cmd *) wmi_buf_data(buf); @@ -5525,7 +5476,7 @@ send_btcoex_duty_cycle_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (wmi_btcoex_cfg_cmd *) wmi_buf_data(buf); @@ -5556,7 +5507,7 @@ send_coex_ver_cfg_cmd_non_tlv(wmi_unified_t wmi_handle, coex_ver_cfg_t *param) buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd = (coex_ver_cfg_t *)wmi_buf_data(buf); @@ -5592,7 +5543,7 @@ send_smart_logging_enable_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -5633,7 +5584,7 @@ send_smart_logging_fatal_cmd_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -5740,7 +5691,7 @@ static QDF_STATUS init_cmd_send_non_tlv(wmi_unified_t wmi_handle, mem_chunk_len = (sizeof(wlan_host_memory_chunk) * MAX_MEM_CHUNKS); buf = wmi_buf_alloc(wmi_handle, len + mem_chunk_len); if (!buf) { - qdf_print("%s: wmi_buf_alloc failed", __func__); + WMI_LOGE("%s: wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } @@ -5753,7 +5704,7 @@ static QDF_STATUS init_cmd_send_non_tlv(wmi_unified_t wmi_handle, host_mem_chunks[idx].ptr = param->mem_chunks[idx].paddr; host_mem_chunks[idx].size = param->mem_chunks[idx].len; host_mem_chunks[idx].req_id = param->mem_chunks[idx].req_id; - qdf_print("chunk %d len %d requested , ptr 0x%x", + WMI_LOGD("chunk %d len %d requested , ptr 0x%x", idx, cmd->host_mem_chunks[idx].size, cmd->host_mem_chunks[idx].ptr); } @@ -5787,13 +5738,13 @@ static QDF_STATUS send_ext_resource_config_non_tlv(wmi_unified_t wmi_handle, buf = wmi_buf_alloc(wmi_handle, len + (sizeof(wmi_ext_resource_config) + PAD_LENGTH)); if (!buf) { - qdf_print("%s:wmi_buf_alloc failed", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed", __func__); return QDF_STATUS_E_FAILURE; } cmd_cfg = (wmi_ext_resource_config *)wmi_buf_data(buf); qdf_mem_copy(cmd_cfg, ext_cfg, sizeof(wmi_ext_resource_config)); - qdf_print("\nSending Ext resource cfg: HOST PLATFORM as %d\n" + WMI_LOGD("\nSending Ext resource cfg: HOST PLATFORM as %d\n" "fw_feature_bitmap as %x to TGT", cmd_cfg->host_platform_config, cmd_cfg->fw_feature_bitmap); @@ -6130,7 +6081,7 @@ static uint32_t ready_extract_init_status_non_tlv(wmi_unified_t wmi_hdl, void *evt_buf) { wmi_ready_event *ev = (wmi_ready_event *) evt_buf; - qdf_print("Version = %d %d status = %d", ev->sw_version, + WMI_LOGD("Version = %d %d status = %d", ev->sw_version, ev->abi_version, ev->status); return ev->status; } @@ -7207,7 +7158,7 @@ static uint8_t *copy_rtt_report_cfr(wmi_host_rtt_meas_event *ev, MEM_ALIGN(TONE_VHT_80M) }; if (hdump == NULL) { - qdf_print("Destination buffer is NULL"); + WMI_LOGD("Destination buffer is NULL"); return p; } temp1 = temp2 = hdump; @@ -7303,7 +7254,7 @@ static QDF_STATUS extract_rtt_ev_non_tlv(wmi_unified_t wmi_handle, void *evt_buf ev->rssi3 = 0; p = copy_rtt_report_cfr(ev, report_type, p, hdump, hdump_len); } else { - qdf_print("Error!body is NULL"); + WMI_LOGE("Error!body is NULL"); return QDF_STATUS_E_FAILURE; } @@ -7384,15 +7335,15 @@ static QDF_STATUS extract_comb_phyerr_non_tlv(wmi_unified_t wmi_handle, void *ev data = (uint8_t *) evt_buf; #if ATH_PHYERR_DEBUG - qdf_print("%s: data=%pK, datalen=%d", __func__, data, datalen); + WMI_LOGD("%s: data=%pK, datalen=%d", __func__, data, datalen); /* XXX for now */ for (i = 0; i < datalen; i++) { - qdf_print("%02X ", data[i]); + WMI_LOGD("%02X ", data[i]); if (i % 32 == 31) - qdf_print("\n"); + WMI_LOGD("\n"); } - qdf_print("\n"); + WMI_LOGD("\n"); #endif /* ATH_PHYERR_DEBUG */ /* Ensure it's at least the size of the header */ @@ -7403,7 +7354,7 @@ static QDF_STATUS extract_comb_phyerr_non_tlv(wmi_unified_t wmi_handle, void *ev pe = (wmi_comb_phyerr_rx_event *) data; #if ATH_PHYERR_DEBUG - qdf_print("%s: pe->hdr.num_phyerr_events=%d", + WMI_LOGD("%s: pe->hdr.num_phyerr_events=%d", __func__, pe->hdr.num_phyerr_events); #endif /* ATH_PHYERR_DEBUG */ @@ -7459,7 +7410,7 @@ static QDF_STATUS extract_single_phyerr_non_tlv(wmi_unified_t wmi_handle, if (n < datalen) { /* ensure there's at least space for the header */ if ((datalen - n) < sizeof(ev->hdr)) { - qdf_print( + WMI_LOGD( "%s: not enough space? (datalen=%d, n=%d, hdr=%zd bytes", __func__, datalen, @@ -7486,13 +7437,13 @@ static QDF_STATUS extract_single_phyerr_non_tlv(wmi_unified_t wmi_handle, * If "int" is 64 bits then this becomes a moot point. */ if (ev->hdr.buf_len > PHYERROR_MAX_BUFFER_LENGTH) { - qdf_print("%s: buf_len is garbage? (0x%x\n)", + WMI_LOGD("%s: buf_len is garbage? (0x%x\n)", __func__, ev->hdr.buf_len); return QDF_STATUS_SUCCESS; } if (n + ev->hdr.buf_len > datalen) { - qdf_print("%s: buf_len exceeds available space (n=%d, buf_len=%d, datalen=%d", + WMI_LOGD("%s: buf_len exceeds available space (n=%d, buf_len=%d, datalen=%d", __func__, n, ev->hdr.buf_len, @@ -7503,7 +7454,7 @@ static QDF_STATUS extract_single_phyerr_non_tlv(wmi_unified_t wmi_handle, phyerr->phy_err_code = WMI_UNIFIED_PHYERRCODE_GET(&ev->hdr); #if ATH_PHYERR_DEBUG - qdf_print("%s: len=%d, tsf=0x%08x, rssi = 0x%x/0x%x/0x%x/0x%x, comb rssi = 0x%x, phycode=%d", + WMI_LOGD("%s: len=%d, tsf=0x%08x, rssi = 0x%x/0x%x/0x%x/0x%x, comb rssi = 0x%x, phycode=%d", __func__, ev->hdr.buf_len, ev->hdr.tsf_timestamp, @@ -7519,7 +7470,7 @@ static QDF_STATUS extract_single_phyerr_non_tlv(wmi_unified_t wmi_handle, * a variable but glued together into a macro field definition. * Grr. :-) */ - qdf_print( + WMI_LOGD( "%s: chain 0: raw=0x%08x; pri20=%d sec20=%d sec40=%d sec80=%d", __func__, ev->hdr.rssi_chain0, @@ -7528,7 +7479,7 @@ static QDF_STATUS extract_single_phyerr_non_tlv(wmi_unified_t wmi_handle, WMI_UNIFIED_RSSI_CHAN_GET(&ev->hdr, 0, SEC40), WMI_UNIFIED_RSSI_CHAN_GET(&ev->hdr, 0, SEC80)); - qdf_print( + WMI_LOGD( "%s: chain 1: raw=0x%08x: pri20=%d sec20=%d sec40=%d sec80=%d", __func__, ev->hdr.rssi_chain1, @@ -7537,7 +7488,7 @@ static QDF_STATUS extract_single_phyerr_non_tlv(wmi_unified_t wmi_handle, WMI_UNIFIED_RSSI_CHAN_GET(&ev->hdr, 1, SEC40), WMI_UNIFIED_RSSI_CHAN_GET(&ev->hdr, 1, SEC80)); - qdf_print( + WMI_LOGD( "%s: chain 2: raw=0x%08x: pri20=%d sec20=%d sec40=%d sec80=%d", __func__, ev->hdr.rssi_chain2, @@ -7546,7 +7497,7 @@ static QDF_STATUS extract_single_phyerr_non_tlv(wmi_unified_t wmi_handle, WMI_UNIFIED_RSSI_CHAN_GET(&ev->hdr, 2, SEC40), WMI_UNIFIED_RSSI_CHAN_GET(&ev->hdr, 2, SEC80)); - qdf_print( + WMI_LOGD( "%s: chain 3: raw=0x%08x: pri20=%d sec20=%d sec40=%d sec80=%d", __func__, ev->hdr.rssi_chain3, @@ -7556,7 +7507,7 @@ static QDF_STATUS extract_single_phyerr_non_tlv(wmi_unified_t wmi_handle, WMI_UNIFIED_RSSI_CHAN_GET(&ev->hdr, 3, SEC80)); - qdf_print( + WMI_LOGD( "%s: freq_info_1=0x%08x, freq_info_2=0x%08x", __func__, ev->hdr.freq_info_1, ev->hdr.freq_info_2); @@ -7564,7 +7515,7 @@ static QDF_STATUS extract_single_phyerr_non_tlv(wmi_unified_t wmi_handle, * The NF chain values are signed and are negative - hence * the cast evilness. */ - qdf_print( + WMI_LOGD( "%s: nfval[1]=0x%08x, nfval[2]=0x%08x, nf=%d/%d/%d/%d, " "freq1=%d, freq2=%d, cw=%d", __func__, @@ -8592,7 +8543,7 @@ QDF_STATUS send_wds_entry_list_cmd_non_tlv(wmi_unified_t wmi_handle) if (wmi_unified_cmd_send(wmi_handle, buf, 32, WMI_PDEV_WDS_ENTRY_LIST_CMDID) != QDF_STATUS_SUCCESS) { - qdf_print("%s: send failed", __func__); + WMI_LOGE("%s: send failed", __func__); wmi_buf_free(buf); return QDF_STATUS_E_FAILURE; } @@ -8620,7 +8571,7 @@ static QDF_STATUS send_dfs_average_radar_params_cmd_non_tlv( buf = wmi_buf_alloc(wmi_handle, len); if (!buf) { - WMI_LOGD("%s:wmi_buf_alloc failed\n", __func__); + WMI_LOGE("%s:wmi_buf_alloc failed\n", __func__); return QDF_STATUS_E_FAILURE; } @@ -8639,7 +8590,7 @@ static QDF_STATUS send_dfs_average_radar_params_cmd_non_tlv( if (wmi_unified_cmd_send(wmi_handle, buf, len, WMI_HOST_DFS_RADAR_FOUND_CMDID)) { - WMI_LOGD("%s:Failed to send WMI command\n", __func__); + WMI_LOGE("%s:Failed to send WMI command\n", __func__); wmi_buf_free(buf); return QDF_STATUS_E_FAILURE; } @@ -8671,7 +8622,7 @@ extract_dfs_status_from_fw_non_tlv(wmi_unified_t wmi_handle, return QDF_STATUS_SUCCESS; } - WMI_LOGD("%s..Invalid status code : %d received\n", __func__, + WMI_LOGE("%s..Invalid status code : %d received\n", __func__, ev->status); return QDF_STATUS_E_FAILURE; @@ -8685,7 +8636,7 @@ extract_dfs_status_from_fw_non_tlv(wmi_unified_t wmi_handle, */ void wmi_non_tlv_pdev_id_conversion_enable(wmi_unified_t wmi_handle) { - qdf_print("PDEV conversion Not Available"); + WMI_LOGD("PDEV conversion Not Available"); } struct wmi_ops non_tlv_ops = { @@ -9637,7 +9588,7 @@ void wmi_non_tlv_attach(struct wmi_unified *wmi_handle) /*(uint8 *)(*wmi_id_to_name)(uint32_t cmd_id);*/ #endif #else - qdf_print("%s: Not supported", __func__); + WMI_LOGD("%s: Not supported", __func__); #endif } qdf_export_symbol(wmi_non_tlv_attach);