qcacmn: Update current pktlog state if pktlog enable fails
If user tries to enable pktlog multiple times, pktlog enable fails as the pktlog is already enabled. while returning failure, current pktlog state is not updated to PKTLOG_OPR_NOT_IN_PROGRESS in pktlog_enable api. Now if user tries to get pktlog using cat command driver returns resource busy from pktlog_enable as the current pktlog state is not set to PKTLOG_OPR_NOT_IN_PROGRESS. To address this issue, set the current pktlog state to PKTLOG_OPR_NOT_IN_PROGRESS in case of failure. Change-Id: I08e67c13e7a781340a97ad4c37308f3e61972c99 CRs-Fixed: 2278363
This commit is contained in:

committad av
nshrivas

förälder
ee8f625766
incheckning
d9b88605c5
@@ -619,6 +619,7 @@ static int __pktlog_enable(struct hif_opaque_softc *scn, int32_t log_state,
|
||||
return -EINVAL;
|
||||
}
|
||||
} else {
|
||||
pl_info->curr_pkt_state = PKTLOG_OPR_NOT_IN_PROGRESS;
|
||||
qdf_print("Unable to subscribe %d to the WDI %s\n",
|
||||
log_state, __func__);
|
||||
return -EINVAL;
|
||||
|
Referens i nytt ärende
Block a user