diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex/11n_aggr.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/11n_aggr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/11n_aggr.c b/drivers/net/wireless/mwifiex/11n_aggr.c index d3d5e0853c45..f807447e4d99 100644 --- a/drivers/net/wireless/mwifiex/11n_aggr.c +++ b/drivers/net/wireless/mwifiex/11n_aggr.c | |||
@@ -196,6 +196,8 @@ mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv, | |||
196 | if (skb_src) | 196 | if (skb_src) |
197 | pra_list->total_pkts_size -= skb_src->len; | 197 | pra_list->total_pkts_size -= skb_src->len; |
198 | 198 | ||
199 | atomic_dec(&priv->wmm.tx_pkts_queued); | ||
200 | |||
199 | spin_unlock_irqrestore(&priv->wmm.ra_list_spinlock, | 201 | spin_unlock_irqrestore(&priv->wmm.ra_list_spinlock, |
200 | ra_list_flags); | 202 | ra_list_flags); |
201 | mwifiex_11n_form_amsdu_pkt(skb_aggr, skb_src, &pad); | 203 | mwifiex_11n_form_amsdu_pkt(skb_aggr, skb_src, &pad); |
@@ -257,6 +259,8 @@ mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv, | |||
257 | 259 | ||
258 | pra_list->total_pkts_size += skb_aggr->len; | 260 | pra_list->total_pkts_size += skb_aggr->len; |
259 | 261 | ||
262 | atomic_inc(&priv->wmm.tx_pkts_queued); | ||
263 | |||
260 | tx_info_aggr->flags |= MWIFIEX_BUF_FLAG_REQUEUED_PKT; | 264 | tx_info_aggr->flags |= MWIFIEX_BUF_FLAG_REQUEUED_PKT; |
261 | spin_unlock_irqrestore(&priv->wmm.ra_list_spinlock, | 265 | spin_unlock_irqrestore(&priv->wmm.ra_list_spinlock, |
262 | ra_list_flags); | 266 | ra_list_flags); |