|
@@ -398,10 +398,12 @@ static void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
|
|
|
|
|
|
if (pdev->cfg.is_high_latency) {
|
|
|
if (!pdev->cfg.default_tx_comp_req) {
|
|
|
+ HTT_TX_MUTEX_ACQUIRE(&pdev->credit_mutex);
|
|
|
qdf_atomic_add(credit_delta,
|
|
|
&pdev->htt_tx_credit.
|
|
|
target_delta);
|
|
|
credit_delta = htt_tx_credit_update(pdev);
|
|
|
+ HTT_TX_MUTEX_RELEASE(&pdev->credit_mutex);
|
|
|
}
|
|
|
if (credit_delta)
|
|
|
ol_tx_target_credit_update(
|
|
@@ -457,9 +459,11 @@ static void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
|
|
|
|
|
|
if (pdev->cfg.is_high_latency &&
|
|
|
!pdev->cfg.default_tx_comp_req) {
|
|
|
+ HTT_TX_MUTEX_ACQUIRE(&pdev->credit_mutex);
|
|
|
qdf_atomic_add(htt_credit_delta,
|
|
|
&pdev->htt_tx_credit.target_delta);
|
|
|
htt_credit_delta = htt_tx_credit_update(pdev);
|
|
|
+ HTT_TX_MUTEX_RELEASE(&pdev->credit_mutex);
|
|
|
}
|
|
|
|
|
|
htt_tx_group_credit_process(pdev, msg_word);
|
|
@@ -682,10 +686,12 @@ void htt_t2h_msg_handler(void *context, HTC_PACKET *pkt)
|
|
|
if (!pdev->cfg.default_tx_comp_req) {
|
|
|
int credit_delta;
|
|
|
|
|
|
+ HTT_TX_MUTEX_ACQUIRE(&pdev->credit_mutex);
|
|
|
qdf_atomic_add(num_msdus,
|
|
|
&pdev->htt_tx_credit.
|
|
|
target_delta);
|
|
|
credit_delta = htt_tx_credit_update(pdev);
|
|
|
+ HTT_TX_MUTEX_RELEASE(&pdev->credit_mutex);
|
|
|
|
|
|
if (credit_delta) {
|
|
|
ol_tx_target_credit_update(
|