Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7035a365 authored by Srinivas Girigowda's avatar Srinivas Girigowda
Browse files

qcacmn: Replace WMI_LOGI() with wmi_* appropriate log level

Replace WMI_LOGI() with wmi_* appropriate log level.

Change-Id: I7b0c32a2aefc5eb300348edbc6a60e7ad0401439
CRs-Fixed: 2774563
parent bcbcbbf3
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -1932,8 +1932,7 @@ 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) {
		WMI_LOGI("event handler already registered 0x%x",
			 evt_id);
		wmi_info("event handler already registered 0x%x", evt_id);
		return QDF_STATUS_E_FAILURE;
	}
	if (soc->max_event_idx == WMI_UNIFIED_MAX_EVENT) {
@@ -1980,7 +1979,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) {
		WMI_LOGI("event handler is not registered: evt id 0x%x",
		wmi_warn("event handler is not registered: evt id 0x%x",
			 evt_id);
		return QDF_STATUS_E_FAILURE;
	}
@@ -2018,15 +2017,14 @@ 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) {
		WMI_LOGI("Event id %d is unavailable",
			 event_id);
		wmi_err("Event id %d is unavailable", event_id);
		return QDF_STATUS_E_FAILURE;
	}
	evt_id = wmi_handle->wmi_events[event_id];

	idx = wmi_unified_get_event_handler_ix(wmi_handle, evt_id);
	if (idx == -1) {
		WMI_LOGI("event handler is not registered: evt id 0x%x",
		wmi_err("event handler is not registered: evt id 0x%x",
			 evt_id);
		return QDF_STATUS_E_FAILURE;
	}
+1 −1
Original line number Diff line number Diff line
@@ -1587,7 +1587,7 @@ bool wmi_service_enabled(wmi_unified_t wmi_handle, uint32_t service_id)
				wmi_handle->services[service_id]);
		}
	} else {
		WMI_LOGI("Service %d not supported", service_id);
		wmi_info("Service %d not supported", service_id);
	}

	return false;
+5 −6
Original line number Diff line number Diff line
@@ -739,8 +739,7 @@ QDF_STATUS wmi_get_buf_extscan_start_cmd(wmi_unified_t wmi_handle,
	cmd->configuration_flags = 0;
	if (pstart->configuration_flags & WMI_EXTSCAN_LP_EXTENDED_BATCHING)
		cmd->configuration_flags |= WMI_EXTSCAN_EXTENDED_BATCHING_EN;
	WMI_LOGI("%s: configuration_flags: 0x%x", __func__,
			cmd->configuration_flags);
	wmi_debug("configuration_flags: 0x%x", cmd->configuration_flags);
#ifdef FEATURE_WLAN_EXTSCAN
	cmd->min_rest_time = WMI_EXTSCAN_REST_TIME;
	cmd->max_rest_time = WMI_EXTSCAN_REST_TIME;
@@ -846,8 +845,8 @@ QDF_STATUS wmi_get_buf_extscan_start_cmd(wmi_unified_t wmi_handle,
			dest_blist->configuration_flags =
				WMI_EXTSCAN_BUCKET_CACHE_RESULTS;

		WMI_LOGI("%s: ntfy_extscan_events:%u cfg_flags:%u fwd_flags:%u",
			__func__, dest_blist->notify_extscan_events,
		wmi_debug("ntfy_extscan_events:%u cfg_flags:%u fwd_flags:%u",
			  dest_blist->notify_extscan_events,
			  dest_blist->configuration_flags,
			  dest_blist->forwarding_flags);

+9 −10
Original line number Diff line number Diff line
@@ -275,16 +275,15 @@ 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_LOGI("%s: vdev_id=%d, channel_count=%d, schedule_size=%d, flag=%x",
		 __func__, config->vdev_id, config->channel_count,
	wmi_debug("vdev_id=%d, channel_count=%d, schedule_size=%d, flag=%x",
		 config->vdev_id, config->channel_count,
		 config->schedule_size, config->flags);

	for (i = 0; i < config->channel_count; i++) {
		WMI_LOGI("%s: channel info for channel %d"
		wmi_debug("channel info for channel %d"
			" chan_freq=%d, bandwidth=%d, " QDF_MAC_ADDRESS_STR
			" max_pwr=%d, min_pwr=%d, reg_pwr=%d, antenna_max=%d, "
			"flags=%d", __func__, i, config->channels[i].chan_freq,
			"flags=%d", i, config->channels[i].chan_freq,
			config->channels[i].bandwidth,
			QDF_MAC_ADDR_REF(
				config->channels[i].mac_address.bytes),
@@ -296,9 +295,9 @@ static QDF_STATUS fake_ocb_set_config_cmd_tlv(wmi_unified_t wmi_handle,
	}

	for (i = 0; i < config->schedule_size; i++) {
		WMI_LOGI("%s: schedule info for channel %d: "
		wmi_debug("schedule info for channel %d: "
			"chan_fre=%d, total_duration=%d, guard_intreval=%d",
			__func__, i, config->schedule[i].chan_freq,
			i, config->schedule[i].chan_freq,
			config->schedule[i].total_duration,
			config->schedule[i].guard_interval);
	}
@@ -396,12 +395,12 @@ 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_LOGI("%s: vdev_id %d freq %d chanmode %d ch_info is_dfs %d "

	wmi_debug("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 "
		"Tx SS %d, Rx SS %d, ldpc_rx: %d, cac %d, regd %d, HE ops: %d",
		__func__, (int)req->vdev_id, req->channel.mhz,
		(int)req->vdev_id, req->channel.mhz,
		req->channel.phy_mode,
		(int)req->channel.dfs_set, req->beacon_intval, req->dtim_period,
		req->channel.cfreq1, req->channel.cfreq2,
+2 −2
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ static QDF_STATUS send_set_p2pgo_noa_req_cmd_tlv(wmi_unified_t wmi_handle,
	noa_discriptor->interval = noa->interval;
	noa_discriptor->start_time = 0;

	WMI_LOGI("SET P2P GO NOA:vdev_id:%d count:%d duration:%d interval:%d",
	wmi_debug("SET P2P GO NOA:vdev_id:%d count:%d duration:%d interval:%d",
		 cmd->vdev_id, noa->count, noa_discriptor->duration,
		 noa->interval);
	wmi_mtrace(WMI_FWTEST_P2P_SET_NOA_PARAM_CMDID, cmd->vdev_id, 0);
@@ -119,7 +119,7 @@ static QDF_STATUS send_set_p2pgo_oppps_req_cmd_tlv(wmi_unified_t wmi_handle,
		WMI_UNIFIED_OPPPS_ATTR_ENABLED_SET(cmd);

	WMI_UNIFIED_OPPPS_ATTR_CTWIN_SET(cmd, oppps->ctwindow);
	WMI_LOGI("SET P2P GO OPPPS:vdev_id:%d ctwindow:%d",
	wmi_debug("SET P2P GO OPPPS:vdev_id:%d ctwindow:%d",
		 cmd->vdev_id, oppps->ctwindow);
	wmi_mtrace(WMI_P2P_SET_OPPPS_PARAM_CMDID, cmd->vdev_id, 0);
	status = wmi_unified_cmd_send(wmi_handle, buf, sizeof(*cmd),
Loading