diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-05-27 08:41:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-03 14:10:45 -0400 |
commit | 6a8579d0e62c0eac428184ce45e86bc46677724a (patch) | |
tree | 192d3adc84985598ad6006df43d246adce002f7e /include/net/mac80211.h | |
parent | 2b2c009ecf71f4c66ff8420b63dddbc9737e04e3 (diff) |
mac80211: clean up ieee80211_stop_tx_ba_session
There's no sense in letting anything but internal
mac80211 functions set the initiator to anything
but WLAN_BACK_INITIATOR, since WLAN_BACK_RECIPIENT
is only valid when we have received a frame from
the peer, which we react to directly in mac80211.
The debugfs code I recently added got this wrong
as well.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r-- | include/net/mac80211.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 74b9b49ddfae..2e728611c572 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -2345,16 +2345,14 @@ void ieee80211_start_tx_ba_cb_irqsafe(struct ieee80211_vif *vif, const u8 *ra, | |||
2345 | * ieee80211_stop_tx_ba_session - Stop a Block Ack session. | 2345 | * ieee80211_stop_tx_ba_session - Stop a Block Ack session. |
2346 | * @sta: the station whose BA session to stop | 2346 | * @sta: the station whose BA session to stop |
2347 | * @tid: the TID to stop BA. | 2347 | * @tid: the TID to stop BA. |
2348 | * @initiator: if indicates initiator DELBA frame will be sent. | ||
2349 | * | 2348 | * |
2350 | * Return: error if no sta with matching da found, success otherwise | 2349 | * Return: negative error if the TID is invalid, or no aggregation active |
2351 | * | 2350 | * |
2352 | * Although mac80211/low level driver/user space application can estimate | 2351 | * Although mac80211/low level driver/user space application can estimate |
2353 | * the need to stop aggregation on a certain RA/TID, the session level | 2352 | * the need to stop aggregation on a certain RA/TID, the session level |
2354 | * will be managed by the mac80211. | 2353 | * will be managed by the mac80211. |
2355 | */ | 2354 | */ |
2356 | int ieee80211_stop_tx_ba_session(struct ieee80211_sta *sta, u16 tid, | 2355 | int ieee80211_stop_tx_ba_session(struct ieee80211_sta *sta, u16 tid); |
2357 | enum ieee80211_back_parties initiator); | ||
2358 | 2356 | ||
2359 | /** | 2357 | /** |
2360 | * ieee80211_stop_tx_ba_cb - low level driver ready to stop aggregate. | 2358 | * ieee80211_stop_tx_ba_cb - low level driver ready to stop aggregate. |