Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247167
b: refs/heads/master
c: 3a7dbc3
h: refs/heads/master
i:
  247165: 1181a44
  247163: ac1d91e
  247159: bbfb856
  247151: 42fb8d1
  247135: 67ef1e4
  247103: 09bfc6e
  247039: 26842f2
v: v3
  • Loading branch information
Pradeep Nemavat authored and John W. Linville committed Apr 25, 2011
1 parent 4bd1d56 commit cd7fa91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 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: 2624e96ce16bacae0e422d5775eac6d4fc33239a
refs/heads/master: 3a7dbc3b2ac545efac75d4145839eaa7b59d9741
20 changes: 7 additions & 13 deletions trunk/drivers/net/wireless/mwl8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -1666,10 +1666,6 @@ mwl8k_txq_reclaim(struct ieee80211_hw *hw, int index, int limit, int force)
processed++;
}

if (index < MWL8K_TX_WMM_QUEUES && processed && priv->radio_on &&
!mutex_is_locked(&priv->fw_mutex))
ieee80211_wake_queue(hw, index);

return processed;
}

Expand Down Expand Up @@ -1951,13 +1947,14 @@ mwl8k_txq_xmit(struct ieee80211_hw *hw, int index, struct sk_buff *skb)

txq = priv->txq + index;

if (index >= MWL8K_TX_WMM_QUEUES && txq->len >= MWL8K_TX_DESCS) {
/* This is the case in which the tx packet is destined for an
* AMPDU queue and that AMPDU queue is full. Because we don't
* start and stop the AMPDU queues, we must drop these packets.
*/
dev_kfree_skb(skb);
if (txq->len >= MWL8K_TX_DESCS) {
if (start_ba_session) {
spin_lock(&priv->stream_lock);
mwl8k_remove_stream(hw, stream);
spin_unlock(&priv->stream_lock);
}
spin_unlock_bh(&priv->tx_lock);
dev_kfree_skb(skb);
return;
}

Expand Down Expand Up @@ -1985,9 +1982,6 @@ mwl8k_txq_xmit(struct ieee80211_hw *hw, int index, struct sk_buff *skb)
if (txq->tail == MWL8K_TX_DESCS)
txq->tail = 0;

if (txq->head == txq->tail && index < MWL8K_TX_WMM_QUEUES)
ieee80211_stop_queue(hw, index);

mwl8k_tx_start(priv);

spin_unlock_bh(&priv->tx_lock);
Expand Down

0 comments on commit cd7fa91

Please sign in to comment.