qcacmn: Fix TX Bus bundle error for SDIO WLAN
For SDIO WLAN, the creditsize is different for data EP than other EPs. This change using alt credit size to replace of original credit size. CRs-Fixed: 2072158 Change-Id: I105db55da66e6123b2a53326d53758c24eca21ec
This commit is contained in:

committed by
pramod kotreshappa

orang tua
f8c766c957
melakukan
37cf36d2e6
@@ -564,6 +564,7 @@ QDF_STATUS htc_wait_target(HTC_HANDLE HTCHandle)
|
||||
(int)HTC_GET_FIELD(rdy_msg, HTC_READY_MSG, CREDITSIZE);
|
||||
target->MaxMsgsPerHTCBundle =
|
||||
(uint8_t) pReadyMsg->MaxMsgsPerHTCBundle;
|
||||
UPDATE_ALT_CREDIT(target, pReadyMsg->AltDataCreditSize);
|
||||
/* for old fw this value is set to 0. But the minimum value
|
||||
* should be 1, i.e., no bundling
|
||||
*/
|
||||
|
@@ -57,6 +57,12 @@ extern "C" {
|
||||
#define HTC_MAX_MSG_PER_BUNDLE_TX 32
|
||||
#endif
|
||||
|
||||
#ifdef HIF_SDIO
|
||||
#define UPDATE_ALT_CREDIT(tar, val) (tar->AltDataCreditSize = (uint16_t) val)
|
||||
#else
|
||||
#define UPDATE_ALT_CREDIT(tar, val) /* no-op */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* HTC_MAX_TX_BUNDLE_SEND_LIMIT -
|
||||
* This value is in units of tx frame fragments.
|
||||
|
Reference in New Issue
Block a user