summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/main.c
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-11-27 06:44:58 (GMT)
committerLuciano Coelho <coelho@ti.com>2012-12-05 07:43:33 (GMT)
commit8591d42452f16b1888419da4456142864b08ef9e (patch)
tree4c63565b5951f716f036b1e47d98fdb388aa6633 /drivers/net/wireless/ti/wlcore/main.c
parent1e0708a9574aee0136611edc5d3a7a9b2775a113 (diff)
downloadlinux-fsl-qoriq-8591d42452f16b1888419da4456142864b08ef9e.tar.xz
wlcore: count packets held per AC in each vif
This accounting will help find a vif that has data in a specific AC. Otherwise we have to traverse all the links, which can be lengthy for the AP case. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/main.c')
-rw-r--r--drivers/net/wireless/ti/wlcore/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c
index 7b1fc91..56ed379 100644
--- a/drivers/net/wireless/ti/wlcore/main.c
+++ b/drivers/net/wireless/ti/wlcore/main.c
@@ -1206,6 +1206,8 @@ static void wl1271_op_tx(struct ieee80211_hw *hw,
skb_queue_tail(&wl->links[hlid].tx_queue[q], skb);
wl->tx_queue_count[q]++;
+ if (wlvif)
+ wlvif->tx_queue_count[q]++;
/*
* The workqueue is slow to process the tx_queue and we need stop