From d62af87cc1f296ba49d92d582663d0703407c06d Mon Sep 17 00:00:00 2001 From: Venkata Sharath Chandra Manchala Date: Tue, 26 Nov 2019 21:50:13 -0800 Subject: [PATCH] qcacmn: Increment/Decrement num_tx_outstanding Increment pdev->num_tx_outstanding when tx_desc is allocated and decrement tx_desc when tx_desc is released. During runtime pm suspend, WOW PAUSE is sent to firmware only if there are no pending num_tx_outstanding descriptors. Change-Id: I54aaa4d8a37b8cd47de1701a315bb0735c9739d2 CRs-Fixed: 2567689 --- dp/wifi3.0/dp_tx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dp/wifi3.0/dp_tx.c b/dp/wifi3.0/dp_tx.c index cfff310a01..164229c56f 100644 --- a/dp/wifi3.0/dp_tx.c +++ b/dp/wifi3.0/dp_tx.c @@ -141,11 +141,13 @@ dp_tx_limit_check(struct dp_vdev *vdev) static inline void dp_tx_outstanding_inc(struct dp_pdev *pdev) { + qdf_atomic_inc(&pdev->num_tx_outstanding); } static inline void dp_tx_outstanding_dec(struct dp_pdev *pdev) { + qdf_atomic_dec(&pdev->num_tx_outstanding); } #endif //QCA_TX_LIMIT_CHECK