diff options
Diffstat (limited to 'net/mac80211/agg-rx.c')
-rw-r--r-- | net/mac80211/agg-rx.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c index 965b272499fd..2f6903e48dd9 100644 --- a/net/mac80211/agg-rx.c +++ b/net/mac80211/agg-rx.c | |||
@@ -172,8 +172,6 @@ void ieee80211_process_addba_request(struct ieee80211_local *local, | |||
172 | struct ieee80211_mgmt *mgmt, | 172 | struct ieee80211_mgmt *mgmt, |
173 | size_t len) | 173 | size_t len) |
174 | { | 174 | { |
175 | struct ieee80211_hw *hw = &local->hw; | ||
176 | struct ieee80211_conf *conf = &hw->conf; | ||
177 | struct tid_ampdu_rx *tid_agg_rx; | 175 | struct tid_ampdu_rx *tid_agg_rx; |
178 | u16 capab, tid, timeout, ba_policy, buf_size, start_seq_num, status; | 176 | u16 capab, tid, timeout, ba_policy, buf_size, start_seq_num, status; |
179 | u8 dialog_token; | 177 | u8 dialog_token; |
@@ -218,13 +216,8 @@ void ieee80211_process_addba_request(struct ieee80211_local *local, | |||
218 | goto end_no_lock; | 216 | goto end_no_lock; |
219 | } | 217 | } |
220 | /* determine default buffer size */ | 218 | /* determine default buffer size */ |
221 | if (buf_size == 0) { | 219 | if (buf_size == 0) |
222 | struct ieee80211_supported_band *sband; | 220 | buf_size = IEEE80211_MAX_AMPDU_BUF; |
223 | |||
224 | sband = local->hw.wiphy->bands[conf->channel->band]; | ||
225 | buf_size = IEEE80211_MIN_AMPDU_BUF; | ||
226 | buf_size = buf_size << sband->ht_cap.ampdu_factor; | ||
227 | } | ||
228 | 221 | ||
229 | 222 | ||
230 | /* examine state machine */ | 223 | /* examine state machine */ |