diff options
author | David S. Miller <davem@davemloft.net> | 2009-12-02 01:13:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-02 01:13:38 -0500 |
commit | ff9c38bba37937adb909cceb2a6521f2e92e17c6 (patch) | |
tree | 93bd6152d9fa28348be99ef1c788040cc7b7a94d /net/mac80211/agg-tx.c | |
parent | 65c0cfafce9575319fb6f70080fbe226e5617e3b (diff) | |
parent | b2722b1c3a893ec6021508da15b32282ec79f4da (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
net/mac80211/ht.c
Diffstat (limited to 'net/mac80211/agg-tx.c')
-rw-r--r-- | net/mac80211/agg-tx.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c index adf01fcd462e..5e3a7eccef5a 100644 --- a/net/mac80211/agg-tx.c +++ b/net/mac80211/agg-tx.c | |||
@@ -124,13 +124,18 @@ void ieee80211_send_bar(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid, u1 | |||
124 | ieee80211_tx_skb(sdata, skb); | 124 | ieee80211_tx_skb(sdata, skb); |
125 | } | 125 | } |
126 | 126 | ||
127 | static int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid, | 127 | int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid, |
128 | enum ieee80211_back_parties initiator) | 128 | enum ieee80211_back_parties initiator) |
129 | { | 129 | { |
130 | struct ieee80211_local *local = sta->local; | 130 | struct ieee80211_local *local = sta->local; |
131 | int ret; | 131 | int ret; |
132 | u8 *state; | 132 | u8 *state; |
133 | 133 | ||
134 | #ifdef CONFIG_MAC80211_HT_DEBUG | ||
135 | printk(KERN_DEBUG "Tx BA session stop requested for %pM tid %u\n", | ||
136 | sta->sta.addr, tid); | ||
137 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | ||
138 | |||
134 | state = &sta->ampdu_mlme.tid_state_tx[tid]; | 139 | state = &sta->ampdu_mlme.tid_state_tx[tid]; |
135 | 140 | ||
136 | if (*state == HT_AGG_STATE_OPERATIONAL) | 141 | if (*state == HT_AGG_STATE_OPERATIONAL) |
@@ -145,7 +150,6 @@ static int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid, | |||
145 | 150 | ||
146 | /* HW shall not deny going back to legacy */ | 151 | /* HW shall not deny going back to legacy */ |
147 | if (WARN_ON(ret)) { | 152 | if (WARN_ON(ret)) { |
148 | *state = HT_AGG_STATE_OPERATIONAL; | ||
149 | /* | 153 | /* |
150 | * We may have pending packets get stuck in this case... | 154 | * We may have pending packets get stuck in this case... |
151 | * Not bothering with a workaround for now. | 155 | * Not bothering with a workaround for now. |
@@ -515,11 +519,6 @@ int __ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid, | |||
515 | goto unlock; | 519 | goto unlock; |
516 | } | 520 | } |
517 | 521 | ||
518 | #ifdef CONFIG_MAC80211_HT_DEBUG | ||
519 | printk(KERN_DEBUG "Tx BA session stop requested for %pM tid %u\n", | ||
520 | sta->sta.addr, tid); | ||
521 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | ||
522 | |||
523 | ret = ___ieee80211_stop_tx_ba_session(sta, tid, initiator); | 522 | ret = ___ieee80211_stop_tx_ba_session(sta, tid, initiator); |
524 | 523 | ||
525 | unlock: | 524 | unlock: |
@@ -534,7 +533,7 @@ int ieee80211_stop_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, | |||
534 | struct ieee80211_sub_if_data *sdata = sta->sdata; | 533 | struct ieee80211_sub_if_data *sdata = sta->sdata; |
535 | struct ieee80211_local *local = sdata->local; | 534 | struct ieee80211_local *local = sdata->local; |
536 | 535 | ||
537 | if (WARN_ON(!local->ops->ampdu_action)) | 536 | if (!local->ops->ampdu_action) |
538 | return -EINVAL; | 537 | return -EINVAL; |
539 | 538 | ||
540 | if (tid >= STA_TID_NUM) | 539 | if (tid >= STA_TID_NUM) |