Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276254
b: refs/heads/master
c: 24f50a9
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Nov 28, 2011
1 parent a9e861e commit f9106fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: e007b857e88097c96c45620bf3b04a4e309053d1
refs/heads/master: 24f50a9d165745fd0701c6e089d35f58a229ea69
10 changes: 8 additions & 2 deletions trunk/net/mac80211/agg-tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,
return -ENOENT;
}

/* if we're already stopping ignore any new requests to stop */
if (test_bit(HT_AGG_STATE_STOPPING, &tid_tx->state)) {
spin_unlock_bh(&sta->lock);
return -EALREADY;
}

if (test_bit(HT_AGG_STATE_WANT_START, &tid_tx->state)) {
/* not even started yet! */
ieee80211_assign_tid_tx(sta, tid, NULL);
Expand All @@ -168,15 +174,15 @@ int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,
return 0;
}

set_bit(HT_AGG_STATE_STOPPING, &tid_tx->state);

spin_unlock_bh(&sta->lock);

#ifdef CONFIG_MAC80211_HT_DEBUG
printk(KERN_DEBUG "Tx BA session stop requested for %pM tid %u\n",
sta->sta.addr, tid);
#endif /* CONFIG_MAC80211_HT_DEBUG */

set_bit(HT_AGG_STATE_STOPPING, &tid_tx->state);

del_timer_sync(&tid_tx->addba_resp_timer);

/*
Expand Down

0 comments on commit f9106fd

Please sign in to comment.