diff options
author | Sujith Manoharan <Sujith.Manoharan@atheros.com> | 2010-12-14 21:17:10 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-15 17:03:59 -0500 |
commit | bd2ce6e43f65127bc723e7fcc044758cf8113260 (patch) | |
tree | 46eeb3f454619549d563addd8eff3b4d5475179f /include | |
parent | a293911d4fd5e8593dbf478399a77f990d466269 (diff) |
mac80211: Add timeout to BA session start API
Allow drivers or rate control algorithms to specify BlockAck session
timeout when initiating an ADDBA transaction. This is useful in cases
where maintaining persistent BA sessions does not incur any overhead.
The current timeout value of 5000 TUs is retained for all non ath9k/ath9k_htc
drivers.
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/mac80211.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index e411cf87fb41..69ded1ee49ce 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -2435,6 +2435,7 @@ void ieee80211_queue_delayed_work(struct ieee80211_hw *hw, | |||
2435 | * ieee80211_start_tx_ba_session - Start a tx Block Ack session. | 2435 | * ieee80211_start_tx_ba_session - Start a tx Block Ack session. |
2436 | * @sta: the station for which to start a BA session | 2436 | * @sta: the station for which to start a BA session |
2437 | * @tid: the TID to BA on. | 2437 | * @tid: the TID to BA on. |
2438 | * @timeout: session timeout value (in TUs) | ||
2438 | * | 2439 | * |
2439 | * Return: success if addBA request was sent, failure otherwise | 2440 | * Return: success if addBA request was sent, failure otherwise |
2440 | * | 2441 | * |
@@ -2442,7 +2443,8 @@ void ieee80211_queue_delayed_work(struct ieee80211_hw *hw, | |||
2442 | * the need to start aggregation on a certain RA/TID, the session level | 2443 | * the need to start aggregation on a certain RA/TID, the session level |
2443 | * will be managed by the mac80211. | 2444 | * will be managed by the mac80211. |
2444 | */ | 2445 | */ |
2445 | int ieee80211_start_tx_ba_session(struct ieee80211_sta *sta, u16 tid); | 2446 | int ieee80211_start_tx_ba_session(struct ieee80211_sta *sta, u16 tid, |
2447 | u16 timeout); | ||
2446 | 2448 | ||
2447 | /** | 2449 | /** |
2448 | * ieee80211_start_tx_ba_cb_irqsafe - low level driver ready to aggregate. | 2450 | * ieee80211_start_tx_ba_cb_irqsafe - low level driver ready to aggregate. |