Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21297
b: refs/heads/master
c: f697014
h: refs/heads/master
i:
  21295: 07510c7
v: v3
  • Loading branch information
James Ketrenos authored and John W. Linville committed Mar 17, 2006
1 parent af1a2df commit ba6f276
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 48a847709f821b5eecd45ae7660add1869f9cd37
refs/heads/master: f697014af90c1db3c7b299327bf5a9548945b8bf
8 changes: 3 additions & 5 deletions trunk/drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -9648,11 +9648,6 @@ static int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb,
u16 remaining_bytes;
int fc;

/* If there isn't room in the queue, we return busy and let the
* network stack requeue the packet for us */
if (ipw_queue_space(q) < q->high_mark)
return NETDEV_TX_BUSY;

switch (priv->ieee->iw_mode) {
case IW_MODE_ADHOC:
hdr_len = IEEE80211_3ADDR_LEN;
Expand Down Expand Up @@ -9818,6 +9813,9 @@ static int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb,
q->first_empty = ipw_queue_inc_wrap(q->first_empty, q->n_bd);
ipw_write32(priv, q->reg_w, q->first_empty);

if (ipw_queue_space(q) < q->high_mark)
netif_stop_queue(priv->net_dev);

return NETDEV_TX_OK;

drop:
Expand Down

0 comments on commit ba6f276

Please sign in to comment.