summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/11n_aggr.c
diff options
context:
space:
mode:
authorAvinash Patil2013-07-23 04:17:40 +0200
committerJohn W. Linville2013-07-24 17:02:05 +0200
commitc7d9ed9ec9b2947a9c5dc5e2c7afce1fd3ad82cc (patch)
tree43907e89cf31b3f2a549894bd4553b69ded1a78b /drivers/net/wireless/mwifiex/11n_aggr.c
parentmwifiex: rename pkt_count to ba_pkt_count in mwifiex_ra_list_tbl struct (diff)
downloadkernel-qcow2-linux-c7d9ed9ec9b2947a9c5dc5e2c7afce1fd3ad82cc.tar.gz
kernel-qcow2-linux-c7d9ed9ec9b2947a9c5dc5e2c7afce1fd3ad82cc.tar.xz
kernel-qcow2-linux-c7d9ed9ec9b2947a9c5dc5e2c7afce1fd3ad82cc.zip
mwifiex: maintain outstanding packet count for RA list instead of packet size
Maintain total outstanding packet count for RA list instead of total outstanding size as packet count metric seems more reasonable for checking threshold etc. Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/11n_aggr.c')
-rw-r--r--drivers/net/wireless/mwifiex/11n_aggr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/11n_aggr.c b/drivers/net/wireless/mwifiex/11n_aggr.c
index a78e0651409c..8f9f54231a1c 100644
--- a/drivers/net/wireless/mwifiex/11n_aggr.c
+++ b/drivers/net/wireless/mwifiex/11n_aggr.c
@@ -189,7 +189,7 @@ mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv,
skb_src = skb_dequeue(&pra_list->skb_head);
- pra_list->total_pkts_size -= skb_src->len;
+ pra_list->total_pkt_count--;
atomic_dec(&priv->wmm.tx_pkts_queued);
@@ -268,7 +268,7 @@ mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv,
skb_queue_tail(&pra_list->skb_head, skb_aggr);
- pra_list->total_pkts_size += skb_aggr->len;
+ pra_list->total_pkt_count++;
atomic_inc(&priv->wmm.tx_pkts_queued);