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

Commit 48175fd4 authored by Abhishek Singh's avatar Abhishek Singh Committed by nshrivas
Browse files

qcacld-3.0: Optimize logs in scan path

Remove redundant logs and optimize the logs in scan path.

Change-Id: Ie6ff84b1a832a29d5fe01c649be4b8143bd13c94
CRs-Fixed: 2612637
parent d66b8a17
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -951,10 +951,8 @@ bool policy_mgr_is_dbs_scan_allowed(struct wlan_objmgr_psoc *psoc)
	}

	if (!policy_mgr_find_if_fw_supports_dbs(psoc) ||
	    !policy_mgr_find_if_hwlist_has_dbs(psoc)) {
		policy_mgr_debug("HW mode list has no DBS");
	    !policy_mgr_find_if_hwlist_has_dbs(psoc))
		return false;
	}

	policy_mgr_get_dual_mac_feature(psoc, &dbs_type);
	/*
+3 −8
Original line number Diff line number Diff line
@@ -1688,21 +1688,16 @@ void tdls_scan_done_callback(struct tdls_soc_priv_obj *tdls_soc)
		return;

	if (TDLS_SUPPORT_DISABLED == tdls_soc->tdls_current_mode) {
		tdls_debug("TDLS mode is disabled OR not enabled");
		tdls_debug_rl("TDLS mode is disabled OR not enabled");
		return;
	}

	/* if tdls was enabled before scan, re-enable tdls mode */
	if (TDLS_SUPPORT_IMP_MODE == tdls_soc->tdls_last_mode ||
	    TDLS_SUPPORT_EXT_CONTROL == tdls_soc->tdls_last_mode ||
	    TDLS_SUPPORT_EXP_TRIG_ONLY == tdls_soc->tdls_last_mode) {
		tdls_debug("revert tdls mode %d",
			   tdls_soc->tdls_last_mode);

	    TDLS_SUPPORT_EXP_TRIG_ONLY == tdls_soc->tdls_last_mode)
		tdls_set_current_mode(tdls_soc, tdls_soc->tdls_last_mode,
				      false,
				      TDLS_SET_MODE_SOURCE_SCAN);
	}
				      false, TDLS_SET_MODE_SOURCE_SCAN);
}

/**
+0 −4
Original line number Diff line number Diff line
@@ -23103,8 +23103,6 @@ static void wlan_hdd_chan_info_cb(struct scan_chan_info *info)
	struct scan_chan_info *chan;
	uint8_t idx;
	hdd_enter();
	hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
	if (wlan_hdd_validate_context(hdd_ctx) != 0) {
		hdd_err("hdd_ctx is invalid");
@@ -23133,8 +23131,6 @@ static void wlan_hdd_chan_info_cb(struct scan_chan_info *info)
		}
	}
	hdd_exit();
}
/**
+6 −8
Original line number Diff line number Diff line
@@ -15899,18 +15899,15 @@ static QDF_STATUS hdd_is_connection_in_progress_iterator(

	mac_handle = hdd_ctx->mac_handle;

	hdd_debug("Adapter with device mode %s(%d) exists",
		  qdf_opmode_str(adapter->device_mode),
		  adapter->device_mode);
	if (((QDF_STA_MODE == adapter->device_mode)
		|| (QDF_P2P_CLIENT_MODE == adapter->device_mode)
		|| (QDF_P2P_DEVICE_MODE == adapter->device_mode))
		&& (eConnectionState_Connecting ==
			(WLAN_HDD_GET_STATION_CTX_PTR(adapter))->
				conn_info.conn_state)) {
		hdd_debug("%pK(%d) Connection is in progress",
		hdd_debug("%pK(%d) mode %d Connection is in progress",
			  WLAN_HDD_GET_STATION_CTX_PTR(adapter),
			  adapter->vdev_id);
			  adapter->vdev_id, adapter->device_mode);

		context->out_vdev_id = adapter->vdev_id;
		context->out_reason = CONNECTION_IN_PROGRESS;
@@ -15927,9 +15924,9 @@ static QDF_STATUS hdd_is_connection_in_progress_iterator(
		     mac_handle,
		     adapter->vdev_id)) ||
		     hdd_is_roaming_in_progress(hdd_ctx)) {
		hdd_debug("%pK(%d) Reassociation in progress",
		hdd_debug("%pK(%d) mode %d Reassociation in progress",
			  WLAN_HDD_GET_STATION_CTX_PTR(adapter),
			  adapter->vdev_id);
			  adapter->vdev_id, adapter->device_mode);

		context->out_vdev_id = adapter->vdev_id;
		context->out_reason = REASSOC_IN_PROGRESS;
@@ -15977,7 +15974,8 @@ static QDF_STATUS hdd_is_connection_in_progress_iterator(
			return QDF_STATUS_E_ABORTED;
		}
		if (hdd_ctx->connection_in_progress) {
			hdd_debug("AP/GO: connection is in progress");
			hdd_debug("AP/GO: vdev %d connection is in progress",
				  adapter->vdev_id);
			context->out_reason = SAP_CONNECTION_IN_PROGRESS;
			context->out_vdev_id = adapter->vdev_id;
			context->connection_in_progress = true;
+0 −1
Original line number Diff line number Diff line
@@ -718,7 +718,6 @@ struct wireless_dev *__wlan_hdd_add_virtual_intf(struct wiphy *wiphy,
			wlan_abort_scan(hdd_ctx->pdev, INVAL_PDEV_ID,
					adapter->vdev_id, INVALID_SCAN_ID,
					false);
			hdd_debug("Abort Scan while adding virtual interface");
		}
	}

Loading