Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235861
b: refs/heads/master
c: 1348dc0
h: refs/heads/master
i:
  235859: eabfa23
v: v3
  • Loading branch information
Mike McCormack authored and Greg Kroah-Hartman committed Feb 9, 2011
1 parent 8031f36 commit e45eea0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 79b03af67a7db3622aefe2da8c250775c81fd623
refs/heads/master: 1348dc08a912c0bdfc8680df8919dd79de8c3b9a
26 changes: 17 additions & 9 deletions trunk/drivers/staging/rtl8192e/r8192E_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -988,14 +988,6 @@ static void rtl8192_tx_isr(struct net_device *dev, int prio)

kfree_skb(skb);
}
if (prio == MGNT_QUEUE) {
if (priv->ieee80211->ack_tx_to_ieee) {
if (rtl8192_is_tx_queue_empty(dev)) {
priv->ieee80211->ack_tx_to_ieee = 0;
ieee80211_ps_tx_ack(priv->ieee80211, 1);
}
}
}

if (prio != BEACON_QUEUE) {
/* try to deal with the pending packets */
Expand Down Expand Up @@ -4957,7 +4949,23 @@ static void rtl8192_tx_resume(struct net_device *dev)

static void rtl8192_irq_tx_tasklet(struct r8192_priv *priv)
{
rtl8192_tx_resume(priv->ieee80211->dev);
struct rtl8192_tx_ring *mgnt_ring = &priv->tx_ring[MGNT_QUEUE];
struct net_device *dev = priv->ieee80211->dev;
unsigned long flags;

/* check if we need to report that the management queue is drained */
spin_lock_irqsave(&priv->irq_th_lock, flags);

if (!skb_queue_len(&mgnt_ring->queue) &&
priv->ieee80211->ack_tx_to_ieee &&
rtl8192_is_tx_queue_empty(dev)) {
priv->ieee80211->ack_tx_to_ieee = 0;
ieee80211_ps_tx_ack(priv->ieee80211, 1);
}

spin_unlock_irqrestore(&priv->irq_th_lock, flags);

rtl8192_tx_resume(dev);
}

/* Record the received data rate */
Expand Down

0 comments on commit e45eea0

Please sign in to comment.