diff options
Diffstat (limited to 'net/mac80211/agg-rx.c')
-rw-r--r-- | net/mac80211/agg-rx.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c index 9c0d76cdca92..89b0b2ca6db6 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. |