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

Commit 341d0a72 authored by Arun Kumar Khandavalli's avatar Arun Kumar Khandavalli Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Add a check for WLM latency manager support

Currently there is no check for WLM latency manager support,
while setting the latency level which may lead to undefined behavior.
To address the above issue add a check for WLM latency manager support
and return not supported to userspace.

Change-Id: Id095f162c1202c0a0926f4f73e553f46d4980543
CRs-Fixed: 2762357
parent a6727887
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -8045,7 +8045,7 @@ static int hdd_config_latency_level(struct hdd_adapter *adapter,
	QDF_STATUS status;
	QDF_STATUS status;
	if (!hdd_is_wlm_latency_manager_supported(hdd_ctx))
	if (!hdd_is_wlm_latency_manager_supported(hdd_ctx))
		return -EINVAL;
		return -ENOTSUPP;
	latency_level = nla_get_u16(attr);
	latency_level = nla_get_u16(attr);
	switch (latency_level) {
	switch (latency_level) {