diff --git a/htc/htc.c b/htc/htc.c index af70af46b1..96bf64b8d0 100644 --- a/htc/htc.c +++ b/htc/htc.c @@ -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 */ diff --git a/htc/htc_internal.h b/htc/htc_internal.h index 9c27af10ae..097055bb8d 100644 --- a/htc/htc_internal.h +++ b/htc/htc_internal.h @@ -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.