diff options
author | David S. Miller <davem@davemloft.net> | 2011-01-27 19:00:37 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-27 19:00:37 -0500 |
commit | 8571a19c4ac140f1a507f3e7eb716892afa27109 (patch) | |
tree | 55ef6a0ab68d6388177d3290a7fd6bc3f12a381f /net/mac80211/agg-rx.c | |
parent | aae7c47311659e5150b740d61c4be418198239fa (diff) | |
parent | 8d8d3fdc0d42be0ba75be227465773a54bb48a0b (diff) |
Merge branch 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'net/mac80211/agg-rx.c')
-rw-r--r-- | net/mac80211/agg-rx.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c index 227ca82eef72..0c9d0c07eae6 100644 --- a/net/mac80211/agg-rx.c +++ b/net/mac80211/agg-rx.c | |||
@@ -76,7 +76,7 @@ void ___ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid, | |||
76 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 76 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |
77 | 77 | ||
78 | if (drv_ampdu_action(local, sta->sdata, IEEE80211_AMPDU_RX_STOP, | 78 | if (drv_ampdu_action(local, sta->sdata, IEEE80211_AMPDU_RX_STOP, |
79 | &sta->sta, tid, NULL)) | 79 | &sta->sta, tid, NULL, 0)) |
80 | printk(KERN_DEBUG "HW problem - can not stop rx " | 80 | printk(KERN_DEBUG "HW problem - can not stop rx " |
81 | "aggregation for tid %d\n", tid); | 81 | "aggregation for tid %d\n", tid); |
82 | 82 | ||
@@ -232,6 +232,9 @@ void ieee80211_process_addba_request(struct ieee80211_local *local, | |||
232 | if (buf_size == 0) | 232 | if (buf_size == 0) |
233 | buf_size = IEEE80211_MAX_AMPDU_BUF; | 233 | buf_size = IEEE80211_MAX_AMPDU_BUF; |
234 | 234 | ||
235 | /* make sure the size doesn't exceed the maximum supported by the hw */ | ||
236 | if (buf_size > local->hw.max_rx_aggregation_subframes) | ||
237 | buf_size = local->hw.max_rx_aggregation_subframes; | ||
235 | 238 | ||
236 | /* examine state machine */ | 239 | /* examine state machine */ |
237 | mutex_lock(&sta->ampdu_mlme.mtx); | 240 | mutex_lock(&sta->ampdu_mlme.mtx); |
@@ -287,7 +290,7 @@ void ieee80211_process_addba_request(struct ieee80211_local *local, | |||
287 | } | 290 | } |
288 | 291 | ||
289 | ret = drv_ampdu_action(local, sta->sdata, IEEE80211_AMPDU_RX_START, | 292 | ret = drv_ampdu_action(local, sta->sdata, IEEE80211_AMPDU_RX_START, |
290 | &sta->sta, tid, &start_seq_num); | 293 | &sta->sta, tid, &start_seq_num, 0); |
291 | #ifdef CONFIG_MAC80211_HT_DEBUG | 294 | #ifdef CONFIG_MAC80211_HT_DEBUG |
292 | printk(KERN_DEBUG "Rx A-MPDU request on tid %d result %d\n", tid, ret); | 295 | printk(KERN_DEBUG "Rx A-MPDU request on tid %d result %d\n", tid, ret); |
293 | #endif /* CONFIG_MAC80211_HT_DEBUG */ | 296 | #endif /* CONFIG_MAC80211_HT_DEBUG */ |