diff options
Diffstat (limited to 'net/mac80211/agg-rx.c')
-rw-r--r-- | net/mac80211/agg-rx.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c index 9c0d76cdca92..ebadb9ac9a7e 100644 --- a/net/mac80211/agg-rx.c +++ b/net/mac80211/agg-rx.c | |||
@@ -100,6 +100,21 @@ void __ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid, | |||
100 | mutex_unlock(&sta->ampdu_mlme.mtx); | 100 | mutex_unlock(&sta->ampdu_mlme.mtx); |
101 | } | 101 | } |
102 | 102 | ||
103 | void ieee80211_stop_rx_ba_session(struct ieee80211_vif *vif, u16 ba_rx_bitmap, | ||
104 | const u8 *addr) | ||
105 | { | ||
106 | struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); | ||
107 | struct sta_info *sta = sta_info_get(sdata, addr); | ||
108 | int i; | ||
109 | |||
110 | for (i = 0; i < STA_TID_NUM; i++) | ||
111 | if (ba_rx_bitmap & BIT(i)) | ||
112 | set_bit(i, sta->ampdu_mlme.tid_rx_stop_requested); | ||
113 | |||
114 | ieee80211_queue_work(&sta->local->hw, &sta->ampdu_mlme.work); | ||
115 | } | ||
116 | EXPORT_SYMBOL(ieee80211_stop_rx_ba_session); | ||
117 | |||
103 | /* | 118 | /* |
104 | * After accepting the AddBA Request we activated a timer, | 119 | * After accepting the AddBA Request we activated a timer, |
105 | * resetting it after each frame that arrives from the originator. | 120 | * resetting it after each frame that arrives from the originator. |
@@ -247,7 +262,11 @@ void ieee80211_process_addba_request(struct ieee80211_local *local, | |||
247 | "%pM on tid %u\n", | 262 | "%pM on tid %u\n", |
248 | mgmt->sa, tid); | 263 | mgmt->sa, tid); |
249 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 264 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |
250 | goto end; | 265 | |
266 | /* delete existing Rx BA session on the same tid */ | ||
267 | ___ieee80211_stop_rx_ba_session(sta, tid, WLAN_BACK_RECIPIENT, | ||
268 | WLAN_STATUS_UNSPECIFIED_QOS, | ||
269 | false); | ||
251 | } | 270 | } |
252 | 271 | ||
253 | /* prepare A-MPDU MLME for Rx aggregation */ | 272 | /* prepare A-MPDU MLME for Rx aggregation */ |