summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/mac.c
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2016-03-06 16:14:41 +0200
committerKalle Valo <kvalo@qca.qualcomm.com>2016-03-06 16:31:12 +0200
commit3cc0fef6170dce8e7d4ec29afb4f34267fb9bf14 (patch)
treed27175faac65f6881c5d8548b12989a91e646bb5 /drivers/net/wireless/ath/ath10k/mac.c
parentdd4717b6f45e70b609d4282667eb0a89f9660268 (diff)
downloadblackbird-op-linux-3cc0fef6170dce8e7d4ec29afb4f34267fb9bf14.tar.gz
blackbird-op-linux-3cc0fef6170dce8e7d4ec29afb4f34267fb9bf14.zip
ath10k: keep track of queue depth per txq
This will be necessary for later. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/mac.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/mac.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 8d02d53fdc2c..5bf614f1f75a 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -3669,6 +3669,7 @@ static int ath10k_mac_tx_push_txq(struct ieee80211_hw *hw,
const bool is_presp = false;
struct ath10k *ar = hw->priv;
struct ath10k_htt *htt = &ar->htt;
+ struct ath10k_txq *artxq = (void *)txq->drv_priv;
struct ieee80211_vif *vif = txq->vif;
struct ieee80211_sta *sta = txq->sta;
enum ath10k_hw_txrx_mode txmode;
@@ -3708,6 +3709,10 @@ static int ath10k_mac_tx_push_txq(struct ieee80211_hw *hw,
return ret;
}
+ spin_lock_bh(&ar->htt.tx_lock);
+ artxq->num_fw_queued++;
+ spin_unlock_bh(&ar->htt.tx_lock);
+
return 0;
}
OpenPOWER on IntegriCloud