diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-03-23 12:28:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-27 20:13:22 -0400 |
commit | cd8ffc800ce18e558335c4946b2217864fc16045 (patch) | |
tree | e9bb8c3d6011e89374f9df353ff1f15d45a63590 /net/mac80211/sta_info.c | |
parent | a220858d30604902f650074bfac5a7598bc97ea4 (diff) |
mac80211: fix aggregation to not require queue stop
Instead of stopping the entire AC queue when enabling aggregation
(which was only done for hardware with aggregation queues) buffer
the packets for each station, and release them to the pending skb
queue once aggregation is turned on successfully.
We get a little more code, but it becomes conceptually simpler and
we can remove the entire virtual queue mechanism from mac80211 in
a follow-up patch.
This changes how mac80211 behaves towards drivers that support
aggregation but have no hardware queues -- those drivers will now
not be handed packets while the aggregation session is being
established, but only after it has been fully established.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 4ba3c540fcf3..dd3593c1fd23 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -239,6 +239,11 @@ void sta_info_destroy(struct sta_info *sta) | |||
239 | tid_tx = sta->ampdu_mlme.tid_tx[i]; | 239 | tid_tx = sta->ampdu_mlme.tid_tx[i]; |
240 | if (tid_tx) { | 240 | if (tid_tx) { |
241 | del_timer_sync(&tid_tx->addba_resp_timer); | 241 | del_timer_sync(&tid_tx->addba_resp_timer); |
242 | /* | ||
243 | * STA removed while aggregation session being | ||
244 | * started? Bit odd, but purge frames anyway. | ||
245 | */ | ||
246 | skb_queue_purge(&tid_tx->pending); | ||
242 | kfree(tid_tx); | 247 | kfree(tid_tx); |
243 | } | 248 | } |
244 | } | 249 | } |