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
此提交包含在:
@@ -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;
|
||||
|
新增問題並參考
封鎖使用者