Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134455
b: refs/heads/master
c: 97d97b8
h: refs/heads/master
i:
  134453: bd8836f
  134451: 7d48b92
  134447: 70dc241
v: v3
  • Loading branch information
Vivek Natarajan authored and John W. Linville committed Feb 13, 2009
1 parent b5ca753 commit d249475
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: dec59d6faffb44e741d9c19ffdf368d69a968a54
refs/heads/master: 97d97b80984d0207e5c125c1b7b9467aad365d8d
8 changes: 5 additions & 3 deletions trunk/net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#define IEEE80211_TX_OK 0
#define IEEE80211_TX_AGAIN 1
#define IEEE80211_TX_FRAG_AGAIN 2
#define IEEE80211_TX_PENDING 3

/* misc utils */

Expand Down Expand Up @@ -1085,7 +1086,7 @@ static int __ieee80211_tx(struct ieee80211_local *local, struct sk_buff *skb,

if (skb) {
if (netif_subqueue_stopped(local->mdev, skb))
return IEEE80211_TX_AGAIN;
return IEEE80211_TX_PENDING;

ret = local->ops->tx(local_to_hw(local), skb);
if (ret)
Expand Down Expand Up @@ -1211,8 +1212,9 @@ static int ieee80211_tx(struct net_device *dev, struct sk_buff *skb)
* queues, there's no reason for a driver to reject
* a frame there, warn and drop it.
*/
if (WARN_ON(info->flags & IEEE80211_TX_CTL_AMPDU))
goto drop;
if (ret != IEEE80211_TX_PENDING)
if (WARN_ON(info->flags & IEEE80211_TX_CTL_AMPDU))
goto drop;

store = &local->pending_packet[queue];

Expand Down

0 comments on commit d249475

Please sign in to comment.