Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265605
b: refs/heads/master
c: e69dede
h: refs/heads/master
i:
  265603: 5ceb1c7
v: v3
  • Loading branch information
Helmut Schaa authored and John W. Linville committed Aug 22, 2011
1 parent fe14751 commit e7f6998
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c1407b6cb22245ae8653cfc195530a9b8eb52879
refs/heads/master: e69deded2bc29e6dd176089252a11b1854012c76
18 changes: 18 additions & 0 deletions trunk/net/mac80211/status.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
int rates_idx = -1;
bool send_to_cooked;
bool acked;
struct ieee80211_bar *bar;
u16 tid;

for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) {
if (info->status.rates[i].idx < 0) {
Expand Down Expand Up @@ -243,6 +245,22 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
tid, ssn);
}

if (!acked && ieee80211_is_back_req(fc)) {
/*
* BAR failed, let's tear down the BA session as a
* last resort as some STAs (Intel 5100 on Windows)
* can get stuck when the BA window isn't flushed
* correctly.
*/
bar = (struct ieee80211_bar *) skb->data;
if (!(bar->control & IEEE80211_BAR_CTRL_MULTI_TID)) {
tid = (bar->control &
IEEE80211_BAR_CTRL_TID_INFO_MASK) >>
IEEE80211_BAR_CTRL_TID_INFO_SHIFT;
ieee80211_stop_tx_ba_session(&sta->sta, tid);
}
}

if (info->flags & IEEE80211_TX_STAT_TX_FILTERED) {
ieee80211_handle_filtered_frame(local, sta, skb);
rcu_read_unlock();
Expand Down

0 comments on commit e7f6998

Please sign in to comment.