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

Commit 6b7c099f authored by jitiphil's avatar jitiphil Committed by nshrivas
Browse files

qcacld-3:0: Reset pkt state if already subscribed

While enabling packetlog, a check is kept to
identify the case where wdi subscription is
already done, but the packet state is not set
properly inside the check before returning.

Set the packet state properly inside the
check for wdi subscription before returning.

Change-Id: I532641b265a2b6ebe419e9d1bebc115f47ba8f9a
CRs-Fixed: 2271380
parent 855be2bc
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -479,8 +479,10 @@ int __pktlog_enable(struct hif_opaque_softc *scn, int32_t log_state,
				return -EINVAL;
			}
		} else {
			qdf_print("Unable to subscribe %d to the WDI %s\n",
				  log_state, __func__);
			pl_info->curr_pkt_state =
				PKTLOG_OPR_NOT_IN_PROGRESS;
			qdf_print("Already subscribed %s\n",
				  __func__);
			return -EINVAL;
		}