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

Commit 835c9658 authored by Surabhi Vishnoi's avatar Surabhi Vishnoi Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Do not ignore idle_shutdown in case of driver mode change

Allow idle shutdown in case it is triggered due to driver mode change
even if any of interface is up.

Change-Id: I29db749d40729a7e7633836bd23083f7652ac845
CRs-Fixed: 3106971
parent 08c87b4a
Loading
Loading
Loading
Loading
+12 −11
Original line number Diff line number Diff line
@@ -12262,6 +12262,9 @@ int hdd_psoc_idle_shutdown(struct device *dev)
		return -EINVAL;
	}

	if (is_mode_change_psoc_idle_shutdown)
		ret = __hdd_mode_change_psoc_idle_shutdown(hdd_ctx);
	else {
		/*
		 * This is to handle scenario in which platform driver triggers
		 * idle_shutdown if Deep Sleep/Hibernate entry notification is
@@ -12272,10 +12275,8 @@ int hdd_psoc_idle_shutdown(struct device *dev)
			return -EINVAL;
		}

	if (is_mode_change_psoc_idle_shutdown)
		ret = __hdd_mode_change_psoc_idle_shutdown(hdd_ctx);
	else
		ret =  __hdd_psoc_idle_shutdown(hdd_ctx);
	}

	return ret;
}