qcacmn: Use INI configured WMI credit count

Use INI configured WMI credit for exchanging WMI messages.
Make sure INI configured value is less than FW advertised capability.
This credit configuration should be non zero.

Change-Id: I26b2dfbee0fc095aca3d37f21cd22c974189bb49
CRs-Fixed: 2411028
This commit is contained in:
Manjunathappa Prakash
2019-03-27 15:23:38 -07:00
کامیت شده توسط nshrivas
والد eee26f7b76
کامیت 0159f81bca
2فایلهای تغییر یافته به همراه15 افزوده شده و 3 حذف شده

مشاهده پرونده

@@ -575,8 +575,19 @@ QDF_STATUS htc_wait_target(HTC_HANDLE HTCHandle)
break;
}
target->TotalTransmitCredits =
HTC_GET_FIELD(rdy_msg, HTC_READY_MSG, CREDITCOUNT);
target->TotalTransmitCredits = HTC_GET_FIELD(rdy_msg,
HTC_READY_MSG, CREDITCOUNT);
if (target->HTCInitInfo.cfg_wmi_credit_cnt &&
(target->HTCInitInfo.cfg_wmi_credit_cnt <
target->TotalTransmitCredits))
/*
* If INI configured value is less than FW advertised,
* then use INI configured value, otherwise use FW
* advertised.
*/
target->TotalTransmitCredits =
target->HTCInitInfo.cfg_wmi_credit_cnt;
target->TargetCreditSize =
(int)HTC_GET_FIELD(rdy_msg, HTC_READY_MSG, CREDITSIZE);
target->MaxMsgsPerHTCBundle =