summaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/agg-tx.c35
-rw-r--r--net/mac80211/sta_info.h2
-rw-r--r--net/mac80211/tx.c8
3 files changed, 44 insertions, 1 deletions
diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c
index 39d72ccaffb3..a2d9654aabcb 100644
--- a/net/mac80211/agg-tx.c
+++ b/net/mac80211/agg-tx.c
@@ -180,6 +180,7 @@ int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,
180 set_bit(HT_AGG_STATE_STOPPING, &tid_tx->state); 180 set_bit(HT_AGG_STATE_STOPPING, &tid_tx->state);
181 181
182 del_timer_sync(&tid_tx->addba_resp_timer); 182 del_timer_sync(&tid_tx->addba_resp_timer);
183 del_timer_sync(&tid_tx->session_timer);
183 184
184 /* 185 /*
185 * After this packets are no longer handed right through 186 * After this packets are no longer handed right through
@@ -349,6 +350,28 @@ void ieee80211_tx_ba_session_handle_start(struct sta_info *sta, int tid)
349 tid_tx->timeout); 350 tid_tx->timeout);
350} 351}
351 352
353/*
354 * After accepting the AddBA Response we activated a timer,
355 * resetting it after each frame that we send.
356 */
357static void sta_tx_agg_session_timer_expired(unsigned long data)
358{
359 /* not an elegant detour, but there is no choice as the timer passes
360 * only one argument, and various sta_info are needed here, so init
361 * flow in sta_info_create gives the TID as data, while the timer_to_id
362 * array gives the sta through container_of */
363 u8 *ptid = (u8 *)data;
364 u8 *timer_to_id = ptid - *ptid;
365 struct sta_info *sta = container_of(timer_to_id, struct sta_info,
366 timer_to_tid[0]);
367<
UG 369 printk(KERN_DEBUG "tx session timer expired on tid %d\n", (u16)*ptid); 370#endif 371 372 ieee80211_stop_tx_ba_session(&sta->sta, *ptid); 373} 374 352int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, 375int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, 353 u16 timeout)