summaryrefslogtreecommitdiffstats
path: root/net/mac80211/agg-rx.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2010-04-06 05:18:45 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-07 14:38:03 -0400
commit66b0470aeef10a3b0f9a6a1c60d908b5a06c62ae (patch)
tree6abfe5fea2aa8b7749e6ef5385b81d4e5d40c82b /net/mac80211/agg-rx.c
parent2b43ae6daf26f29cec49fa3a3f18025355495500 (diff)
mac80211: remove ieee80211_sta_stop_rx_ba_session
All callers of ieee80211_sta_stop_rx_ba_session can just call __ieee80211_stop_rx_ba_session instead because they already have the station struct, so do that and remove ieee80211_sta_stop_rx_ba_session. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/agg-rx.c')
-rw-r--r--net/mac80211/agg-rx.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c
index a978e666ed6f..cb9f80a94002 100644
--- a/net/mac80211/agg-rx.c
+++ b/net/mac80211/agg-rx.c
@@ -79,28 +79,9 @@ void __ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid,
79 spin_unlock_bh(&sta->lock); 79 spin_unlock_bh(&sta->lock);
80} 80}
81 81
82void ieee80211_sta_stop_rx_ba_session(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid,
83 u16 initiator, u16 reason)
84{
85 struct sta_info *sta;
86
87 rcu_read_lock();
88
89 sta = sta_info_get(sdata, ra);
90 if (!sta) {
91 rcu_read_unlock();
92 return;
93 }
94
95 __ieee80211_stop_rx_ba_session(sta, tid, initiator, reason);
96
97 rcu_read_unlock();
98}
99
100/* 82/*
101 * After accepting the AddBA Request we activated a timer, 83 * After accepting the AddBA Request we activated a timer,
102 * resetting it after each frame that arrives from the originator. 84 * resetting it after each frame that arrives from the originator.
103 * if this timer expires ieee80211_sta_stop_rx_ba_session will be executed.
104 */ 85 */
105static void sta_rx_agg_session_timer_expired(unsigned long data) 86static void sta_rx_agg_session_timer_expired(unsigned long data)
106{ 87{
@@ -116,9 +97,8 @@ static void sta_rx_agg_session_timer_expired(unsigned long data)
116#ifdef CONFIG_MAC80211_HT_DEBUG 97#ifdef CONFIG_MAC80211_HT_DEBUG
117 printk(KERN_DEBUG "rx session timer expired on tid %d\n", (u16)*ptid); 98 printk(KERN_DEBUG "rx session timer expired on tid %d\n", (u16)*ptid);
118#endif 99#endif
119 ieee80211_sta_stop_rx_ba_session(sta->sdata, sta->sta.addr, 100 __ieee80211_stop_rx_ba_session(sta, *ptid, WLAN_BACK_RECIPIENT,
120 (u16)*ptid, WLAN_BACK_TIMER, 101 WLAN_REASON_QSTA_TIMEOUT);
121 WLAN_REASON_QSTA_TIMEOUT);
122} 102}
123 103
124static void ieee80211_send_addba_resp(struct ieee80211_sub_if_data *sdata, u8 *da, u16 tid, 104static void ieee80211_send_addba_resp(struct ieee80211_sub_if_data *sdata, u8 *da, u16 tid,