Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194213
b: refs/heads/master
c: 2b43ae6
h: refs/heads/master
i:
  194211: f87f2e0
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Apr 7, 2010
1 parent 2fb602a commit 9d84079
Show file tree
Hide file tree
Showing 2 changed files with 3 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: e64b379574d6c92c15b4239ee0a5173317176547
refs/heads/master: 2b43ae6daf26f29cec49fa3a3f18025355495500
5 changes: 2 additions & 3 deletions trunk/net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1144,13 +1144,12 @@ ieee80211_tx_prepare(struct ieee80211_sub_if_data *sdata,

if (tx->sta && ieee80211_is_data_qos(hdr->frame_control) &&
(local->hw.flags & IEEE80211_HW_AMPDU_AGGREGATION)) {
unsigned long flags;
struct tid_ampdu_tx *tid_tx;

qc = ieee80211_get_qos_ctl(hdr);
tid = *qc & IEEE80211_QOS_CTL_TID_MASK;

spin_lock_irqsave(&tx->sta->lock, flags);
spin_lock(&tx->sta->lock);
/*
* XXX: This spinlock could be fairly expensive, but see the
* comment in agg-tx.c:ieee80211_agg_tx_operational().
Expand All @@ -1175,7 +1174,7 @@ ieee80211_tx_prepare(struct ieee80211_sub_if_data *sdata,
info->flags |= IEEE80211_TX_INTFL_NEED_TXPROCESSING;
__skb_queue_tail(&tid_tx->pending, skb);
}
spin_unlock_irqrestore(&tx->sta->lock, flags);
spin_unlock(&tx->sta->lock);

if (unlikely(queued))
return TX_QUEUED;
Expand Down

0 comments on commit 9d84079

Please sign in to comment.