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

Commit f5958f40 authored by Liangwei Dong's avatar Liangwei Dong Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Fix unnecessary log of sme_roaming_in_progress

During enumeration all adapters, if adapter is not "up",
it is unnecessary to check connecting or not. Otherwise,
the vdev is not created for the adapter and the
sme_roaming_in_progress will output "ROAM: incorrect vdev ID"
error message.

Change-Id: I3df5379a7d0b88c439d49711c36000717c7a433b
CRs-Fixed: 3002674
parent 46688f92
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -18342,6 +18342,7 @@ bool hdd_is_roaming_in_progress(struct hdd_context *hdd_ctx)
					   dbgid) {
		vdev_id = adapter->vdev_id;
		if (adapter->device_mode == QDF_STA_MODE &&
		    test_bit(SME_SESSION_OPENED, &adapter->event_flags) &&
		    (MLME_IS_ROAM_SYNCH_IN_PROGRESS(hdd_ctx->psoc, vdev_id) ||
		     MLME_IS_ROAMING_IN_PROG(hdd_ctx->psoc, vdev_id) ||
		     mlme_is_roam_invoke_in_progress(hdd_ctx->psoc,
@@ -18402,6 +18403,13 @@ static QDF_STATUS hdd_is_connection_in_progress_iterator(
	}

	mac_handle = hdd_ctx->mac_handle;
	if (!test_bit(SME_SESSION_OPENED, &adapter->event_flags) &&
	    (adapter->device_mode == QDF_STA_MODE ||
	     adapter->device_mode == QDF_P2P_CLIENT_MODE ||
	     adapter->device_mode == QDF_P2P_DEVICE_MODE ||
	     adapter->device_mode == QDF_P2P_GO_MODE ||
	     adapter->device_mode == QDF_SAP_MODE))
		return QDF_STATUS_SUCCESS;

	if (((QDF_STA_MODE == adapter->device_mode)
		|| (QDF_P2P_CLIENT_MODE == adapter->device_mode)