diff options
author | Arik Nemtsov <arik@wizery.com> | 2012-11-27 06:44:58 (GMT) |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-12-05 07:43:33 (GMT) |
commit | 8591d42452f16b1888419da4456142864b08ef9e (patch) | |
tree | 4c63565b5951f716f036b1e47d98fdb388aa6633 /drivers/net/wireless/ti/wlcore/wlcore_i.h | |
parent | 1e0708a9574aee0136611edc5d3a7a9b2775a113 (diff) | |
download | linux-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/wlcore_i.h')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/wlcore_i.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/wlcore_i.h b/drivers/net/wireless/ti/wlcore/wlcore_i.h index 9ffbfc1..670d12f 100644 --- a/drivers/net/wireless/ti/wlcore/wlcore_i.h +++ b/drivers/net/wireless/ti/wlcore/wlcore_i.h @@ -359,6 +359,9 @@ struct wl12xx_vif { /* the hlid of the last transmitted skb */ int last_tx_hlid; + /* counters of packets per AC, across all links in the vif */ + int tx_queue_count[NUM_TX_QUEUES]; + unsigned long links_map[BITS_TO_LONGS(WL12XX_MAX_LINKS)]; u8 ssid[IEEE80211_MAX_SSID_LEN + 1]; |